Package org.aspectj.weaver.bcel
Class AspectInstanceVar
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.AspectInstanceVar
Used to represent a variable reference to an aspect instance. This is used to support the if pointcut usage of
'thisAspectInstance'. This variable does not have a slot, instead on requesting a reference we call aspectOf() on the aspect in
question to retrieve it. For now it only works with singleton aspects.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendLoad(InstructionList il, InstructionFactory fact)
void
appendLoadAndConvert(InstructionList il, InstructionFactory fact, ResolvedType toType)
void
appendStore(InstructionList il, InstructionFactory fact)
createCopyFrom(InstructionFactory fact, int oldSlot)
createLoad(InstructionFactory fact)
createStore(InstructionFactory fact)
int
void
insertLoad(InstructionList il, InstructionFactory fact)
void
setPositionInAroundState(int positionInAroundState)
Methods inherited from class org.aspectj.weaver.ast.Var
accept, getAccessorForValue, getType
Methods inherited from class org.aspectj.weaver.ast.Expr
makeCallExpr
-
Constructor Details
-
AspectInstanceVar
-
-
Method Details
-
createLoad
- Overrides:
createLoad
in classBcelVar
-
createStore
- Overrides:
createStore
in classBcelVar
-
appendStore
- Overrides:
appendStore
in classBcelVar
-
appendLoad
- Overrides:
appendLoad
in classBcelVar
-
appendLoadAndConvert
- Overrides:
appendLoadAndConvert
in classBcelVar
-
insertLoad
- Overrides:
insertLoad
in classBcelVar
-
createCopyFrom
- Overrides:
createCopyFrom
in classBcelVar
-
getPositionInAroundState
public int getPositionInAroundState()- Overrides:
getPositionInAroundState
in classBcelVar
-
setPositionInAroundState
public void setPositionInAroundState(int positionInAroundState)- Overrides:
setPositionInAroundState
in classBcelVar
-