Overview | Package | Class | Use | Tree | Deprecated | Index
PREV NEXT | FRAMES NO FRAMES

## Uses of Class
javassist.CtField

Packages that use CtField
javassist | The Javassist Core API.
javassist.expr | This package contains the classes for modifying a method body.

Uses of CtField in javassist

Methods in javassist that return CtField
`static CtField` | `CtField.make(java.lang.String src, CtClass declaring)` Compiles the given source code and creates a field.
`CtField[]` | `CtClass.getFields()` Returns an array containing `CtField` objects representing all the public fields of the class.
`CtField` | `CtClass.getField(java.lang.String name)` Returns the field with the specified name.
`CtField[]` | `CtClass.getDeclaredFields()` Gets all the fields declared in the class.
`CtField` | `CtClass.getDeclaredField(java.lang.String name)` Retrieves the field with the specified name among the fields declared in the class.

Methods in javassist with parameters of type CtField
`static CtMethod` | `CtNewMethod.getter(java.lang.String methodName, CtField field)` Creates a public getter method.
`static CtMethod` | `CtNewMethod.setter(java.lang.String methodName, CtField field)` Creates a public setter method.
`void` | `CtClass.addField(CtField f)` Adds a field.
`void` | `CtClass.addField(CtField f, java.lang.String init)` Adds a field with an initial value.
`void` | `CtClass.addField(CtField f, CtField.Initializer init)` Adds a field with an initial value.
`void` | `CodeConverter.redirectFieldAccess(CtField field, CtClass newClass, java.lang.String newFieldname)` Modify a method body so that field read/write expressions access a different field from the original one.
`void` | `CodeConverter.replaceFieldRead(CtField field, CtClass calledClass, java.lang.String calledMethod)` Modify a method body so that an expression reading the specified field is replaced with a call to the specified static method.
`void` | `CodeConverter.replaceFieldWrite(CtField field, CtClass calledClass, java.lang.String calledMethod)` Modify a method body so that an expression writing the specified field is replaced with a call to the specified static method.

Constructors in javassist with parameters of type CtField
`CtField(CtField src, CtClass declaring)` Creates a copy of the given field.

Uses of CtField in javassist.expr

Methods in javassist.expr that return CtField
`CtField` | `FieldAccess.getField()` Returns the field accessed by this expression.

Overview | Package | Class | Use | Tree | Deprecated | Index
PREV NEXT | FRAMES NO FRAMES

Javassist, a Java-bytecode translator toolkit. Copyright (C) 1999-2003 Shigeru Chiba. All Rights Reserved.