CtClass#getDeclaredFields()
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class | |
| pack-priv abstract static class | |
| pack-priv static class | |
| pack-priv static class | |
| public abstract static class | CtField.
Instances of this class specify how to initialize a field. |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | CtField.
A field initialized with the result of a static method call. |
| pack-priv static class | |
| pack-priv static class | CtField.
A field initialized with an object created by the new operator. |
| pack-priv static class | CtField.
A field initialized with a parameter passed to the constructor of the class containing that field. |
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| protected FieldInfo | |
| pack-priv static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| private | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected void | extendToString(StringBuilder buffer)
Implements abstract javassist. Invoked by |
| public Object | Returns: the annotation if found, otherwisenull.the annotation class. clz)Implements abstract javassist. Returns the annotation if the class has the specified annotation class. |
| public Object[] | Returns: an array of annotation-type objects.Implements abstract javassist. Returns the annotations associated with this field. |
| private Object[] | |
| public byte[] | getAttribute(String
attribute name name)Implements abstract javassist. Obtains an attribute with the given name. |
| public Object[] | Returns: an array of annotation-type objects.Implements abstract javassist. Returns the annotations associated with this field. |
| public Object | Returns: aInteger, Long, Float,
Double, Boolean,
or String object
representing the constant value.
null if it is not a constant field
or if the field type is not a primitive type
or String.Returns the value of this field if it is a constant field. |
| public CtClass | getDeclaringClass()
Overrides javassist. Returns the class declaring the field. |
| public FieldInfo | |
| public FieldInfo | |
| public String | getGenericSignature()
Implements abstract javassist. Returns the generic signature of the field. |
| pack-priv CtField. | |
| protected ASTree | |
| public int | getModifiers()
Implements abstract javassist. Returns the encoded modifiers of the field. |
| public String | |
| public String | getSignature()
Implements abstract javassist. Returns the character string representing the type of the field. |
| public CtClass | |
| public boolean | Returns: true if the annotation is found, otherwise false.the name of annotation type. typeName)Implements abstract javassist. Returns true if the class has the specified annotation type. |
| public static CtField | |
| public void | setAttribute(String
attribute name name, byte[] attribute value data)Implements abstract javassist. Adds an attribute. |
| public void | setGenericSignature(String
a new generic signature. sig)Implements abstract javassist. Set the generic signature of the field. |
| public void | setModifiers(int mod)
Implements abstract javassist. Sets the encoded modifiers of the field. |
| public void | |
| public void | |
| public String |