Interface ResolvedEnumConstantDeclaration
-
- All Superinterfaces:
AssociableToAST,ResolvedDeclaration,ResolvedValueDeclaration
public interface ResolvedEnumConstantDeclaration extends ResolvedValueDeclaration
- Author:
- Federico Tomassetti
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ResolvedEnumConstantDeclarationasEnumConstant()Return this as a EnumConstantDeclaration or throw an UnsupportedOperationExceptionStringgetName()Should return the name or return null if the name is not available.default booleanisEnumConstant()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, asType, asTypePattern, hasName, isField, isMethod, isParameter, isType, isTypePattern, isVariable
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedValueDeclaration
getType
-
-
-
-
Method Detail
-
getName
String getName()
Description copied from interface:ResolvedDeclarationShould return the name or return null if the name is not available.- Specified by:
getNamein interfaceResolvedDeclaration
-
isEnumConstant
default boolean isEnumConstant()
Description copied from interface:ResolvedDeclarationDoes this declaration represents an enum constant?- Specified by:
isEnumConstantin interfaceResolvedDeclaration
-
asEnumConstant
default ResolvedEnumConstantDeclaration asEnumConstant()
Description copied from interface:ResolvedDeclarationReturn this as a EnumConstantDeclaration or throw an UnsupportedOperationException- Specified by:
asEnumConstantin interfaceResolvedDeclaration
-
-