public class JavaParserClassDeclaration extends AbstractClassDeclaration implements MethodUsageResolutionCapability
Constructor and Description |
---|
JavaParserClassDeclaration(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration wrappedNode,
TypeSolver typeSolver) |
Modifier and Type | Method and Description |
---|---|
com.github.javaparser.ast.AccessSpecifier |
accessSpecifier() |
boolean |
canBeAssignedTo(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other) |
Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> |
containerType() |
boolean |
equals(Object o) |
List<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration> |
getAllFields() |
List<com.github.javaparser.resolution.types.ResolvedReferenceType> |
getAncestors(boolean acceptIncompleteList) |
String |
getClassName() |
List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> |
getConstructors() |
Context |
getContext()
Deprecated.
|
Set<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> |
getDeclaredMethods() |
List<com.github.javaparser.resolution.types.ResolvedReferenceType> |
getInterfaces() |
String |
getName() |
String |
getPackageName() |
String |
getQualifiedName() |
com.github.javaparser.resolution.types.ResolvedReferenceType |
getSuperClass() |
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(String canonicalName) |
int |
hashCode() |
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() |
SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> |
solveMethod(String name,
List<com.github.javaparser.resolution.types.ResolvedType> parameterTypes) |
SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> |
solveMethod(String name,
List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
boolean staticOnly) |
Optional<com.github.javaparser.resolution.MethodUsage> |
solveMethodAsUsage(String name,
List<com.github.javaparser.resolution.types.ResolvedType> argumentTypes,
Context invocationContext,
List<com.github.javaparser.resolution.types.ResolvedType> typeParameters) |
SymbolReference<com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration> |
solveType(String name)
Deprecated.
|
Optional<com.github.javaparser.ast.Node> |
toAst() |
String |
toString() |
asClass, getAllInterfaces, getAllSuperClasses, hasName
getAllMethods, isFunctionalInterface
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isClass
asReferenceType, findTypeParameter, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getAncestors, 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, TypeSolver typeSolver)
public List<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration> getAllFields()
getAllFields
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> solveMethod(String name, List<com.github.javaparser.resolution.types.ResolvedType> parameterTypes)
public Optional<com.github.javaparser.resolution.MethodUsage> solveMethodAsUsage(String name, List<com.github.javaparser.resolution.types.ResolvedType> argumentTypes, Context invocationContext, List<com.github.javaparser.resolution.types.ResolvedType> typeParameters)
solveMethodAsUsage
in interface MethodUsageResolutionCapability
@Deprecated public Context getContext()
public com.github.javaparser.resolution.types.ResolvedType getUsage(com.github.javaparser.ast.Node node)
public String getName()
getName
in interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
public com.github.javaparser.resolution.types.ResolvedReferenceType getSuperClass()
getSuperClass
in interface com.github.javaparser.resolution.declarations.ResolvedClassDeclaration
public List<com.github.javaparser.resolution.types.ResolvedReferenceType> getInterfaces()
getInterfaces
in interface com.github.javaparser.resolution.declarations.ResolvedClassDeclaration
public List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> getConstructors()
getConstructors
in interface com.github.javaparser.resolution.declarations.ResolvedClassDeclaration
getConstructors
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public boolean hasDirectlyAnnotation(String canonicalName)
hasDirectlyAnnotation
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public boolean isInterface()
isInterface
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public String getPackageName()
getPackageName
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public String getClassName()
getClassName
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public String getQualifiedName()
getQualifiedName
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public boolean isAssignableBy(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other)
isAssignableBy
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public boolean isAssignableBy(com.github.javaparser.resolution.types.ResolvedType type)
isAssignableBy
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public boolean canBeAssignedTo(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other)
canBeAssignedTo
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public boolean isTypeParameter()
isTypeParameter
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
@Deprecated public SymbolReference<com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration> solveType(String name)
public SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> solveMethod(String name, List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes, boolean staticOnly)
solveMethod
in interface MethodResolutionCapability
public List<com.github.javaparser.resolution.types.ResolvedReferenceType> getAncestors(boolean acceptIncompleteList)
getAncestors
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public Set<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> getDeclaredMethods()
getDeclaredMethods
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> getTypeParameters()
getTypeParameters
in interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
public com.github.javaparser.ast.body.ClassOrInterfaceDeclaration getWrappedNode()
public com.github.javaparser.ast.AccessSpecifier accessSpecifier()
accessSpecifier
in interface com.github.javaparser.resolution.declarations.HasAccessSpecifier
public Optional<com.github.javaparser.ast.Node> toAst()
toAst
in interface com.github.javaparser.resolution.declarations.AssociableToAST<com.github.javaparser.ast.Node>
protected com.github.javaparser.resolution.types.ResolvedReferenceType object()
object
in class AbstractClassDeclaration
public Set<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> internalTypes()
internalTypes
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> containerType()
containerType
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
Copyright © 2007–2019. All rights reserved.