Class AbstractClassDeclaration
java.lang.Object
com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration
com.github.javaparser.symbolsolver.logic.AbstractClassDeclaration
- All Implemented Interfaces:
com.github.javaparser.resolution.declarations.AssociableToAST, 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, com.github.javaparser.resolution.logic.MethodResolutionCapability
- Direct Known Subclasses:
JavaParserAnonymousClassDeclaration, JavaParserClassDeclaration, JavassistClassDeclaration, ReflectionClassDeclaration
public abstract class AbstractClassDeclaration
extends AbstractTypeDeclaration
implements com.github.javaparser.resolution.declarations.ResolvedClassDeclaration, com.github.javaparser.resolution.logic.MethodResolutionCapability
A common ancestor for all ClassDeclarations.
- Author:
- Federico Tomassetti
-
Field Summary
Fields inherited from interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
breadthFirstFunc, depthFirstFunc, JAVA_IO_SERIALIZABLE, JAVA_LANG_COMPARABLE, JAVA_LANG_ENUM, JAVA_LANG_OBJECT, JAVA_LANG_RECORD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal com.github.javaparser.resolution.declarations.ResolvedClassDeclarationasClass()final List<com.github.javaparser.resolution.types.ResolvedReferenceType> final List<com.github.javaparser.resolution.types.ResolvedReferenceType> booleanhasName()Publicprotected abstract com.github.javaparser.resolution.types.ResolvedReferenceTypeobject()An implementation of the Object class.Methods inherited from class AbstractTypeDeclaration
getAllMethods, isFunctionalInterface, isRecordTypeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.javaparser.resolution.declarations.AssociableToAST
toAst, toAstMethods inherited from interface com.github.javaparser.resolution.declarations.HasAccessSpecifier
accessSpecifierMethods inherited from interface com.github.javaparser.resolution.logic.MethodResolutionCapability
solveMethodMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedClassDeclaration
getConstructors, getInterfaces, getSuperClass, isClassMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, asTypePattern, getName, isArrayLength, isEnumConstant, isField, isMethod, isParameter, isTypePattern, isVariableMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
asReferenceType, canBeAssignedTo, findTypeParameter, getAllAncestors, getAllAncestors, getAllFields, getAllMethods, getAllNonStaticFields, getAllStaticFields, getAncestors, getAncestors, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredFields, getDeclaredMethods, getField, getVisibleField, getVisibleFields, hasAnnotation, hasDirectlyAnnotation, hasField, hasVisibleField, isAssignableBy, isAssignableBy, isFunctionalInterface, isInheritedAnnotation, isJavaLangEnum, isJavaLangObject, isJavaLangRecord, isReferenceTypeMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
asAnnotation, asEnum, asInterface, asRecord, asType, asTypeParameter, containerType, getClassName, getId, getInternalType, getPackageName, getQualifiedName, hasInternalType, internalTypes, isAnnotation, isAnonymousClass, isEnum, isInterface, isRecord, isType, isTypeParameterMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
getTypeParameters, isGeneric
-
Constructor Details
-
AbstractClassDeclaration
public AbstractClassDeclaration()
-
-
Method Details
-
hasName
public boolean hasName()Public- Specified by:
hasNamein interfacecom.github.javaparser.resolution.declarations.ResolvedDeclaration
-
getAllSuperClasses
public final List<com.github.javaparser.resolution.types.ResolvedReferenceType> getAllSuperClasses()- Specified by:
getAllSuperClassesin interfacecom.github.javaparser.resolution.declarations.ResolvedClassDeclaration
-
getAllInterfaces
- Specified by:
getAllInterfacesin interfacecom.github.javaparser.resolution.declarations.ResolvedClassDeclaration
-
asClass
public final com.github.javaparser.resolution.declarations.ResolvedClassDeclaration asClass()- Specified by:
asClassin interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
-
object
protected abstract com.github.javaparser.resolution.types.ResolvedReferenceType object()An implementation of the Object class.
-