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 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?Methods inherited from interface com.github.javaparser.resolution.declarations.AssociableToAST
toAstMethods inherited from interface com.github.javaparser.resolution.declarations.HasAccessSpecifier
accessSpecifierMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asMethod, asParameter, asPattern, asType, getName, hasName, isEnumConstant, isMethod, isParameter, isPattern, isType, isVariableMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedValueDeclaration
getType
-
Method Details
-
isStatic
boolean isStatic()Is the field static? -
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
-