org.aspectj.weaver.bcel
Class TypeAnnotationAccessVar

java.lang.Object
  extended by org.aspectj.weaver.ast.ASTNode
      extended by org.aspectj.weaver.ast.Expr
          extended by org.aspectj.weaver.ast.Var
              extended by org.aspectj.weaver.bcel.BcelVar
                  extended by org.aspectj.weaver.bcel.TypeAnnotationAccessVar

public class TypeAnnotationAccessVar
extends BcelVar

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
 
Fields inherited from class org.aspectj.weaver.bcel.BcelVar
NONE
 
Constructor Summary
TypeAnnotationAccessVar(ResolvedType type, BcelVar theAnnotatedTargetIsStoredHere)
           
 
Method Summary
 void appendLoad(InstructionList il, InstructionFactory fact)
           
 void appendLoadAndConvert(InstructionList il, InstructionFactory fact, ResolvedType toType)
           
 InstructionList createCopyFrom(InstructionFactory fact, int oldSlot)
           
 Instruction createLoad(InstructionFactory fact)
           
 InstructionList createLoadInstructions(ResolvedType toType, InstructionFactory fact)
           
 Instruction createStore(InstructionFactory fact)
           
 void insertLoad(InstructionList il, InstructionFactory fact)
           
 java.lang.String toString()
           
 
Methods inherited from class org.aspectj.weaver.bcel.BcelVar
appendStore, getPositionInAroundState, getSlot, setPositionInAroundState
 
Methods inherited from class org.aspectj.weaver.ast.Var
accept, getAccessorForValue, getType
 
Methods inherited from class org.aspectj.weaver.ast.Expr
makeCallExpr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypeAnnotationAccessVar

public TypeAnnotationAccessVar(ResolvedType type,
                               BcelVar theAnnotatedTargetIsStoredHere)
Method Detail

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

createLoadInstructions

public InstructionList createLoadInstructions(ResolvedType toType,
                                              InstructionFactory fact)

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