Modifier and Type | Method and Description |
---|---|
int |
getAccess() |
Annotation |
getAnnotation(ClassName annotationClass)
Returns the annotation for a specified annotation type, or null if
no annotation of that type exists for this field.
|
Collection<Annotation> |
getAnnotations()
Returns all <ClassName,Annotation> runtime annotations defined for this field.
|
AttributeMap |
getAttributes()
Returns a map of the raw attributes for this field.
|
ClassFile |
getClassFile()
Returns the class file this field is defined in.
|
abstract String |
getDeclaration() |
String |
getDescriptor() |
String |
getName() |
String |
getTypeSignature()
Returns the generic type information associated with this field.
|
boolean |
isAnnotationPresent(ClassName annotationClass)
Returns true if an annotation of the specified type is defined for
this field.
|
boolean |
isDeprecated() |
boolean |
isPackagePrivate() |
boolean |
isPrivate() |
boolean |
isProtected() |
boolean |
isPublic() |
boolean |
isStatic() |
boolean |
isSynthetic() |
String |
toString() |
public final String getName()
public final String getDescriptor()
public abstract String getDeclaration()
public final int getAccess()
public final boolean isStatic()
public final boolean isPublic()
public final boolean isProtected()
public final boolean isPackagePrivate()
public final boolean isPrivate()
public final boolean isDeprecated()
public final boolean isSynthetic()
public final ClassFile getClassFile()
public String getTypeSignature()
public final Collection<Annotation> getAnnotations()
public final Annotation getAnnotation(ClassName annotationClass)
annotationClass
- type of annotationpublic final boolean isAnnotationPresent(ClassName annotationClass)
annotationClass
- type of annotationpublic final AttributeMap getAttributes()
includeCode
parameter that is
false, then Code attributes are not included in this map.ClassFile.getAttributes()