Class AbstractClassDeclaration

  • 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, MethodResolutionCapability

    public abstract class AbstractClassDeclaration
    extends AbstractTypeDeclaration
    implements com.github.javaparser.resolution.declarations.ResolvedClassDeclaration, MethodResolutionCapability
    A common ancestor for all ClassDeclarations.
    Author:
    Federico Tomassetti
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      com.github.javaparser.resolution.declarations.ResolvedClassDeclaration asClass()  
      List<com.github.javaparser.resolution.types.ResolvedReferenceType> getAllInterfaces()  
      List<com.github.javaparser.resolution.types.ResolvedReferenceType> getAllSuperClasses()  
      boolean hasName()  
      protected abstract com.github.javaparser.resolution.types.ResolvedReferenceType object()
      An implementation of the Object class.
      • Methods inherited from interface com.github.javaparser.resolution.declarations.AssociableToAST

        toAst
      • Methods inherited from interface com.github.javaparser.resolution.declarations.HasAccessSpecifier

        accessSpecifier
      • Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedClassDeclaration

        getConstructors, getInterfaces, getSuperClass, isClass
      • Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration

        asEnumConstant, asField, asMethod, asParameter, getName, isEnumConstant, isField, isMethod, isParameter, isVariable
      • Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration

        asReferenceType, canBeAssignedTo, findTypeParameter, getAllAncestors, getAllFields, getAllMethods, getAllNonStaticFields, getAllStaticFields, getAncestors, getAncestors, getDeclaredFields, getDeclaredMethods, getField, getVisibleField, getVisibleFields, hasAnnotation, hasDirectlyAnnotation, hasField, hasVisibleField, isAssignableBy, isAssignableBy, isFunctionalInterface
      • Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration

        asEnum, asInterface, asType, asTypeParameter, containerType, getClassName, getId, getInternalType, getPackageName, getQualifiedName, hasInternalType, internalTypes, isAnonymousClass, isEnum, isInterface, isType, isTypeParameter
      • Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable

        getTypeParameters, isGeneric
    • Constructor Detail

      • AbstractClassDeclaration

        public AbstractClassDeclaration()
    • Method Detail

      • hasName

        public boolean hasName()
        Specified by:
        hasName in interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
      • getAllSuperClasses

        public final List<com.github.javaparser.resolution.types.ResolvedReferenceType> getAllSuperClasses()
        Specified by:
        getAllSuperClasses in interface com.github.javaparser.resolution.declarations.ResolvedClassDeclaration
      • getAllInterfaces

        public final List<com.github.javaparser.resolution.types.ResolvedReferenceType> getAllInterfaces()
        Specified by:
        getAllInterfaces in interface com.github.javaparser.resolution.declarations.ResolvedClassDeclaration
      • asClass

        public final com.github.javaparser.resolution.declarations.ResolvedClassDeclaration asClass()
        Specified by:
        asClass in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
      • object

        protected abstract com.github.javaparser.resolution.types.ResolvedReferenceType object()
        An implementation of the Object class.