public interface FieldInfo extends DeclarationInfo
DeclarationInfo.Kind| Modifier and Type | Method and Description |
|---|---|
default FieldInfo |
asField()
Returns this declaration as a field.
|
ClassInfo |
declaringClass()
Returns the class that declares this field.
|
boolean |
isFinal()
Returns whether this field is
final. |
boolean |
isStatic()
Returns whether this field is
static. |
default DeclarationInfo.Kind |
kind()
Returns the kind of this declaration.
|
int |
modifiers()
Returns the modifiers of this field as an
int. |
java.lang.String |
name()
Returns the name of this field.
|
Type |
type()
Returns the type of this field.
|
asClass, asDeclaration, asMethod, asPackage, asParameter, asRecordComponent, asType, isClass, isDeclaration, isField, isMethod, isPackage, isParameter, isRecordComponent, isTypeannotation, annotations, annotations, hasAnnotation, hasAnnotation, repeatableAnnotationjava.lang.String name()
nullboolean isStatic()
static.static.boolean isFinal()
final.final.int modifiers()
int.
Use Modifier to inspect the value.ClassInfo declaringClass()
nulldefault DeclarationInfo.Kind kind()
DeclarationInfokind in interface DeclarationInfodefault FieldInfo asField()
DeclarationInfoasField in interface DeclarationInfonull