Class JavassistClassDeclaration
- java.lang.Object
-
- com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration
-
- com.github.javaparser.symbolsolver.logic.AbstractClassDeclaration
-
- com.github.javaparser.symbolsolver.javassistmodel.JavassistClassDeclaration
-
- All Implemented Interfaces:
com.github.javaparser.resolution.declarations.AssociableToAST<com.github.javaparser.ast.Node>
,com.github.javaparser.resolution.declarations.HasAccessSpecifier
,com.github.javaparser.resolution.declarations.ResolvedClassDeclaration
,com.github.javaparser.resolution.declarations.ResolvedDeclaration
,com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
,com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
,com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
,MethodUsageResolutionCapability
,com.github.javaparser.symbolsolver.logic.MethodResolutionCapability
public class JavassistClassDeclaration extends com.github.javaparser.symbolsolver.logic.AbstractClassDeclaration implements MethodUsageResolutionCapability
- Author:
- Federico Tomassetti
-
-
Constructor Summary
Constructors Constructor Description JavassistClassDeclaration(javassist.CtClass ctClass, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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()
com.github.javaparser.symbolsolver.model.resolution.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)
com.github.javaparser.symbolsolver.model.resolution.SymbolReference<? extends com.github.javaparser.resolution.declarations.ResolvedValueDeclaration>
solveSymbol(String name, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
Deprecated.Optional<com.github.javaparser.ast.Node>
toAst()
String
toString()
-
Methods inherited from class com.github.javaparser.symbolsolver.logic.AbstractClassDeclaration
asClass, getAllInterfaces, getAllSuperClasses, hasName
-
Methods inherited from class com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration
getAllMethods, isFunctionalInterface
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, isEnumConstant, isMethod, isVariable
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
asReferenceType, canBeAssignedTo, findTypeParameter, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getAncestors, getDeclaredFields, getField, getVisibleField, getVisibleFields, hasAnnotation, hasField, hasVisibleField, isFunctionalInterface
-
-
-
-
Method Detail
-
object
protected com.github.javaparser.resolution.types.ResolvedReferenceType object()
- Specified by:
object
in classcom.github.javaparser.symbolsolver.logic.AbstractClassDeclaration
-
hasDirectlyAnnotation
public boolean hasDirectlyAnnotation(String canonicalName)
- Specified by:
hasDirectlyAnnotation
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
getDeclaredMethods
public Set<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> getDeclaredMethods()
- Specified by:
getDeclaredMethods
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
isAssignableBy
public boolean isAssignableBy(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other)
- Specified by:
isAssignableBy
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
getPackageName
public String getPackageName()
- Specified by:
getPackageName
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
-
getClassName
public String getClassName()
- Specified by:
getClassName
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
-
getQualifiedName
public String getQualifiedName()
- Specified by:
getQualifiedName
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
-
solveMethodAsUsage
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)
- Specified by:
solveMethodAsUsage
in interfaceMethodUsageResolutionCapability
-
solveSymbol
@Deprecated public com.github.javaparser.symbolsolver.model.resolution.SymbolReference<? extends com.github.javaparser.resolution.declarations.ResolvedValueDeclaration> solveSymbol(String name, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
Deprecated.
-
getAncestors
public List<com.github.javaparser.resolution.types.ResolvedReferenceType> getAncestors(boolean acceptIncompleteList)
- Specified by:
getAncestors
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
solveMethod
@Deprecated public com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> solveMethod(String name, List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes, boolean staticOnly)
Deprecated.- Specified by:
solveMethod
in interfacecom.github.javaparser.symbolsolver.logic.MethodResolutionCapability
-
getUsage
public com.github.javaparser.resolution.types.ResolvedType getUsage(com.github.javaparser.ast.Node node)
-
isAssignableBy
public boolean isAssignableBy(com.github.javaparser.resolution.types.ResolvedType type)
- Specified by:
isAssignableBy
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
isTypeParameter
public boolean isTypeParameter()
- Specified by:
isTypeParameter
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
-
getAllFields
public List<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration> getAllFields()
- Specified by:
getAllFields
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
getName
public String getName()
- Specified by:
getName
in interfacecom.github.javaparser.resolution.declarations.ResolvedDeclaration
-
isField
public boolean isField()
- Specified by:
isField
in interfacecom.github.javaparser.resolution.declarations.ResolvedDeclaration
-
isParameter
public boolean isParameter()
- Specified by:
isParameter
in interfacecom.github.javaparser.resolution.declarations.ResolvedDeclaration
-
isType
public boolean isType()
- Specified by:
isType
in interfacecom.github.javaparser.resolution.declarations.ResolvedDeclaration
- Specified by:
isType
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
-
isClass
public boolean isClass()
- Specified by:
isClass
in interfacecom.github.javaparser.resolution.declarations.ResolvedClassDeclaration
- Specified by:
isClass
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
-
getSuperClass
public com.github.javaparser.resolution.types.ResolvedReferenceType getSuperClass()
- Specified by:
getSuperClass
in interfacecom.github.javaparser.resolution.declarations.ResolvedClassDeclaration
-
getInterfaces
public List<com.github.javaparser.resolution.types.ResolvedReferenceType> getInterfaces()
- Specified by:
getInterfaces
in interfacecom.github.javaparser.resolution.declarations.ResolvedClassDeclaration
-
isInterface
public boolean isInterface()
- Specified by:
isInterface
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
-
getTypeParameters
public List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> getTypeParameters()
- Specified by:
getTypeParameters
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
-
accessSpecifier
public com.github.javaparser.ast.AccessSpecifier accessSpecifier()
- Specified by:
accessSpecifier
in interfacecom.github.javaparser.resolution.declarations.HasAccessSpecifier
-
getConstructors
public List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> getConstructors()
- Specified by:
getConstructors
in interfacecom.github.javaparser.resolution.declarations.ResolvedClassDeclaration
- Specified by:
getConstructors
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
containerType
public Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> containerType()
- Specified by:
containerType
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
-
internalTypes
public Set<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> internalTypes()
- Specified by:
internalTypes
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
-
getInternalType
public com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration getInternalType(String name)
- Specified by:
getInternalType
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
-
hasInternalType
public boolean hasInternalType(String name)
- Specified by:
hasInternalType
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
-
toAst
public Optional<com.github.javaparser.ast.Node> toAst()
- Specified by:
toAst
in interfacecom.github.javaparser.resolution.declarations.AssociableToAST<com.github.javaparser.ast.Node>
-
-