public interface ResolvedEnumConstantDeclaration extends ResolvedValueDeclaration
Modifier and Type | Method and Description |
---|---|
default ResolvedEnumConstantDeclaration |
asEnumConstant()
Return this as a EnumConstantDeclaration or throw an UnsupportedOperationException
|
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?
|
getType
asField, asMethod, asParameter, asPattern, asType, hasName, isField, isMethod, isParameter, isPattern, isType, isVariable
toAst, toAst
String getName()
ResolvedDeclaration
getName
in interface ResolvedDeclaration
default boolean isEnumConstant()
ResolvedDeclaration
isEnumConstant
in interface ResolvedDeclaration
default ResolvedEnumConstantDeclaration asEnumConstant()
ResolvedDeclaration
asEnumConstant
in interface ResolvedDeclaration
Copyright © 2007–2024. All rights reserved.