Interface ClassDeclaration

    • Method Detail

      • getSuperclass

        ClassType getSuperclass()
        Returns the class type directly extended by this class. The only class with no superclass is java.lang.Object, for which this method returns null.
        Returns:
        the class type directly extended by this class, or null if there is none
      • getConstructors

        Collection<ConstructorDeclaration> getConstructors()
        Returns the constructors of this class. This includes the default constructor if this class has no constructors explicitly declared.
        Returns:
        the constructors of this class
        See Also:
        DeclarationFilter
      • getMethods

        Collection<MethodDeclaration> getMethods()
        Returns the methods that are directly declared by this class or interface. Includes annotation type elements. Excludes implicitly declared methods of an interface, such as toString, that correspond to the methods of java.lang.Object.
        Specified by:
        getMethods in interface TypeDeclaration
        Returns:
        the methods that are directly declared, or an empty collection if there are none
        See Also:
        DeclarationFilter