public class ReflectionClassDeclaration extends AbstractClassDeclaration
Constructor and Description |
---|
ReflectionClassDeclaration(Class<?> clazz,
TypeSolver typeSolver) |
asClass, getAllInterfaces, getAllSuperClasses, hasName
getAllMethods, isFunctionalInterface
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asReferenceType, findTypeParameter, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getDeclaredFields, getVisibleField, getVisibleFields, hasAnnotation, hasVisibleField, isFunctionalInterface
asEnum, asInterface, asType, asTypeParameter, containerType, getId, isEnum
asField, asMethod, asParameter, isMethod
public ReflectionClassDeclaration(Class<?> clazz, TypeSolver typeSolver)
public Set<MethodDeclaration> getDeclaredMethods()
public List<ReferenceType> getAncestors()
public String getQualifiedName()
@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(ReferenceTypeDeclaration 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 boolean hasDirectlyAnnotation(String canonicalName)
public boolean hasField(String name)
public boolean isAssignableBy(ReferenceTypeDeclaration 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()
public Set<ReferenceTypeDeclaration> internalTypes()
protected ReferenceType object()
object
in class AbstractClassDeclaration
Copyright © 2016. All rights reserved.