Class JavassistTypeDeclarationAdapter
- java.lang.Object
-
- com.github.javaparser.symbolsolver.javassistmodel.JavassistTypeDeclarationAdapter
-
public class JavassistTypeDeclarationAdapter extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private javassist.CtClass
ctClass
private static java.lang.String
JDK_ANNOTATION_CLASS_NAME
private static java.lang.reflect.Method
JDK_ANNOTATION_TYPE_METHOD
private ResolvedReferenceTypeDeclaration
typeDeclaration
private TypeSolver
typeSolver
-
Constructor Summary
Constructors Constructor Description JavassistTypeDeclarationAdapter(javassist.CtClass ctClass, TypeSolver typeSolver, ResolvedReferenceTypeDeclaration typeDeclaration)
-
Method Summary
-
-
-
Field Detail
-
JDK_ANNOTATION_CLASS_NAME
private static final java.lang.String JDK_ANNOTATION_CLASS_NAME
- See Also:
- Constant Field Values
-
JDK_ANNOTATION_TYPE_METHOD
private static java.lang.reflect.Method JDK_ANNOTATION_TYPE_METHOD
-
ctClass
private javassist.CtClass ctClass
-
typeSolver
private TypeSolver typeSolver
-
typeDeclaration
private ResolvedReferenceTypeDeclaration typeDeclaration
-
-
Constructor Detail
-
JavassistTypeDeclarationAdapter
public JavassistTypeDeclarationAdapter(javassist.CtClass ctClass, TypeSolver typeSolver, ResolvedReferenceTypeDeclaration typeDeclaration)
-
-
Method Detail
-
getSuperClass
public java.util.Optional<ResolvedReferenceType> getSuperClass()
-
getInterfaces
public java.util.List<ResolvedReferenceType> getInterfaces()
-
getInterfaces
private java.util.List<ResolvedReferenceType> getInterfaces(boolean acceptIncompleteList)
-
getAncestors
public java.util.List<ResolvedReferenceType> getAncestors(boolean acceptIncompleteList)
-
getDeclaredMethods
public java.util.Set<ResolvedMethodDeclaration> getDeclaredMethods()
-
getConstructors
public java.util.List<ResolvedConstructorDeclaration> getConstructors()
-
getDeclaredFields
public java.util.List<ResolvedFieldDeclaration> getDeclaredFields()
-
getDeclaredAnnotations
public java.util.Set<ResolvedAnnotationDeclaration> getDeclaredAnnotations()
-
getAnnotationType
private java.lang.String getAnnotationType(java.lang.Object annotation)
-
getTypeParameters
public java.util.List<ResolvedTypeParameterDeclaration> getTypeParameters()
-
containerType
public java.util.Optional<ResolvedReferenceTypeDeclaration> containerType()
-
isAssignableBy
public boolean isAssignableBy(ResolvedType type)
-
isAssignableBy
public boolean isAssignableBy(ResolvedReferenceTypeDeclaration other)
-
isFunctionalInterface
private final boolean isFunctionalInterface()
-
internalTypes
public java.util.Set<ResolvedReferenceTypeDeclaration> internalTypes()
Get the nested classes.
{@code class Foo { class Bar {} } In the example above we expect the nested types for {@code Foo} to be {@code Bar}.- Returns:
- The nested classes.
-
-