Interface ResolvedEnumConstantDeclaration
-
- All Superinterfaces:
AssociableToAST
,ResolvedDeclaration
,ResolvedValueDeclaration
public interface ResolvedEnumConstantDeclaration extends ResolvedValueDeclaration
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ResolvedEnumConstantDeclaration
asEnumConstant()
Return this as a EnumConstantDeclaration or throw an UnsupportedOperationExceptionjava.lang.String
getName()
Should return the name or return null if the name is not available.default boolean
isEnumConstant()
Does this declaration represents an enum constant?-
Methods inherited from interface com.github.javaparser.resolution.declarations.AssociableToAST
toAst, toAst
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asField, asMethod, asParameter, asPattern, asType, hasName, isField, isMethod, isParameter, isPattern, isType, isVariable
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedValueDeclaration
getType
-
-
-
-
Method Detail
-
getName
java.lang.String getName()
Description copied from interface:ResolvedDeclaration
Should return the name or return null if the name is not available.- Specified by:
getName
in interfaceResolvedDeclaration
-
isEnumConstant
default boolean isEnumConstant()
Description copied from interface:ResolvedDeclaration
Does this declaration represents an enum constant?- Specified by:
isEnumConstant
in interfaceResolvedDeclaration
-
asEnumConstant
default ResolvedEnumConstantDeclaration asEnumConstant()
Description copied from interface:ResolvedDeclaration
Return this as a EnumConstantDeclaration or throw an UnsupportedOperationException- Specified by:
asEnumConstant
in interfaceResolvedDeclaration
-
-