Class ReflectionEnumDeclaration
java.lang.Object
com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration
com.github.javaparser.symbolsolver.reflectionmodel.ReflectionEnumDeclaration
- All Implemented Interfaces:
HasAccessSpecifier,ResolvedDeclaration,ResolvedEnumDeclaration,ResolvedReferenceTypeDeclaration,ResolvedTypeDeclaration,ResolvedTypeParametrizable,MethodUsageResolutionCapability,MethodResolutionCapability
public class ReflectionEnumDeclaration
extends AbstractTypeDeclaration
implements ResolvedEnumDeclaration, MethodResolutionCapability, MethodUsageResolutionCapability
- Author:
- Federico Tomassetti
-
Field Summary
Fields inherited from interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
breadthFirstFunc, depthFirstFunc, JAVA_LANG_ENUM, JAVA_LANG_OBJECT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAncestors(boolean acceptIncompleteList)getName()booleanhasDirectlyAnnotation(String qualifiedName)booleanbooleanbooleanisAssignableBy(ResolvedType type)solveMethod(String name, List<ResolvedType> parameterTypes, boolean staticOnly)solveMethodAsUsage(String name, List<ResolvedType> parameterTypes, Context invokationContext, List<ResolvedType> typeParameterValues)Methods inherited from class com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration
getAllMethods, isFunctionalInterfaceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, asPattern, hasName, isEnumConstant, isField, isMethod, isParameter, isPattern, isVariableMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedEnumDeclaration
asEnum, getEnumConstant, hasEnumConstant, isEnumMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
asReferenceType, canBeAssignedTo, findTypeParameter, getAllAncestors, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getAncestors, getDeclaredFields, getVisibleField, getVisibleFields, hasAnnotation, hasVisibleField, isFunctionalInterface, isJavaLangEnum, isJavaLangObjectMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
asAnnotation, asClass, asInterface, asType, asTypeParameter, getId, getInternalType, hasInternalType, isAnnotation, isAnonymousClass, isClass, isInterface, isType, isTypeParameterMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
isGeneric
-
Constructor Details
-
ReflectionEnumDeclaration
-
-
Method Details
-
accessSpecifier
- Specified by:
accessSpecifierin interfaceHasAccessSpecifier
-
containerType
- Specified by:
containerTypein interfaceResolvedTypeDeclaration
-
getPackageName
- Specified by:
getPackageNamein interfaceResolvedTypeDeclaration
-
getClassName
- Specified by:
getClassNamein interfaceResolvedTypeDeclaration
-
getQualifiedName
- Specified by:
getQualifiedNamein interfaceResolvedTypeDeclaration
-
getAncestors
- Specified by:
getAncestorsin interfaceResolvedReferenceTypeDeclaration
-
getField
- Specified by:
getFieldin interfaceResolvedReferenceTypeDeclaration
-
hasField
- Specified by:
hasFieldin interfaceResolvedReferenceTypeDeclaration
-
getAllFields
- Specified by:
getAllFieldsin interfaceResolvedReferenceTypeDeclaration
-
getDeclaredMethods
- Specified by:
getDeclaredMethodsin interfaceResolvedReferenceTypeDeclaration
-
isAssignableBy
- Specified by:
isAssignableByin interfaceResolvedReferenceTypeDeclaration
-
isAssignableBy
- Specified by:
isAssignableByin interfaceResolvedReferenceTypeDeclaration
-
hasDirectlyAnnotation
- Specified by:
hasDirectlyAnnotationin interfaceResolvedReferenceTypeDeclaration
-
getName
- Specified by:
getNamein interfaceResolvedDeclaration
-
getTypeParameters
- Specified by:
getTypeParametersin interfaceResolvedTypeParametrizable
-
solveMethod
public SymbolReference<ResolvedMethodDeclaration> solveMethod(String name, List<ResolvedType> parameterTypes, boolean staticOnly)- Specified by:
solveMethodin interfaceMethodResolutionCapability
-
solveMethodAsUsage
public Optional<MethodUsage> solveMethodAsUsage(String name, List<ResolvedType> parameterTypes, Context invokationContext, List<ResolvedType> typeParameterValues)- Specified by:
solveMethodAsUsagein interfaceMethodUsageResolutionCapability
-
getEnumConstants
- Specified by:
getEnumConstantsin interfaceResolvedEnumDeclaration
-
internalTypes
- Specified by:
internalTypesin interfaceResolvedTypeDeclaration
-
getConstructors
- Specified by:
getConstructorsin interfaceResolvedReferenceTypeDeclaration
-