public class ReflectionClassDeclaration extends AbstractClassDeclaration
Constructor and Description |
---|
ReflectionClassDeclaration(Class<?> clazz,
TypeSolver typeSolver) |
getAllInterfaces, getAllSuperClasses, hasName
getAllMethods
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asEnum, asInterface, asType, asTypeParameter, containerType, findTypeParameter, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getDeclaredFields, getId, hasAnnotation, internalTypes, isEnum
asField, asMethod, asParameter, isMethod
public ReflectionClassDeclaration(Class<?> clazz, TypeSolver typeSolver)
protected ReferenceType object()
object
in class AbstractClassDeclaration
public Set<MethodDeclaration> getDeclaredMethods()
protected TypeSolver typeSolver()
typeSolver
in class AbstractClassDeclaration
public 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.