public class FieldInfo extends Object
Constructor and Description |
---|
FieldInfo(String fieldName,
int modifiers,
String typeDescriptor,
Object constValue,
List<String> annotationNames) |
Modifier and Type | Method and Description |
---|---|
int |
getAccessFlags()
Returns the access flags of the field.
|
List<String> |
getAnnotationNames()
Returns the names of annotations on the field, or the empty list if none.
|
Object |
getConstFinalValue()
Returns the constant final initializer value of the field, or null if none.
|
String |
getFieldName()
Returns the name of the field.
|
String |
getModifiers()
Get the field modifiers as a string, e.g.
|
String |
getTypeStr()
Returns the type of the field, in string representation (e.g.
|
boolean |
isFinal()
Returns true if this field is final.
|
boolean |
isPackagePrivate()
Returns true if this field is package-private.
|
boolean |
isPrivate()
Returns true if this field is private.
|
boolean |
isProtected()
Returns true if this field is protected.
|
boolean |
isPublic()
Returns true if this field is public.
|
boolean |
isStatic()
Returns true if this field is static.
|
boolean |
isTransient()
Returns true if this field is a transient field.
|
String |
toString() |
public String getModifiers()
public boolean isPublic()
public boolean isPrivate()
public boolean isProtected()
public boolean isPackagePrivate()
public boolean isStatic()
public boolean isFinal()
public boolean isTransient()
public String getFieldName()
public int getAccessFlags()
public String getTypeStr()
public Object getConstFinalValue()
public List<String> getAnnotationNames()
Copyright © 2017. All rights reserved.