Interface ResolvedEnumDeclaration
-
- All Superinterfaces:
AssociableToAST,HasAccessSpecifier,ResolvedDeclaration,ResolvedReferenceTypeDeclaration,ResolvedTypeDeclaration,ResolvedTypeParametrizable
- All Known Implementing Classes:
JavaParserEnumDeclaration,JavassistEnumDeclaration,ReflectionEnumDeclaration
public interface ResolvedEnumDeclaration extends ResolvedReferenceTypeDeclaration, HasAccessSpecifier
Declaration of an Enum.- Author:
- Federico Tomassetti
-
-
Field Summary
-
Fields inherited from interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
breadthFirstFunc, depthFirstFunc, JAVA_LANG_ENUM, JAVA_LANG_OBJECT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ResolvedEnumDeclarationasEnum()Return this as a EnumDeclaration or throw UnsupportedOperationException.default ResolvedEnumConstantDeclarationgetEnumConstant(String name)List<ResolvedEnumConstantDeclaration>getEnumConstants()default booleanhasEnumConstant(String name)default booleanisEnum()Is this the declaration of an enum?-
Methods inherited from interface com.github.javaparser.resolution.declarations.AssociableToAST
toAst, toAst
-
Methods inherited from interface com.github.javaparser.resolution.declarations.HasAccessSpecifier
accessSpecifier
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, asPattern, getName, hasName, isEnumConstant, isField, isMethod, isParameter, isPattern, isVariable
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
asReferenceType, canBeAssignedTo, findTypeParameter, getAllAncestors, getAllAncestors, getAllFields, getAllMethods, getAllNonStaticFields, getAllStaticFields, getAncestors, getAncestors, getConstructors, getDeclaredFields, getDeclaredMethods, getField, getVisibleField, getVisibleFields, hasAnnotation, hasDirectlyAnnotation, hasField, hasVisibleField, isAssignableBy, isAssignableBy, isFunctionalInterface, isJavaLangEnum, isJavaLangObject, isReferenceType
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
asAnnotation, asClass, asInterface, asType, asTypeParameter, containerType, getClassName, getId, getInternalType, getPackageName, getQualifiedName, hasInternalType, internalTypes, isAnnotation, isAnonymousClass, isClass, isInterface, isType, isTypeParameter
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
getTypeParameters, isGeneric
-
-
-
-
Method Detail
-
isEnum
default boolean isEnum()
Description copied from interface:ResolvedTypeDeclarationIs this the declaration of an enum?- Specified by:
isEnumin interfaceResolvedTypeDeclaration
-
asEnum
default ResolvedEnumDeclaration asEnum()
Description copied from interface:ResolvedTypeDeclarationReturn this as a EnumDeclaration or throw UnsupportedOperationException.- Specified by:
asEnumin interfaceResolvedTypeDeclaration
-
getEnumConstants
List<ResolvedEnumConstantDeclaration> getEnumConstants()
-
hasEnumConstant
default boolean hasEnumConstant(String name)
-
getEnumConstant
default ResolvedEnumConstantDeclaration getEnumConstant(String name)
-
-