public class ReflectionEnumDeclaration extends AbstractTypeDeclaration implements com.github.javaparser.resolution.declarations.ResolvedEnumDeclaration, MethodResolutionCapability, MethodUsageResolutionCapability
Constructor and Description |
---|
ReflectionEnumDeclaration(Class<?> clazz,
TypeSolver typeSolver) |
Modifier and Type | Method and Description |
---|---|
com.github.javaparser.ast.Modifier.Keyword |
accessSpecifier() |
Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> |
containerType() |
List<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration> |
getAllFields() |
List<com.github.javaparser.resolution.types.ResolvedReferenceType> |
getAncestors(boolean acceptIncompleteList) |
String |
getClassName() |
List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> |
getConstructors() |
Set<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> |
getDeclaredMethods() |
List<com.github.javaparser.resolution.declarations.ResolvedEnumConstantDeclaration> |
getEnumConstants() |
com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration |
getField(String name) |
String |
getName() |
String |
getPackageName() |
String |
getQualifiedName() |
List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> |
getTypeParameters() |
boolean |
hasDirectlyAnnotation(String qualifiedName) |
boolean |
hasField(String name) |
Set<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> |
internalTypes() |
boolean |
isAssignableBy(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other) |
boolean |
isAssignableBy(com.github.javaparser.resolution.types.ResolvedType type) |
SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> |
solveMethod(String name,
List<com.github.javaparser.resolution.types.ResolvedType> parameterTypes,
boolean staticOnly) |
Optional<com.github.javaparser.resolution.MethodUsage> |
solveMethodAsUsage(String name,
List<com.github.javaparser.resolution.types.ResolvedType> parameterTypes,
Context invokationContext,
List<com.github.javaparser.resolution.types.ResolvedType> typeParameterValues) |
getAllMethods, isFunctionalInterface
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asEnum, getEnumConstant, hasEnumConstant, isEnum
asReferenceType, canBeAssignedTo, findTypeParameter, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getAncestors, getDeclaredFields, getVisibleField, getVisibleFields, hasAnnotation, hasVisibleField, isFunctionalInterface
asClass, asInterface, asType, asTypeParameter, getId, getInternalType, hasInternalType, isAnonymousClass, isClass, isInterface, isType, isTypeParameter
public ReflectionEnumDeclaration(Class<?> clazz, TypeSolver typeSolver)
public com.github.javaparser.ast.Modifier.Keyword accessSpecifier()
accessSpecifier
in interface com.github.javaparser.resolution.declarations.HasAccessSpecifier
public Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> containerType()
containerType
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public String getPackageName()
getPackageName
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public String getClassName()
getClassName
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public String getQualifiedName()
getQualifiedName
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public List<com.github.javaparser.resolution.types.ResolvedReferenceType> getAncestors(boolean acceptIncompleteList)
getAncestors
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration getField(String name)
getField
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public boolean hasField(String name)
hasField
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public List<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration> getAllFields()
getAllFields
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public Set<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> getDeclaredMethods()
getDeclaredMethods
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public boolean isAssignableBy(com.github.javaparser.resolution.types.ResolvedType type)
isAssignableBy
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public boolean isAssignableBy(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other)
isAssignableBy
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public boolean hasDirectlyAnnotation(String qualifiedName)
hasDirectlyAnnotation
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public String getName()
getName
in interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
public List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> getTypeParameters()
getTypeParameters
in interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
public SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> solveMethod(String name, List<com.github.javaparser.resolution.types.ResolvedType> parameterTypes, boolean staticOnly)
solveMethod
in interface MethodResolutionCapability
public Optional<com.github.javaparser.resolution.MethodUsage> solveMethodAsUsage(String name, List<com.github.javaparser.resolution.types.ResolvedType> parameterTypes, Context invokationContext, List<com.github.javaparser.resolution.types.ResolvedType> typeParameterValues)
solveMethodAsUsage
in interface MethodUsageResolutionCapability
public List<com.github.javaparser.resolution.declarations.ResolvedEnumConstantDeclaration> getEnumConstants()
getEnumConstants
in interface com.github.javaparser.resolution.declarations.ResolvedEnumDeclaration
public Set<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> internalTypes()
internalTypes
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> getConstructors()
getConstructors
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
Copyright © 2007–2019. All rights reserved.