public class ReflectionClassDeclaration extends AbstractClassDeclaration implements MethodUsageResolutionCapability
| Constructor and Description |
|---|
ReflectionClassDeclaration(Class<?> clazz,
TypeSolver typeSolver) |
| Modifier and Type | Method and Description |
|---|---|
com.github.javaparser.ast.AccessSpecifier |
accessSpecifier() |
boolean |
canBeAssignedTo(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other) |
Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> |
containerType() |
boolean |
equals(Object o) |
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() |
com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration |
getField(String name) |
List<com.github.javaparser.resolution.types.ResolvedReferenceType> |
getInterfaces() |
String |
getName() |
String |
getPackageName() |
String |
getQualifiedName() |
ReferenceTypeImpl |
getSuperClass() |
List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> |
getTypeParameters() |
com.github.javaparser.resolution.types.ResolvedType |
getUsage(com.github.javaparser.ast.Node node) |
boolean |
hasDirectlyAnnotation(String canonicalName) |
boolean |
hasField(String name) |
int |
hashCode() |
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) |
boolean |
isClass() |
boolean |
isField() |
boolean |
isInterface() |
boolean |
isParameter() |
boolean |
isType() |
boolean |
isTypeParameter() |
protected com.github.javaparser.resolution.types.ResolvedReferenceType |
object() |
SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> |
solveMethod(String name,
List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
boolean staticOnly)
Deprecated.
|
Optional<com.github.javaparser.resolution.MethodUsage> |
solveMethodAsUsage(String name,
List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
Context invokationContext,
List<com.github.javaparser.resolution.types.ResolvedType> typeParameterValues) |
SymbolReference<? extends com.github.javaparser.resolution.declarations.ResolvedValueDeclaration> |
solveSymbol(String name,
TypeSolver typeSolver)
Deprecated.
|
Optional<com.github.javaparser.ast.Node> |
toAst() |
String |
toString() |
asClass, getAllInterfaces, getAllSuperClasses, hasNamegetAllMethods, isFunctionalInterfaceclone, finalize, getClass, notify, notifyAll, wait, wait, waitasReferenceType, findTypeParameter, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getAncestors, getDeclaredFields, getVisibleField, getVisibleFields, hasAnnotation, hasVisibleField, isFunctionalInterfaceasEnum, asInterface, asType, asTypeParameter, getId, getInternalType, hasInternalType, isAnonymousClass, isEnumpublic ReflectionClassDeclaration(Class<?> clazz, TypeSolver typeSolver)
public Set<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> getDeclaredMethods()
getDeclaredMethods in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic List<com.github.javaparser.resolution.types.ResolvedReferenceType> getAncestors(boolean acceptIncompleteList)
getAncestors in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic 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.ResolvedTypeDeclaration@Deprecated public SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> solveMethod(String name, List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes, boolean staticOnly)
solveMethod in interface MethodResolutionCapabilitypublic com.github.javaparser.resolution.types.ResolvedType getUsage(com.github.javaparser.ast.Node node)
public Optional<com.github.javaparser.resolution.MethodUsage> solveMethodAsUsage(String name, List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes, Context invokationContext, List<com.github.javaparser.resolution.types.ResolvedType> typeParameterValues)
solveMethodAsUsage in interface MethodUsageResolutionCapabilitypublic boolean canBeAssignedTo(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other)
canBeAssignedTo 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 isTypeParameter()
isTypeParameter in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclarationpublic com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration getField(String name)
getField in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic List<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration> getAllFields()
getAllFields in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration@Deprecated public SymbolReference<? extends com.github.javaparser.resolution.declarations.ResolvedValueDeclaration> solveSymbol(String name, TypeSolver typeSolver)
public boolean hasDirectlyAnnotation(String canonicalName)
hasDirectlyAnnotation in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic boolean hasField(String name)
hasField 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 String getName()
getName in interface com.github.javaparser.resolution.declarations.ResolvedDeclarationpublic boolean isField()
isField in interface com.github.javaparser.resolution.declarations.ResolvedDeclarationpublic boolean isParameter()
isParameter in interface com.github.javaparser.resolution.declarations.ResolvedDeclarationpublic boolean isType()
isType in interface com.github.javaparser.resolution.declarations.ResolvedDeclarationisType in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclarationpublic boolean isClass()
isClass in interface com.github.javaparser.resolution.declarations.ResolvedClassDeclarationisClass in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclarationpublic ReferenceTypeImpl getSuperClass()
getSuperClass in interface com.github.javaparser.resolution.declarations.ResolvedClassDeclarationpublic List<com.github.javaparser.resolution.types.ResolvedReferenceType> getInterfaces()
getInterfaces in interface com.github.javaparser.resolution.declarations.ResolvedClassDeclarationpublic boolean isInterface()
isInterface in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclarationpublic List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> getTypeParameters()
getTypeParameters in interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizablepublic com.github.javaparser.ast.AccessSpecifier accessSpecifier()
accessSpecifier in interface com.github.javaparser.resolution.declarations.HasAccessSpecifierpublic List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> getConstructors()
getConstructors in interface com.github.javaparser.resolution.declarations.ResolvedClassDeclarationgetConstructors in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> containerType()
containerType in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclarationpublic Set<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> internalTypes()
internalTypes in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclarationpublic Optional<com.github.javaparser.ast.Node> toAst()
toAst in interface com.github.javaparser.resolution.declarations.AssociableToAST<com.github.javaparser.ast.Node>protected com.github.javaparser.resolution.types.ResolvedReferenceType object()
object in class AbstractClassDeclarationCopyright © 2007–2020. All rights reserved.