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, isType
annotation, annotations, annotations, hasAnnotation, hasAnnotation, repeatableAnnotation
java.lang.String name()
null
boolean isStatic()
static
.static
.boolean isFinal()
final
.final
.int modifiers()
int
.
Use Modifier
to inspect the value.ClassInfo declaringClass()
null
default DeclarationInfo.Kind kind()
DeclarationInfo
kind
in interface DeclarationInfo
default FieldInfo asField()
DeclarationInfo
asField
in interface DeclarationInfo
null