Class AbstractClassDeclaration
java.lang.Object
com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration
com.github.javaparser.symbolsolver.logic.AbstractClassDeclaration
- All Implemented Interfaces:
AssociableToAST, HasAccessSpecifier, ResolvedClassDeclaration, ResolvedDeclaration, ResolvedReferenceTypeDeclaration, ResolvedTypeDeclaration, ResolvedTypeParametrizable, MethodResolutionCapability
- Direct Known Subclasses:
JavaParserAnonymousClassDeclaration, JavaParserClassDeclaration, JavassistClassDeclaration, ReflectionClassDeclaration
public abstract class AbstractClassDeclaration
extends AbstractTypeDeclaration
implements ResolvedClassDeclaration, MethodResolutionCapability
A common ancestor for all ClassDeclarations.
-
Field Summary
Fields inherited from interface 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 ResolvedClassDeclarationasClass()Return this as a ClassDeclaration or throw UnsupportedOperationException.final List<ResolvedReferenceType> Return all the interfaces implemented by this class, either directly or indirectly, including the interfaces extended by interfaces it implements.final List<ResolvedReferenceType> Get all superclasses, with all the type typeParametersValues expressed as functions of the type typeParametersValues of this declaration.booleanhasName()Publicprotected abstract 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 AssociableToAST
toAst, toAstMethods inherited from interface HasAccessSpecifier
accessSpecifierMethods inherited from interface MethodResolutionCapability
solveMethodMethods inherited from interface ResolvedClassDeclaration
getConstructors, getInterfaces, getSuperClass, isClassMethods inherited from interface ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, asTypePattern, getName, isEnumConstant, isField, isMethod, isParameter, isTypePattern, isVariableMethods inherited from interface 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 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 ResolvedTypeParametrizable
getTypeParameters, isGeneric
-
Constructor Details
-
AbstractClassDeclaration
public AbstractClassDeclaration()
-
-
Method Details
-
hasName
-
getAllSuperClasses
Description copied from interface:ResolvedClassDeclarationGet all superclasses, with all the type typeParametersValues expressed as functions of the type typeParametersValues of this declaration.- Specified by:
getAllSuperClassesin interfaceResolvedClassDeclaration
-
getAllInterfaces
Description copied from interface:ResolvedClassDeclarationReturn all the interfaces implemented by this class, either directly or indirectly, including the interfaces extended by interfaces it implements.Get all interfaces, with all the type typeParametersValues expressed as functions of the type typeParametersValues of this declaration.
- Specified by:
getAllInterfacesin interfaceResolvedClassDeclaration
-
asClass
Description copied from interface:ResolvedTypeDeclarationReturn this as a ClassDeclaration or throw UnsupportedOperationException.- Specified by:
asClassin interfaceResolvedTypeDeclaration
-
object
An implementation of the Object class.
-