public class ReflectionClassDeclaration extends AbstractClassDeclaration
| Constructor and Description |
|---|
ReflectionClassDeclaration(Class<?> clazz,
TypeSolver typeSolver) |
getAllInterfaces, getAllSuperClasses, hasNamegetAllMethodsclone, finalize, getClass, notify, notifyAll, wait, wait, waitasEnum, asInterface, asType, asTypeParameter, containerType, findTypeParameter, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getDeclaredFields, getId, hasAnnotation, internalTypes, isEnumasField, asMethod, asParameter, isMethodpublic ReflectionClassDeclaration(Class<?> clazz, TypeSolver typeSolver)
protected ReferenceType object()
object in class AbstractClassDeclarationpublic Set<MethodDeclaration> getDeclaredMethods()
protected TypeSolver typeSolver()
typeSolver in class AbstractClassDeclarationpublic List<ReferenceType> getAncestors()
public String getQualifiedName()
public Context getContext()
@Deprecated public SymbolReference<MethodDeclaration> solveMethod(String name, List<Type> argumentsTypes)
public Type getUsage(com.github.javaparser.ast.Node node)
public Optional<MethodUsage> solveMethodAsUsage(String name, List<Type> argumentsTypes, TypeSolver typeSolver, Context invokationContext, List<Type> typeParameterValues)
public boolean canBeAssignedTo(TypeDeclaration other)
public boolean isAssignableBy(Type type)
public boolean isTypeParameter()
public FieldDeclaration getField(String name)
public List<FieldDeclaration> getAllFields()
@Deprecated public SymbolReference<? extends ValueDeclaration> solveSymbol(String name, TypeSolver typeSolver)
public ClassDeclaration asClass()
public boolean hasDirectlyAnnotation(String canonicalName)
public boolean hasField(String name)
public boolean isAssignableBy(TypeDeclaration other)
public String getName()
public boolean isField()
public boolean isParameter()
public boolean isType()
public boolean isClass()
public ReferenceTypeImpl getSuperClass()
public List<ReferenceType> getInterfaces()
public boolean isInterface()
public List<TypeParameterDeclaration> getTypeParameters()
public AccessLevel accessLevel()
public List<ConstructorDeclaration> getConstructors()
Copyright © 2016. All rights reserved.