public interface FieldDeclaration extends ValueDeclaration, HasAccessLevel
Modifier and Type | Method and Description |
---|---|
default FieldDeclaration |
asField()
Return this as a FieldDeclaration or throw an UnsupportedOperationException
|
TypeDeclaration |
declaringType()
The type on which this field has been declared
|
default boolean |
isField()
Does this declaration represents a class field?
|
boolean |
isStatic()
Is the field static?
|
getType
asMethod, asParameter, asType, getName, hasName, isMethod, isParameter, isType
accessLevel
boolean isStatic()
default boolean isField()
Declaration
isField
in interface Declaration
default FieldDeclaration asField()
Declaration
asField
in interface Declaration
TypeDeclaration declaringType()