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
ConstructorDescriptionAnnotationAccessVar(BcelShadow shadow, Shadow.Kind kind, ResolvedType annotationType, UnresolvedType theTargetIsStoredHere, Member sig, boolean isWithin)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendLoad(InstructionList il, InstructionFactory fact)
void
appendLoadAndConvert(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()
void
insertLoad(InstructionList il, InstructionFactory fact)
toString()
Methods inherited from class org.aspectj.weaver.bcel.BcelVar
appendStore, getPositionInAroundState, getSlot, setPositionInAroundState
Methods 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:
createLoad
in classBcelVar
-
createStore
- Overrides:
createStore
in classBcelVar
-
createCopyFrom
- Overrides:
createCopyFrom
in classBcelVar
-
appendLoad
- Overrides:
appendLoad
in classBcelVar
-
appendLoadAndConvert
- Overrides:
appendLoadAndConvert
in classBcelVar
-
insertLoad
- Overrides:
insertLoad
in classBcelVar
-
getMember
-
getAccessorForValue
Return an object that can access a particular value of this annotation.- Overrides:
getAccessorForValue
in 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
-