Interface ResolvedFieldDeclaration
-
- All Superinterfaces:
HasAccessSpecifier
,ResolvedDeclaration
,ResolvedValueDeclaration
public interface ResolvedFieldDeclaration extends ResolvedValueDeclaration, HasAccessSpecifier
Declaration of a field.- Author:
- Federico Tomassetti
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ResolvedFieldDeclaration
asField()
Return this as a FieldDeclaration or throw an UnsupportedOperationExceptionResolvedTypeDeclaration
declaringType()
The type on which this field has been declareddefault boolean
isField()
Does this declaration represents a class field?boolean
isStatic()
Is the field static?-
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, getName, hasName, isEnumConstant, isMethod, isParameter, isType, isVariable
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedValueDeclaration
getType
-
-
-
-
Method Detail
-
isStatic
boolean isStatic()
Is the field static?
-
isField
default boolean isField()
Description copied from interface:ResolvedDeclaration
Does this declaration represents a class field?- Specified by:
isField
in interfaceResolvedDeclaration
-
asField
default ResolvedFieldDeclaration 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
-
-