Module jakarta.cdi.lang.model
Interface FieldInfo
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.enterprise.lang.model.declarations.DeclarationInfo
DeclarationInfo.Kind
-
Method Summary
Modifier and TypeMethodDescriptiondefault FieldInfo
asField()
Returns this declaration as a field.Returns the class that declares this field.boolean
isFinal()
Returns whether this field isfinal
.boolean
isStatic()
Returns whether this field isstatic
.default DeclarationInfo.Kind
kind()
Returns the kind of this declaration.int
Returns the modifiers of this field as anint
.name()
Returns the name of this field.type()
Returns the type of this field.Methods inherited from interface jakarta.enterprise.lang.model.AnnotationTarget
annotation, annotations, annotations, hasAnnotation, hasAnnotation, repeatableAnnotation
Methods inherited from interface jakarta.enterprise.lang.model.declarations.DeclarationInfo
asClass, asDeclaration, asMethod, asPackage, asParameter, asRecordComponent, asType, isClass, isDeclaration, isField, isMethod, isPackage, isParameter, isRecordComponent, isType
-
Method Details
-
name
-
type
-
isStatic
boolean isStatic()Returns whether this field isstatic
.- Returns:
- whether this field is
static
.
-
isFinal
boolean isFinal()Returns whether this field isfinal
.- Returns:
- whether this field is
final
.
-
modifiers
int modifiers()Returns the modifiers of this field as anint
. UseModifier
to inspect the value.- Returns:
- the modifiers of this field
-
declaringClass
-
kind
Description copied from interface:DeclarationInfo
Returns the kind of this declaration.- Specified by:
kind
in interfaceDeclarationInfo
- Returns:
- the kind of this declaration
-
asField
Description copied from interface:DeclarationInfo
Returns this declaration as a field.- Specified by:
asField
in interfaceDeclarationInfo
- Returns:
- this field, never
null
-