Interface ResolvedEnumConstantDeclaration
- All Superinterfaces:
ResolvedDeclaration,ResolvedValueDeclaration
- Author:
- Federico Tomassetti
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResolvedEnumConstantDeclarationReturn this as a EnumConstantDeclaration or throw an UnsupportedOperationExceptiongetName()Should return the name or return null if the name is not available.default booleanDoes this declaration represents an enum constant?Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asField, asMethod, asParameter, asPattern, asType, hasName, isField, isMethod, isParameter, isPattern, isType, isVariableMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedValueDeclaration
getType
-
Method Details
-
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
Description copied from interface:ResolvedDeclarationReturn this as a EnumConstantDeclaration or throw an UnsupportedOperationException- Specified by:
asEnumConstantin interfaceResolvedDeclaration
-