|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.aop.instrument.FieldAccessTransformer
| Constructor Summary | |
FieldAccessTransformer(Instrumentor instrumentor)
|
|
| Method Summary | |
void |
buildFieldWrappers(javassist.CtClass clazz,
ClassAdvisor advisor)
|
void |
codeConverted()
Notifies this transformer that the code conversion is done. |
boolean |
replaceFieldAccess(List fields,
javassist.CtClass clazz,
ClassAdvisor fieldsAdvisor)
replace field access for possible public/protected fields that are intercepted don't need to replace access for private fields. |
void |
unwrap(javassist.CtClass clazz,
Collection fieldsGet,
Collection fieldsSet)
Unwraps the field joinpoints contained in fieldsGet and fieldsSet. |
void |
wrap(javassist.CtClass clazz,
Collection fieldsGet,
Collection fieldsSet)
Wraps the field joinpoints contained in fieldsGet and fieldsSet. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FieldAccessTransformer(Instrumentor instrumentor)
| Method Detail |
public void buildFieldWrappers(javassist.CtClass clazz,
ClassAdvisor advisor)
throws javassist.NotFoundException,
javassist.CannotCompileException
javassist.NotFoundException
javassist.CannotCompileException
public boolean replaceFieldAccess(List fields,
javassist.CtClass clazz,
ClassAdvisor fieldsAdvisor)
throws javassist.NotFoundException
clazz - fieldsAdvisor -
javassist.NotFoundException
public void wrap(javassist.CtClass clazz,
Collection fieldsGet,
Collection fieldsSet)
throws javassist.CannotCompileException,
javassist.NotFoundException
fieldsGet and fieldsSet.
clazz - the class being instrumented.fieldsGet - a collection of java.lang.Integer indentifying
the field reads to be wrapped.fieldsSet - a collection of java.lang.Integer indentifying
the field writes to be wrapped.
javassist.CannotCompileException
javassist.NotFoundException
public void unwrap(javassist.CtClass clazz,
Collection fieldsGet,
Collection fieldsSet)
throws javassist.CannotCompileException,
javassist.NotFoundException
fieldsGet and fieldsSet.
clazz - the class being instrumented.fieldsGet - a collection of java.lang.Integer indentifying
the field reads to be unwrapped.fieldsSet - a collection of java.lang.Integer indentifying
the field writes to be unwrapped.
javassist.CannotCompileException
javassist.NotFoundException
public void codeConverted()
throws javassist.NotFoundException,
javassist.CannotCompileException
codeConverted in interface org.jboss.aop.instrument.CodeConversionObserverjavassist.NotFoundException
javassist.CannotCompileException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||