Class TypeAnnotationAccessVar
java.lang.Object
org.aspectj.weaver.ast.ASTNode
org.aspectj.weaver.ast.Expr
org.aspectj.weaver.ast.Var
org.aspectj.weaver.bcel.BcelVar
org.aspectj.weaver.bcel.TypeAnnotationAccessVar
Used for @this() @target() @args() - represents accessing an annotated 'thing'. Main use is to create the instructions that
retrieve the annotation from the 'thing' - see createLoadInstructions()
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionTypeAnnotationAccessVar(ResolvedType type, BcelVar theAnnotatedTargetIsStoredHere) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendLoad(InstructionList il, InstructionFactory fact) voidappendLoadAndConvert(InstructionList il, InstructionFactory fact, ResolvedType toType) createCopyFrom(InstructionFactory fact, int oldSlot) createLoad(InstructionFactory fact) createLoadInstructions(ResolvedType toType, InstructionFactory fact) voidinsertLoad(InstructionList il, InstructionFactory fact) toString()Methods inherited from class BcelVar
appendStore, getPositionInAroundState, getSlot, setPositionInAroundStateModifier and TypeMethodDescriptionvoidappendStore(InstructionList il, InstructionFactory fact) intintgetSlot()voidsetPositionInAroundState(int positionInAroundState) Methods inherited from class Var
accept, getAccessorForValue, getTypeModifier and TypeMethodDescriptionvoidgetAccessorForValue(ResolvedType formalType, String formalName) For an annotation this will return a variable that can access a specific field of the annotation (of the specified type) TODO what kind of behaviour happens for two annotation fields of the same type?getType()Methods inherited from class Expr
makeCallExprModifier and TypeMethodDescriptionstatic CallExprmakeCallExpr(Member member, Expr[] exprs, ResolvedType returnType)
-
Constructor Details
-
TypeAnnotationAccessVar
-
-
Method Details
-
toString
-
createLoad
- Overrides:
createLoadin classBcelVar
-
createStore
- Overrides:
createStorein classBcelVar
-
createCopyFrom
- Overrides:
createCopyFromin classBcelVar
-
appendLoad
- Overrides:
appendLoadin classBcelVar
-
createLoadInstructions
-
appendLoadAndConvert
- Overrides:
appendLoadAndConvertin classBcelVar
-
insertLoad
- Overrides:
insertLoadin classBcelVar
-