public interface ResolvedEnumDeclaration extends ResolvedReferenceTypeDeclaration, HasAccessSpecifier
breadthFirstFunc, depthFirstFunc, JAVA_IO_SERIALIZABLE, JAVA_LANG_COMPARABLE, JAVA_LANG_ENUM, JAVA_LANG_OBJECT, JAVA_LANG_RECORD| Modifier and Type | Method and Description |
|---|---|
default ResolvedEnumDeclaration |
asEnum()
Return this as a EnumDeclaration or throw UnsupportedOperationException.
|
default ResolvedEnumConstantDeclaration |
getEnumConstant(String name) |
List<ResolvedEnumConstantDeclaration> |
getEnumConstants() |
default boolean |
hasEnumConstant(String name) |
default boolean |
isEnum()
Is this the declaration of an enum?
|
asReferenceType, canBeAssignedTo, findTypeParameter, getAllAncestors, getAllAncestors, getAllFields, getAllMethods, getAllNonStaticFields, getAllStaticFields, getAncestors, getAncestors, getConstructors, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredFields, getDeclaredMethods, getField, getVisibleField, getVisibleFields, hasAnnotation, hasDirectlyAnnotation, hasField, hasVisibleField, isAssignableBy, isAssignableBy, isFunctionalInterface, isInheritedAnnotation, isJavaLangEnum, isJavaLangObject, isJavaLangRecord, isReferenceTypeasAnnotation, asClass, asInterface, asRecord, asType, asTypeParameter, containerType, getClassName, getId, getInternalType, getPackageName, getQualifiedName, hasInternalType, internalTypes, isAnnotation, isAnonymousClass, isClass, isInterface, isRecord, isType, isTypeParameterasEnumConstant, asField, asMethod, asParameter, asTypePattern, getName, hasName, isEnumConstant, isField, isMethod, isParameter, isTypePattern, isVariabletoAst, toAstgetTypeParameters, isGenericaccessSpecifierdefault boolean isEnum()
ResolvedTypeDeclarationisEnum in interface ResolvedTypeDeclarationdefault ResolvedEnumDeclaration asEnum()
ResolvedTypeDeclarationasEnum in interface ResolvedTypeDeclarationList<ResolvedEnumConstantDeclaration> getEnumConstants()
default boolean hasEnumConstant(String name)
default ResolvedEnumConstantDeclaration getEnumConstant(String name)
Copyright © 2007–2025. All rights reserved.