Interface FieldInfo
- 
- All Superinterfaces:
- AnnotationTarget,- DeclarationInfo
 
 public interface FieldInfo extends DeclarationInfo A field, declared in some class.- Since:
- 4.0
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface jakarta.enterprise.lang.model.declarations.DeclarationInfoDeclarationInfo.Kind
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default FieldInfoasField()Returns this declaration as a field.ClassInfodeclaringClass()Returns the class that declares this field.booleanisFinal()Returns whether this field isfinal.booleanisStatic()Returns whether this field isstatic.default DeclarationInfo.Kindkind()Returns the kind of this declaration.intmodifiers()Returns the modifiers of this field as anint.Stringname()Returns the name of this field.Typetype()Returns the type of this field.- 
Methods inherited from interface jakarta.enterprise.lang.model.AnnotationTargetannotation, annotations, annotations, hasAnnotation, hasAnnotation, repeatableAnnotation
 - 
Methods inherited from interface jakarta.enterprise.lang.model.declarations.DeclarationInfoasClass, asDeclaration, asMethod, asPackage, asParameter, asRecordComponent, asType, isClass, isDeclaration, isField, isMethod, isPackage, isParameter, isRecordComponent, isType
 
- 
 
- 
- 
- 
Method Detail- 
nameString name() Returns the name of this field.- Returns:
- the name of this field, never null
 
 - 
isStaticboolean isStatic() Returns whether this field isstatic.- Returns:
- whether this field is static.
 
 - 
isFinalboolean isFinal() Returns whether this field isfinal.- Returns:
- whether this field is final.
 
 - 
modifiersint modifiers() Returns the modifiers of this field as anint. UseModifierto inspect the value.- Returns:
- the modifiers of this field
 
 - 
declaringClassClassInfo declaringClass() Returns the class that declares this field.- Returns:
- the class that declares this field, never null
 
 - 
kinddefault DeclarationInfo.Kind kind() Description copied from interface:DeclarationInfoReturns the kind of this declaration.- Specified by:
- kindin interface- DeclarationInfo
- Returns:
- the kind of this declaration
 
 - 
asFielddefault FieldInfo asField() Description copied from interface:DeclarationInfoReturns this declaration as a field.- Specified by:
- asFieldin interface- DeclarationInfo
- Returns:
- this field, never null
 
 
- 
 
-