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
public class AnnotationAccessVar
- extends BcelVar
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.
Fields inherited from class org.aspectj.weaver.bcel.BcelVar |
NONE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AnnotationAccessVar
public AnnotationAccessVar(BcelShadow shadow,
Shadow.Kind kind,
ResolvedType annotationType,
UnresolvedType theTargetIsStoredHere,
Member sig,
boolean isWithin)
getKind
public Shadow.Kind getKind()
toString
public java.lang.String toString()
- Overrides:
toString
in class BcelVar
createLoad
public Instruction createLoad(InstructionFactory fact)
- Overrides:
createLoad
in class BcelVar
createStore
public Instruction createStore(InstructionFactory fact)
- Overrides:
createStore
in class BcelVar
createCopyFrom
public InstructionList createCopyFrom(InstructionFactory fact,
int oldSlot)
- Overrides:
createCopyFrom
in class BcelVar
appendLoad
public void appendLoad(InstructionList il,
InstructionFactory fact)
- Overrides:
appendLoad
in class BcelVar
appendLoadAndConvert
public void appendLoadAndConvert(InstructionList il,
InstructionFactory fact,
ResolvedType toType)
- Overrides:
appendLoadAndConvert
in class BcelVar
insertLoad
public void insertLoad(InstructionList il,
InstructionFactory fact)
- Overrides:
insertLoad
in class BcelVar
getMember
public Member getMember()
getAccessorForValue
public Var getAccessorForValue(ResolvedType valueType,
java.lang.String formalName)
- Return an object that can access a particular value of this annotation.
- Overrides:
getAccessorForValue
in class Var
- Parameters:
valueType
- The type from the annotation that is of interestthe
- formal name expressed in the pointcut, can be used to disambiguate
- Returns:
- a variable that represents access to that annotation value