Interface ResolvedFieldDeclaration
- All Superinterfaces:
AssociableToAST<FieldDeclaration>
,HasAccessSpecifier
,ResolvedDeclaration
,ResolvedValueDeclaration
public interface ResolvedFieldDeclaration
extends ResolvedValueDeclaration, HasAccessSpecifier, AssociableToAST<FieldDeclaration>
Declaration of a field.
- Author:
- Federico Tomassetti
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResolvedFieldDeclaration
asField()
Return this as a FieldDeclaration or throw an UnsupportedOperationExceptionThe type on which this field has been declareddefault boolean
isField()
Does this declaration represents a class field?boolean
isStatic()
Is the field static?boolean
Is the field volatile?Methods inherited from interface com.github.javaparser.resolution.declarations.AssociableToAST
toAst
Methods inherited from interface com.github.javaparser.resolution.declarations.HasAccessSpecifier
accessSpecifier
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asMethod, asParameter, asPattern, asType, getName, hasName, isEnumConstant, isMethod, isParameter, isPattern, isType, isVariable
Methods inherited from interface com.github.javaparser.resolution.declarations.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:ResolvedDeclaration
Does this declaration represents a class field?- Specified by:
isField
in interfaceResolvedDeclaration
-
asField
Description copied from interface:ResolvedDeclaration
Return this as a FieldDeclaration or throw an UnsupportedOperationException- Specified by:
asField
in interfaceResolvedDeclaration
-
declaringType
ResolvedTypeDeclaration declaringType()The type on which this field has been declared
-