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, isFunctionalInterfaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasEnum, getEnumConstant, hasEnumConstant, isEnumasReferenceType, canBeAssignedTo, findTypeParameter, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getAncestors, getDeclaredFields, getVisibleField, getVisibleFields, hasAnnotation, hasVisibleField, isFunctionalInterfaceasClass, asInterface, asType, asTypeParameter, getId, getInternalType, hasInternalType, isAnonymousClass, isClass, isInterface, isType, isTypeParameterpublic ReflectionEnumDeclaration(Class<?> clazz, TypeSolver typeSolver)
public com.github.javaparser.ast.Modifier.Keyword accessSpecifier()
accessSpecifier in interface com.github.javaparser.resolution.declarations.HasAccessSpecifierpublic Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> containerType()
containerType in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclarationpublic String getPackageName()
getPackageName in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclarationpublic String getClassName()
getClassName in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclarationpublic String getQualifiedName()
getQualifiedName in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclarationpublic List<com.github.javaparser.resolution.types.ResolvedReferenceType> getAncestors(boolean acceptIncompleteList)
getAncestors in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration getField(String name)
getField in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic boolean hasField(String name)
hasField in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic List<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration> getAllFields()
getAllFields in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic Set<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> getDeclaredMethods()
getDeclaredMethods in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic boolean isAssignableBy(com.github.javaparser.resolution.types.ResolvedType type)
isAssignableBy in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic boolean isAssignableBy(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other)
isAssignableBy in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic boolean hasDirectlyAnnotation(String qualifiedName)
hasDirectlyAnnotation in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic String getName()
getName in interface com.github.javaparser.resolution.declarations.ResolvedDeclarationpublic List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> getTypeParameters()
getTypeParameters in interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizablepublic SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> solveMethod(String name, List<com.github.javaparser.resolution.types.ResolvedType> parameterTypes, boolean staticOnly)
solveMethod in interface MethodResolutionCapabilitypublic 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 MethodUsageResolutionCapabilitypublic List<com.github.javaparser.resolution.declarations.ResolvedEnumConstantDeclaration> getEnumConstants()
getEnumConstants in interface com.github.javaparser.resolution.declarations.ResolvedEnumDeclarationpublic Set<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> internalTypes()
internalTypes in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclarationpublic List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> getConstructors()
getConstructors in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationCopyright © 2007–2019. All rights reserved.