Interface ResolvedFieldDeclaration
- All Superinterfaces:
AssociableToAST
,HasAccessSpecifier
,ResolvedDeclaration
,ResolvedValueDeclaration
- All Known Implementing Classes:
JavaParserFieldDeclaration
,JavassistFieldDeclaration
,ReflectionFieldDeclaration
Declaration of a field.
-
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, 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, asType, asTypePattern, getName, hasName, isEnumConstant, isMethod, isParameter, isType, isTypePattern, 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
-