public class JavaParserClassDeclaration extends AbstractClassDeclaration
Constructor and Description |
---|
JavaParserClassDeclaration(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration wrappedNode,
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 JavaParserClassDeclaration(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration wrappedNode, TypeSolver typeSolver)
public SymbolReference<MethodDeclaration> solveMethod(String name, List<Type> parameterTypes)
public Context getContext()
public Type getUsage(com.github.javaparser.ast.Node node)
public String getName()
public boolean isField()
public boolean isParameter()
public boolean isType()
public boolean isClass()
public ReferenceTypeImpl getSuperClass()
public List<ReferenceType> getInterfaces()
public List<ConstructorDeclaration> getConstructors()
public ClassDeclaration asClass()
public boolean hasDirectlyAnnotation(String canonicalName)
public boolean isInterface()
public String getQualifiedName()
public boolean isAssignableBy(TypeDeclaration other)
public boolean isAssignableBy(Type type)
public boolean canBeAssignedTo(TypeDeclaration other)
public boolean isTypeParameter()
public FieldDeclaration getField(String name)
public List<FieldDeclaration> getAllFields()
public boolean hasField(String name)
@Deprecated public SymbolReference<TypeDeclaration> solveType(String name, TypeSolver typeSolver)
public List<ReferenceType> getAncestors()
public Set<MethodDeclaration> getDeclaredMethods()
public List<TypeParameterDeclaration> getTypeParameters()
protected ReferenceType object()
object
in class AbstractClassDeclaration
protected TypeSolver typeSolver()
typeSolver
in class AbstractClassDeclaration
public com.github.javaparser.ast.body.ClassOrInterfaceDeclaration getWrappedNode()
public AccessLevel accessLevel()
Copyright © 2016. All rights reserved.