|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sourceforge.jemm.weaver.transformation.AbstractClassTransformation
org.sourceforge.jemm.weaver.transformation.ShadowTransformation
public class ShadowTransformation
Adds the ShadowObject field called jemmOIF to the class.
| Field Summary | |
|---|---|
static java.lang.String |
COMPILER_VERSION_VARIABLE_NAME
The name of the compiler version variable added to user classes. |
static java.lang.String |
SHADOW_CLASS
The class of the shadow reference held by user classes. |
static java.lang.String |
SHADOW_VARIABLE_NAME
The name of the ShadowObject variable added to user classes. |
protected javassist.CtClass |
type
|
| Constructor Summary | |
|---|---|
ShadowTransformation()
Creates a new ShadowObject. |
|
| Method Summary | |
|---|---|
java.lang.String[] |
dependentTransforms()
Has no dependencies and hence returns an empty array |
void |
transform(javassist.CtClass clazz)
Adds the ShadowObject instance to the class as a protected field. |
| Methods inherited from class org.sourceforge.jemm.weaver.transformation.AbstractClassTransformation |
|---|
equals, getTransformationName, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SHADOW_VARIABLE_NAME
public static final java.lang.String COMPILER_VERSION_VARIABLE_NAME
public static final java.lang.String SHADOW_CLASS
protected final javassist.CtClass type
| Constructor Detail |
|---|
public ShadowTransformation()
throws javassist.NotFoundException
javassist.NotFoundException - If ShadowObject class can not be loaded| Method Detail |
|---|
public void transform(javassist.CtClass clazz)
throws TransformationException
transform in interface Transformationtransform in class AbstractClassTransformationclazz - The class to modify
TransformationException - If the field can not be added.public java.lang.String[] dependentTransforms()
dependentTransforms in interface TransformationdependentTransforms in class AbstractClassTransformation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||