public interface ResolvedEnumDeclaration extends ResolvedReferenceTypeDeclaration, HasAccessSpecifier
breadthFirstFunc, depthFirstFunc, JAVA_IO_SERIALIZABLE, JAVA_LANG_COMPARABLE, JAVA_LANG_ENUM, JAVA_LANG_OBJECT
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, isReferenceType
asAnnotation, asClass, asInterface, asType, asTypeParameter, containerType, getClassName, getId, getInternalType, getPackageName, getQualifiedName, hasInternalType, internalTypes, isAnnotation, isAnonymousClass, isClass, isInterface, isType, isTypeParameter
asEnumConstant, asField, asMethod, asParameter, asPattern, getName, hasName, isEnumConstant, isField, isMethod, isParameter, isPattern, isVariable
toAst, toAst
getTypeParameters, isGeneric
accessSpecifier
default boolean isEnum()
ResolvedTypeDeclaration
isEnum
in interface ResolvedTypeDeclaration
default ResolvedEnumDeclaration asEnum()
ResolvedTypeDeclaration
asEnum
in interface ResolvedTypeDeclaration
List<ResolvedEnumConstantDeclaration> getEnumConstants()
default boolean hasEnumConstant(String name)
default ResolvedEnumConstantDeclaration getEnumConstant(String name)
Copyright © 2007–2023. All rights reserved.