public class ReflectionClassDeclaration extends AbstractClassDeclaration
| Constructor and Description |
|---|
ReflectionClassDeclaration(Class<?> clazz,
TypeSolver typeSolver) |
getAllInterfaces, getAllSuperClasses, hasNamegetAllMethodsclone, finalize, getClass, notify, notifyAll, wait, wait, waitasInterface, asType, getAllMethods, isEnumasField, asMethod, asParameter, isMethodpublic ReflectionClassDeclaration(Class<?> clazz, TypeSolver typeSolver)
protected ReferenceTypeUsage object()
object in class AbstractClassDeclarationpublic Set<MethodDeclaration> getDeclaredMethods()
protected TypeSolver typeSolver()
typeSolver in class AbstractClassDeclarationpublic List<ReferenceTypeUsage> getAllAncestors()
public String getQualifiedName()
public Context getContext()
public SymbolReference<MethodDeclaration> solveMethod(String name, List<TypeUsage> parameterTypes)
public TypeUsage getUsage(com.github.javaparser.ast.Node node)
public Optional<MethodUsage> solveMethodAsUsage(String name, List<TypeUsage> parameterTypes, TypeSolver typeSolver, Context invokationContext, List<TypeUsage> typeParameterValues)
public boolean canBeAssignedTo(TypeDeclaration other)
public boolean isAssignableBy(TypeUsage typeUsage)
public boolean isTypeVariable()
public FieldDeclaration getField(String name)
public List<FieldDeclaration> getAllFields()
public SymbolReference<? extends ValueDeclaration> solveSymbol(String name, TypeSolver typeSolver)
public SymbolReference<TypeDeclaration> solveType(String substring, TypeSolver typeSolver)
public ClassDeclaration asClass()
public boolean hasField(String name)
public boolean isAssignableBy(TypeDeclaration other)
public String getName()
public boolean isField()
public boolean isParameter()
public boolean isVariable()
public boolean isType()
public boolean isClass()
public ReferenceTypeUsageImpl getSuperClass()
public List<InterfaceDeclaration> getInterfaces()
public boolean isInterface()
public List<TypeParameter> getTypeParameters()
Copyright © 2016. All rights reserved.