| Modifier and Type | Field and Description |
|---|---|
| private ConstPool | |
| private CtClass | |
| private String | |
| private boolean | |
| private String | |
| private String | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public int | transform(CtClass clazz, int pos, CodeIterator iterator, ConstPool cp)
Implements abstract javassist. Modify GETFIELD, GETSTATIC, PUTFIELD, and PUTSTATIC so that a different field is accessed. |
| constPool | back to summary |
|---|---|
| private ConstPool constPool | |
| fieldClass | back to summary |
|---|---|
| private CtClass fieldClass | |
| fieldname | back to summary |
|---|---|
| private String fieldname | |
| isPrivate | back to summary |
|---|---|
| private boolean isPrivate | |
| newClassname | back to summary |
|---|---|
| private String newClassname | |
| newFieldname | back to summary |
|---|---|
| private String newFieldname | |
| newIndex | back to summary |
|---|---|
| private int newIndex | |
| TransformFieldAccess | back to summary |
|---|---|
| public TransformFieldAccess(Transformer next, CtField field, String newClassname, String newFieldname) | |
| initialize | back to summary |
|---|---|
| public void initialize(ConstPool cp, CodeAttribute attr) Overrides javassist.
| |
| transform | back to summary |
|---|---|
| public int transform(CtClass clazz, int pos, CodeIterator iterator, ConstPool cp) Implements abstract javassist. Modify GETFIELD, GETSTATIC, PUTFIELD, and PUTSTATIC so that a different field is accessed. The new field must be declared in a superclass of the class in which the original field is declared.
| |