Package org.aspectj.weaver.bcel
Class AnnotationAccessVar
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.AnnotationAccessVar
Represents access to an annotation on an element, relating to some kinded pointcut. Depending on the kind of pointcut the element
might be a field or a method and the code generators in here can retrieve the annotation from the element.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationAccessVar(BcelShadow shadow, Shadow.Kind kind, ResolvedType annotationType, UnresolvedType theTargetIsStoredHere, Member sig, boolean isWithin) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendLoad(InstructionList il, InstructionFactory fact)voidappendLoadAndConvert(InstructionList il, InstructionFactory fact, ResolvedType toType)createCopyFrom(InstructionFactory fact, int oldSlot)createLoad(InstructionFactory fact)createStore(InstructionFactory fact)getAccessorForValue(ResolvedType valueType, String formalName)Return an object that can access a particular value of this annotation.getKind()voidinsertLoad(InstructionList il, InstructionFactory fact)toString()Methods inherited from class org.aspectj.weaver.bcel.BcelVar
appendStore, getPositionInAroundState, getSlot, setPositionInAroundStateMethods inherited from class org.aspectj.weaver.ast.Expr
makeCallExpr
-
Constructor Details
-
AnnotationAccessVar
public AnnotationAccessVar(BcelShadow shadow, Shadow.Kind kind, ResolvedType annotationType, UnresolvedType theTargetIsStoredHere, Member sig, boolean isWithin)
-
-
Method Details
-
getKind
-
toString
-
createLoad
- Overrides:
createLoadin classBcelVar
-
createStore
- Overrides:
createStorein classBcelVar
-
createCopyFrom
- Overrides:
createCopyFromin classBcelVar
-
appendLoad
- Overrides:
appendLoadin classBcelVar
-
appendLoadAndConvert
- Overrides:
appendLoadAndConvertin classBcelVar
-
insertLoad
- Overrides:
insertLoadin classBcelVar
-
getMember
-
getAccessorForValue
Return an object that can access a particular value of this annotation.- Overrides:
getAccessorForValuein classVar- Parameters:
valueType- The type from the annotation that is of interestformalName- the formal name expressed in the pointcut, can be used to disambiguate- Returns:
- a variable that represents access to that annotation value
-