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.Modifier.Keyword |
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, hasName
getAllMethods, isFunctionalInterface
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asReferenceType, findTypeParameter, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getAncestors, getDeclaredFields, getVisibleField, getVisibleFields, hasAnnotation, hasVisibleField, isFunctionalInterface
asEnum, asInterface, asType, asTypeParameter, getId, getInternalType, hasInternalType, isAnonymousClass, isEnum
public ReflectionClassDeclaration(Class<?> clazz, TypeSolver typeSolver)
public Set<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> getDeclaredMethods()
getDeclaredMethods
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public List<com.github.javaparser.resolution.types.ResolvedReferenceType> getAncestors(boolean acceptIncompleteList)
getAncestors
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
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
@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 MethodResolutionCapability
public 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 MethodUsageResolutionCapability
public boolean canBeAssignedTo(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other)
canBeAssignedTo
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 isTypeParameter()
isTypeParameter
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration getField(String name)
getField
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
@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.ResolvedReferenceTypeDeclaration
public boolean hasField(String name)
hasField
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 String getName()
getName
in interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
public boolean isField()
isField
in interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
public boolean isParameter()
isParameter
in interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
public boolean isType()
isType
in interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
isType
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public boolean isClass()
isClass
in interface com.github.javaparser.resolution.declarations.ResolvedClassDeclaration
isClass
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public ReferenceTypeImpl getSuperClass()
getSuperClass
in interface com.github.javaparser.resolution.declarations.ResolvedClassDeclaration
public List<com.github.javaparser.resolution.types.ResolvedReferenceType> getInterfaces()
getInterfaces
in interface com.github.javaparser.resolution.declarations.ResolvedClassDeclaration
public boolean isInterface()
isInterface
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> getTypeParameters()
getTypeParameters
in interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
public com.github.javaparser.ast.Modifier.Keyword accessSpecifier()
accessSpecifier
in interface com.github.javaparser.resolution.declarations.HasAccessSpecifier
public List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> getConstructors()
getConstructors
in interface com.github.javaparser.resolution.declarations.ResolvedClassDeclaration
getConstructors
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> containerType()
containerType
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public Set<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> internalTypes()
internalTypes
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public 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 AbstractClassDeclaration
Copyright © 2007–2019. All rights reserved.