Interface ResolvedFieldDeclaration
- All Superinterfaces:
AssociableToAST, HasAccessSpecifier, ResolvedDeclaration, ResolvedValueDeclaration
- All Known Implementing Classes:
JavaParserFieldDeclaration, JavassistFieldDeclaration, ReflectionFieldDeclaration
Declaration of a field.
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResolvedFieldDeclarationasField()Return this as a FieldDeclaration or throw an UnsupportedOperationExceptionThe type on which this field has been declareddefault booleanisField()Does this declaration represents a class field?booleanisStatic()Is the field static?booleanIs the field volatile?Methods inherited from interface AssociableToAST
toAst, toAstMethods inherited from interface HasAccessSpecifier
accessSpecifierMethods inherited from interface ResolvedDeclaration
asEnumConstant, asMethod, asParameter, asType, asTypePattern, getName, hasName, isEnumConstant, isMethod, isParameter, isType, isTypePattern, isVariableMethods inherited from interface ResolvedValueDeclaration
getType
-
Method Details
-
isStatic
boolean isStatic()Is the field static? -
isVolatile
boolean isVolatile()Is the field volatile? -
isField
default boolean isField()Description copied from interface:ResolvedDeclarationDoes this declaration represents a class field?- Specified by:
isFieldin interfaceResolvedDeclaration
-
asField
Description copied from interface:ResolvedDeclarationReturn this as a FieldDeclaration or throw an UnsupportedOperationException- Specified by:
asFieldin interfaceResolvedDeclaration
-
declaringType
ResolvedTypeDeclaration declaringType()The type on which this field has been declared
-