Interface ResolvedEnumDeclaration
-
- All Superinterfaces:
HasAccessSpecifier
,ResolvedDeclaration
,ResolvedReferenceTypeDeclaration
,ResolvedTypeDeclaration
,ResolvedTypeParametrizable
public interface ResolvedEnumDeclaration extends ResolvedReferenceTypeDeclaration, HasAccessSpecifier
Declaration of an Enum.- Author:
- Federico Tomassetti
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method 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?-
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, getName, hasName, isEnumConstant, isField, isMethod, isParameter, isVariable
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
asReferenceType, canBeAssignedTo, findTypeParameter, getAllAncestors, getAllFields, getAllMethods, getAllNonStaticFields, getAllStaticFields, getAncestors, getAncestors, getConstructors, getDeclaredFields, getDeclaredMethods, getField, getVisibleField, getVisibleFields, hasAnnotation, hasDirectlyAnnotation, hasField, hasVisibleField, isAssignableBy, isAssignableBy, isFunctionalInterface
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
asClass, asInterface, asType, asTypeParameter, containerType, getClassName, getId, getInternalType, getPackageName, getQualifiedName, hasInternalType, internalTypes, 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:ResolvedTypeDeclaration
Is this the declaration of an enum?- Specified by:
isEnum
in interfaceResolvedTypeDeclaration
-
asEnum
default ResolvedEnumDeclaration asEnum()
Description copied from interface:ResolvedTypeDeclaration
Return this as a EnumDeclaration or throw UnsupportedOperationException.- Specified by:
asEnum
in interfaceResolvedTypeDeclaration
-
getEnumConstants
List<ResolvedEnumConstantDeclaration> getEnumConstants()
-
hasEnumConstant
default boolean hasEnumConstant(String name)
-
getEnumConstant
default ResolvedEnumConstantDeclaration getEnumConstant(String name)
-
-