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.ast.AccessSpecifier |
accessSpecifier() |
boolean |
canBeAssignedTo(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other) |
java.util.Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> |
containerType() |
boolean |
equals(java.lang.Object o) |
java.util.List<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration> |
getAllFields() |
java.util.List<com.github.javaparser.resolution.types.ResolvedReferenceType> |
getAncestors() |
java.lang.String |
getClassName() |
java.util.List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> |
getConstructors() |
Context |
getContext()
Deprecated.
|
java.util.Set<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> |
getDeclaredMethods() |
java.util.List<com.github.javaparser.resolution.types.ResolvedReferenceType> |
getInterfaces() |
java.lang.String |
getName() |
java.lang.String |
getPackageName() |
java.lang.String |
getQualifiedName() |
com.github.javaparser.resolution.types.ResolvedReferenceType |
getSuperClass() |
java.util.List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> |
getTypeParameters() |
com.github.javaparser.resolution.types.ResolvedType |
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.resolution.declarations.ResolvedReferenceTypeDeclaration> |
internalTypes() |
boolean |
isAssignableBy(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other) |
boolean |
isAssignableBy(com.github.javaparser.resolution.types.ResolvedType type) |
boolean |
isInterface() |
boolean |
isTypeParameter() |
protected com.github.javaparser.resolution.types.ResolvedReferenceType |
object() |
com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> |
solveMethod(java.lang.String name,
java.util.List<com.github.javaparser.resolution.types.ResolvedType> parameterTypes) |
com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration> |
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
asEnum, asInterface, asType, asTypeParameter, getId, getInternalType, hasInternalType, isAnonymousClass, isEnum, isType
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.resolution.declarations.ResolvedFieldDeclaration> getAllFields()
public com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> solveMethod(java.lang.String name, java.util.List<com.github.javaparser.resolution.types.ResolvedType> parameterTypes)
@Deprecated public Context getContext()
public com.github.javaparser.resolution.types.ResolvedType getUsage(com.github.javaparser.ast.Node node)
public java.lang.String getName()
public com.github.javaparser.resolution.types.ResolvedReferenceType getSuperClass()
public java.util.List<com.github.javaparser.resolution.types.ResolvedReferenceType> getInterfaces()
public java.util.List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> 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.resolution.declarations.ResolvedReferenceTypeDeclaration other)
public boolean isAssignableBy(com.github.javaparser.resolution.types.ResolvedType type)
public boolean canBeAssignedTo(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other)
public boolean isTypeParameter()
@Deprecated public com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration> solveType(java.lang.String name, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
public java.util.List<com.github.javaparser.resolution.types.ResolvedReferenceType> getAncestors()
public java.util.Set<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> getDeclaredMethods()
public java.util.List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> getTypeParameters()
public com.github.javaparser.ast.body.ClassOrInterfaceDeclaration getWrappedNode()
public com.github.javaparser.ast.AccessSpecifier accessSpecifier()
protected com.github.javaparser.resolution.types.ResolvedReferenceType object()
object
in class com.github.javaparser.symbolsolver.logic.AbstractClassDeclaration
public java.util.Set<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> internalTypes()
public java.util.Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> containerType()