|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AspectModel
TODO document
Nested Class Summary | |
---|---|
static class |
AspectModel.AroundClosureClassInfo
Info about the around closure class or interface for this specific aspect model. |
Method Summary | |
---|---|
void |
createAfterAdviceArgumentHandling(org.objectweb.asm.CodeVisitor cv,
AdviceMethodInfo adviceMethodInfo)
Handles the arguments to the after advice. |
void |
createAroundAdviceArgumentHandling(org.objectweb.asm.CodeVisitor cv,
AdviceMethodInfo adviceMethodInfo)
Handles the arguments to the around advice. |
void |
createAspectInstantiation(org.objectweb.asm.CodeVisitor cv,
AspectInfo aspectInfo,
String joinPointClassName)
Creates instantiation of an aspect instance. |
void |
createAspectReferenceField(org.objectweb.asm.ClassWriter cw,
AspectInfo aspectInfo,
String joinPointClassName)
Creates aspect reference field (field in the jit jointpoint class f.e.) for an aspect instance. |
void |
createBeforeAdviceArgumentHandling(org.objectweb.asm.CodeVisitor cv,
AdviceMethodInfo adviceMethodInfo)
Handles the arguments to the after advice. |
void |
createInvocationOfAroundClosureSuperClass(org.objectweb.asm.CodeVisitor cv)
Creates invocation of the super class for the around closure. |
void |
createMandatoryMethods(org.objectweb.asm.ClassWriter cw,
String className)
Creates the methods required to implement or extend to implement the closure for the specific aspect model type. |
void |
defineAspect(ClassInfo aspectClassInfo,
AspectDefinition aspectDef,
ClassLoader loader)
Defines the aspect and adds definition to the aspect definition. |
AspectModel.AroundClosureClassInfo |
getAroundClosureClassInfo()
Returns info about the closure class, name and type (interface or class). |
String |
getAspectModelType()
Returns the aspect model type, which is an id for the the special aspect model, can be anything as long as it is unique. |
boolean |
requiresReflectiveInfo()
Should return true if the aspect model requires that Runtime Type Information (RTTI) is build up for the join point. |
Method Detail |
---|
String getAspectModelType()
void defineAspect(ClassInfo aspectClassInfo, AspectDefinition aspectDef, ClassLoader loader)
aspectClassInfo
- aspectDef
- loader
- AspectModel.AroundClosureClassInfo getAroundClosureClassInfo()
void createMandatoryMethods(org.objectweb.asm.ClassWriter cw, String className)
cw
- className
- void createInvocationOfAroundClosureSuperClass(org.objectweb.asm.CodeVisitor cv)
cv
- void createAspectReferenceField(org.objectweb.asm.ClassWriter cw, AspectInfo aspectInfo, String joinPointClassName)
cw
- aspectInfo
- joinPointClassName
- void createAspectInstantiation(org.objectweb.asm.CodeVisitor cv, AspectInfo aspectInfo, String joinPointClassName)
cv
- aspectInfo
- joinPointClassName
- void createAroundAdviceArgumentHandling(org.objectweb.asm.CodeVisitor cv, AdviceMethodInfo adviceMethodInfo)
cv
- adviceMethodInfo
- void createBeforeAdviceArgumentHandling(org.objectweb.asm.CodeVisitor cv, AdviceMethodInfo adviceMethodInfo)
cv
- adviceMethodInfo
- void createAfterAdviceArgumentHandling(org.objectweb.asm.CodeVisitor cv, AdviceMethodInfo adviceMethodInfo)
cv
- adviceMethodInfo
- boolean requiresReflectiveInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |