Public 成员函数 | |
| FieldAttributes (Field f) | |
| Class<?> | getDeclaringClass () |
| String | getName () |
| Type | getDeclaredType () |
| Class<?> | getDeclaredClass () |
| Collection< Annotation > | getAnnotations () |
| boolean | hasModifier (int modifier) |
包函数 | |
| public< T extends Annotation > T | getAnnotation (Class< T > annotation) |
| Object | get (Object instance) throws IllegalAccessException |
| boolean | isSynthetic () |
Private 属性 | |
| final Field | field |
A data object that stores attributes of a field.
This class is immutable; therefore, it can be safely shared across threads.
|
inline |
Constructs a Field Attributes object from the
.
| f | the field to pull attributes from |
|
inlinepackage |
This is exposed internally only for the removing synthetic fields from the JSON output.
| IllegalAccessException | |
| IllegalArgumentException |
|
inlinepackage |
Return the
annotation object from this field if it exist; otherwise returns
.
| annotation | the class of the annotation that will be retrieved |
|
inline |
Return the annotations that are present on this field.
|
inline |
Returns the
object that was declared for this field.
For example, assume the following class definition:
public class Foo {
private String bar;
private List<String> red;
}
This method would return
for the
field and
for the
field.
|
inline |
For example, assume the following class definition:
public class Foo {
private String bar;
private List<String> red;
}Type listParmeterizedType = new TypeToken<List<String>>() {}.getType();
This method would return
for the
field and
for the
field.
|
inline |
|
inline |
|
inline |
Returns
if the field is defined with the
.
This method is meant to be called as:
boolean hasPublicModifier = fieldAttribute.hasModifier(java.lang.reflect.Modifier.PUBLIC);
|
inlinepackage |
This is exposed internally only for the removing synthetic fields from the JSON output.
|
private |
1.8.8