public class JavassistClassDeclaration extends AbstractClassDeclaration implements MethodUsageResolutionCapability
Constructor and Description |
---|
JavassistClassDeclaration(javassist.CtClass ctClass,
TypeSolver typeSolver) |
Modifier and Type | Method and Description |
---|---|
com.github.javaparser.ast.AccessSpecifier |
accessSpecifier() |
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() |
Set<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> |
getDeclaredMethods() |
List<com.github.javaparser.resolution.types.ResolvedReferenceType> |
getInterfaces() |
com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration |
getInternalType(String name) |
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) |
boolean |
hasDirectlyAnnotation(String canonicalName) |
int |
hashCode() |
boolean |
hasInternalType(String name) |
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 |
isClass() |
boolean |
isField() |
boolean |
isInterface() |
boolean |
isParameter() |
boolean |
isType() |
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> argumentsTypes,
boolean staticOnly)
Deprecated.
|
Optional<com.github.javaparser.resolution.MethodUsage> |
solveMethodAsUsage(String name,
List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
Context invokationContext,
List<com.github.javaparser.resolution.types.ResolvedType> typeParameterValues)
Deprecated.
|
SymbolReference<? extends com.github.javaparser.resolution.declarations.ResolvedValueDeclaration> |
solveSymbol(String name,
TypeSolver typeSolver)
Deprecated.
|
Optional<com.github.javaparser.ast.Node> |
toAst() |
String |
toString() |
asClass, getAllInterfaces, getAllSuperClasses, hasName
getAllMethods, isFunctionalInterface
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asReferenceType, canBeAssignedTo, findTypeParameter, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getAncestors, getDeclaredFields, getField, getVisibleField, getVisibleFields, hasAnnotation, hasField, hasVisibleField, isFunctionalInterface
asEnum, asInterface, asType, asTypeParameter, getId, isAnonymousClass, isEnum
public JavassistClassDeclaration(javassist.CtClass ctClass, TypeSolver typeSolver)
protected com.github.javaparser.resolution.types.ResolvedReferenceType object()
object
in class AbstractClassDeclaration
public boolean hasDirectlyAnnotation(String canonicalName)
hasDirectlyAnnotation
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 boolean isAssignableBy(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other)
isAssignableBy
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
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
@Deprecated public Optional<com.github.javaparser.resolution.MethodUsage> solveMethodAsUsage(String name, List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes, Context invokationContext, List<com.github.javaparser.resolution.types.ResolvedType> typeParameterValues)
solveMethodAsUsage
in interface MethodUsageResolutionCapability
@Deprecated public SymbolReference<? extends com.github.javaparser.resolution.declarations.ResolvedValueDeclaration> solveSymbol(String name, TypeSolver typeSolver)
public List<com.github.javaparser.resolution.types.ResolvedReferenceType> getAncestors(boolean acceptIncompleteList)
getAncestors
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
@Deprecated 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 com.github.javaparser.resolution.types.ResolvedType getUsage(com.github.javaparser.ast.Node node)
public boolean isAssignableBy(com.github.javaparser.resolution.types.ResolvedType type)
isAssignableBy
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public boolean isTypeParameter()
isTypeParameter
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public List<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration> getAllFields()
getAllFields
in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
public String getName()
getName
in interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
public boolean isField()
isField
in interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
public boolean isParameter()
isParameter
in interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
public boolean isType()
isType
in interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
isType
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public boolean isClass()
isClass
in interface com.github.javaparser.resolution.declarations.ResolvedClassDeclaration
isClass
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
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 boolean isInterface()
isInterface
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> getTypeParameters()
getTypeParameters
in interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
public com.github.javaparser.ast.AccessSpecifier accessSpecifier()
accessSpecifier
in interface com.github.javaparser.resolution.declarations.HasAccessSpecifier
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 Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> containerType()
containerType
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public Set<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> internalTypes()
internalTypes
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration getInternalType(String name)
getInternalType
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public boolean hasInternalType(String name)
hasInternalType
in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
public Optional<com.github.javaparser.ast.Node> toAst()
toAst
in interface com.github.javaparser.resolution.declarations.AssociableToAST<com.github.javaparser.ast.Node>
Copyright © 2007–2019. All rights reserved.