public class JavaParserEnumDeclaration extends AbstractTypeDeclaration implements ResolvedEnumDeclaration, MethodResolutionCapability, MethodUsageResolutionCapability, SymbolResolutionCapability
| Modifier and Type | Class and Description |
|---|---|
static class |
JavaParserEnumDeclaration.ValueOfMethod
Needed by ContextHelper
An implicitly declared method
public static E valueOf(String name), which returns the
enum constant of E with the specified name. |
static class |
JavaParserEnumDeclaration.ValuesMethod
Needed by ContextHelper
An implicitly declared method
public static E[] values(), which returns an array containing the
enum constants of E, in the same order as they appear in the body of the declaration of E. |
breadthFirstFunc, depthFirstFunc, JAVA_IO_SERIALIZABLE, JAVA_LANG_COMPARABLE, JAVA_LANG_ENUM, JAVA_LANG_OBJECT| Constructor and Description |
|---|
JavaParserEnumDeclaration(EnumDeclaration wrappedNode,
TypeSolver typeSolver) |
getAllMethods, isFunctionalInterfaceclone, finalize, getClass, notify, notifyAll, wait, wait, waitasEnum, getEnumConstant, hasEnumConstant, isEnumasReferenceType, findTypeParameter, getAllAncestors, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getAncestors, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredFields, getField, getVisibleField, getVisibleFields, hasAnnotation, hasField, hasVisibleField, isFunctionalInterface, isInheritedAnnotation, isJavaLangEnum, isJavaLangObject, isReferenceTypeasAnnotation, asClass, asInterface, asType, asTypeParameter, getId, getInternalType, hasInternalType, isAnnotation, isAnonymousClassasEnumConstant, asField, asMethod, asParameter, asPattern, hasName, isEnumConstant, isMethod, isPattern, isVariabletoAstisGenericpublic JavaParserEnumDeclaration(EnumDeclaration wrappedNode, TypeSolver typeSolver)
public Set<ResolvedMethodDeclaration> getDeclaredMethods()
getDeclaredMethods in interface ResolvedReferenceTypeDeclarationpublic Context getContext()
public String getName()
getName in interface ResolvedDeclarationpublic boolean isField()
isField in interface ResolvedDeclarationpublic boolean isParameter()
isParameter in interface ResolvedDeclarationpublic boolean isType()
isType in interface ResolvedDeclarationisType in interface ResolvedTypeDeclarationpublic boolean hasDirectlyAnnotation(String canonicalName)
hasDirectlyAnnotation in interface ResolvedReferenceTypeDeclarationpublic boolean canBeAssignedTo(ResolvedReferenceTypeDeclaration other)
canBeAssignedTo in interface ResolvedReferenceTypeDeclarationpublic boolean isClass()
isClass in interface ResolvedTypeDeclarationpublic boolean isInterface()
isInterface in interface ResolvedTypeDeclarationpublic String getPackageName()
getPackageName in interface ResolvedTypeDeclarationpublic String getClassName()
getClassName in interface ResolvedTypeDeclarationpublic String getQualifiedName()
getQualifiedName in interface ResolvedTypeDeclarationpublic boolean isAssignableBy(ResolvedReferenceTypeDeclaration other)
isAssignableBy in interface ResolvedReferenceTypeDeclarationpublic boolean isAssignableBy(ResolvedType type)
isAssignableBy in interface ResolvedReferenceTypeDeclarationpublic boolean isTypeParameter()
isTypeParameter in interface ResolvedTypeDeclarationpublic Optional<MethodUsage> solveMethodAsUsage(String name, List<ResolvedType> argumentTypes, Context invokationContext, List<ResolvedType> typeParameters)
solveMethodAsUsage in interface MethodUsageResolutionCapabilitypublic SymbolReference<ResolvedMethodDeclaration> solveMethod(String name, List<ResolvedType> argumentsTypes, boolean staticOnly)
solveMethod in interface MethodResolutionCapabilitypublic SymbolReference<? extends ResolvedValueDeclaration> solveSymbol(String name, TypeSolver typeSolver)
solveSymbol in interface SymbolResolutionCapabilityname - Field / symbol name.typeSolver - Symbol solver to resolve type usage.public List<ResolvedFieldDeclaration> getAllFields()
getAllFields in interface ResolvedReferenceTypeDeclarationpublic List<ResolvedReferenceType> getAncestors(boolean acceptIncompleteList)
getAncestors in interface ResolvedReferenceTypeDeclaration@Deprecated public SymbolReference<ResolvedTypeDeclaration> solveType(String name)
public List<ResolvedTypeParameterDeclaration> getTypeParameters()
getTypeParameters in interface ResolvedTypeParametrizablepublic EnumDeclaration getWrappedNode()
public List<ResolvedEnumConstantDeclaration> getEnumConstants()
getEnumConstants in interface ResolvedEnumDeclarationpublic AccessSpecifier accessSpecifier()
accessSpecifier in interface HasAccessSpecifierpublic Set<ResolvedReferenceTypeDeclaration> internalTypes()
internalTypes in interface ResolvedTypeDeclarationpublic Optional<ResolvedReferenceTypeDeclaration> containerType()
containerType in interface ResolvedTypeDeclarationpublic List<ResolvedConstructorDeclaration> getConstructors()
getConstructors in interface ResolvedReferenceTypeDeclarationpublic Optional<Node> toAst()
toAst in interface AssociableToASTCopyright © 2007–2024. All rights reserved.