Comparable<FieldInfo>
public class FieldInfo extends Object implements Comparable<FieldInfo>
Modifier and Type | Field | Description |
---|---|---|
protected ScanResult |
scanResult |
Modifier and Type | Method | Description |
---|---|---|
int |
compareTo(FieldInfo other) |
Sort in order of class name then field name
|
boolean |
equals(Object obj) |
Use class name and field name for equals().
|
AnnotationInfoList |
getAnnotationInfo() |
Get a list of annotations on this field, along with any annotation parameter values, wrapped in
AnnotationInfo objects. |
protected String |
getClassName() |
Returns the defining class name, so that super.getClassInfo() returns the
ClassInfo object for the
defining class. |
protected void |
getClassNamesFromTypeDescriptors(Set<String> classNames) |
Get the names of any classes in the type descriptor or type signature.
|
Object |
getConstantInitializerValue() |
Returns the constant initializer value of a constant final field.
|
ClassInfo |
getDefiningClassInfo() |
Get the class this field is defined within.
|
String |
getDefiningClassName() |
Get the name of the class this field is defined within.
|
int |
getModifiers() |
Returns the modifier bits for the field.
|
String |
getModifierStr() |
Get the field modifiers as a string, e.g.
|
String |
getName() |
Returns the name of the field.
|
TypeSignature |
getTypeDescriptor() |
Returns the parsed type descriptor for the field, if available.
|
TypeSignature |
getTypeSignature() |
Returns the parsed type signature for the field, if available.
|
TypeSignature |
getTypeSignatureOrTypeDescriptor() |
Returns the type signature for the field, possibly including type parameters.
|
int |
hashCode() |
Use hash code of class name and field name.
|
boolean |
isFinal() |
Returns true if this field is final.
|
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() |
protected transient ScanResult scanResult
public String getName()
public String getDefiningClassName()
public ClassInfo getDefiningClassInfo()
public String getModifierStr()
public boolean isPublic()
public boolean isStatic()
public boolean isFinal()
public boolean isTransient()
public int getModifiers()
public TypeSignature getTypeDescriptor()
public TypeSignature getTypeSignature()
public TypeSignature getTypeSignatureOrTypeDescriptor()
public Object getConstantInitializerValue()
ClassGraph.enableStaticFinalFieldConstantInitializerValues()
to have been called.public AnnotationInfoList getAnnotationInfo()
AnnotationInfo
objects.AnnotationInfo
objects, or the empty list if none.protected String getClassName()
ClassInfo
object for the
defining class.protected void getClassNamesFromTypeDescriptors(Set<String> classNames)
public boolean equals(Object obj)
public int hashCode()
public int compareTo(FieldInfo other)
compareTo
in interface Comparable<FieldInfo>
Copyright © 2018. All rights reserved.