public class JavaParserClassDeclaration
extends com.github.javaparser.symbolsolver.logic.AbstractClassDeclaration
Constructor and Description |
---|
JavaParserClassDeclaration(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration wrappedNode,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver) |
Modifier and Type | Method and Description |
---|---|
com.github.javaparser.symbolsolver.model.declarations.AccessLevel |
accessLevel() |
boolean |
canBeAssignedTo(com.github.javaparser.symbolsolver.model.declarations.ReferenceTypeDeclaration other) |
boolean |
equals(java.lang.Object o) |
java.util.List<com.github.javaparser.symbolsolver.model.declarations.FieldDeclaration> |
getAllFields() |
java.util.List<com.github.javaparser.symbolsolver.model.typesystem.ReferenceType> |
getAncestors() |
java.lang.String |
getClassName() |
java.util.List<com.github.javaparser.symbolsolver.model.declarations.ConstructorDeclaration> |
getConstructors() |
Context |
getContext()
Deprecated.
|
java.util.Set<com.github.javaparser.symbolsolver.model.declarations.MethodDeclaration> |
getDeclaredMethods() |
java.util.List<com.github.javaparser.symbolsolver.model.typesystem.ReferenceType> |
getInterfaces() |
java.lang.String |
getName() |
java.lang.String |
getPackageName() |
java.lang.String |
getQualifiedName() |
com.github.javaparser.symbolsolver.model.typesystem.ReferenceType |
getSuperClass() |
java.util.List<com.github.javaparser.symbolsolver.model.declarations.TypeParameterDeclaration> |
getTypeParameters() |
com.github.javaparser.symbolsolver.model.typesystem.Type |
getUsage(com.github.javaparser.ast.Node node) |
com.github.javaparser.ast.body.ClassOrInterfaceDeclaration |
getWrappedNode()
Returns the JavaParser node associated with this JavaParserClassDeclaration.
|
boolean |
hasDirectlyAnnotation(java.lang.String canonicalName) |
int |
hashCode() |
java.util.Set<com.github.javaparser.symbolsolver.model.declarations.ReferenceTypeDeclaration> |
internalTypes() |
boolean |
isAssignableBy(com.github.javaparser.symbolsolver.model.declarations.ReferenceTypeDeclaration other) |
boolean |
isAssignableBy(com.github.javaparser.symbolsolver.model.typesystem.Type type) |
boolean |
isInterface() |
boolean |
isTypeParameter() |
protected com.github.javaparser.symbolsolver.model.typesystem.ReferenceType |
object() |
com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.symbolsolver.model.declarations.MethodDeclaration> |
solveMethod(java.lang.String name,
java.util.List<com.github.javaparser.symbolsolver.model.typesystem.Type> parameterTypes) |
com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.symbolsolver.model.declarations.TypeDeclaration> |
solveType(java.lang.String name,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
Deprecated.
|
java.lang.String |
toString() |
asClass, getAllInterfaces, getAllSuperClasses, hasName
getAllMethods, isFunctionalInterface
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isClass
asReferenceType, findTypeParameter, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getDeclaredFields, getField, getVisibleField, getVisibleFields, hasAnnotation, hasField, hasVisibleField, isFunctionalInterface
public JavaParserClassDeclaration(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration wrappedNode, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.List<com.github.javaparser.symbolsolver.model.declarations.FieldDeclaration> getAllFields()
public com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.symbolsolver.model.declarations.MethodDeclaration> solveMethod(java.lang.String name, java.util.List<com.github.javaparser.symbolsolver.model.typesystem.Type> parameterTypes)
@Deprecated public Context getContext()
public com.github.javaparser.symbolsolver.model.typesystem.Type getUsage(com.github.javaparser.ast.Node node)
public java.lang.String getName()
public com.github.javaparser.symbolsolver.model.typesystem.ReferenceType getSuperClass()
public java.util.List<com.github.javaparser.symbolsolver.model.typesystem.ReferenceType> getInterfaces()
public java.util.List<com.github.javaparser.symbolsolver.model.declarations.ConstructorDeclaration> getConstructors()
public boolean hasDirectlyAnnotation(java.lang.String canonicalName)
public boolean isInterface()
public java.lang.String getPackageName()
public java.lang.String getClassName()
public java.lang.String getQualifiedName()
public boolean isAssignableBy(com.github.javaparser.symbolsolver.model.declarations.ReferenceTypeDeclaration other)
public boolean isAssignableBy(com.github.javaparser.symbolsolver.model.typesystem.Type type)
public boolean canBeAssignedTo(com.github.javaparser.symbolsolver.model.declarations.ReferenceTypeDeclaration other)
public boolean isTypeParameter()
@Deprecated public com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.symbolsolver.model.declarations.TypeDeclaration> solveType(java.lang.String name, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
public java.util.List<com.github.javaparser.symbolsolver.model.typesystem.ReferenceType> getAncestors()
public java.util.Set<com.github.javaparser.symbolsolver.model.declarations.MethodDeclaration> getDeclaredMethods()
public java.util.List<com.github.javaparser.symbolsolver.model.declarations.TypeParameterDeclaration> getTypeParameters()
public com.github.javaparser.ast.body.ClassOrInterfaceDeclaration getWrappedNode()
public com.github.javaparser.symbolsolver.model.declarations.AccessLevel accessLevel()
protected com.github.javaparser.symbolsolver.model.typesystem.ReferenceType object()
object
in class com.github.javaparser.symbolsolver.logic.AbstractClassDeclaration
public java.util.Set<com.github.javaparser.symbolsolver.model.declarations.ReferenceTypeDeclaration> internalTypes()