- All Known Subinterfaces:
public interface ClassDeclaration extends TypeDeclaration
Represents the declaration of a class. For the declaration of an interface, see
InterfaceDeclaration. Provides access to information about the class, its members, and its constructors. Note that an enum is a kind of class.
provides a simple way to select just the items of interest
when a method returns a collection of declarations.
- See Also:
Method SummaryModifier and TypeMethodDescriptionReturns the constructors of this class.Returns the methods that are directly declared by this class or interface.Returns the class type directly extended by this class.
Methods inherited from interface com.sun.mirror.declaration.Declaration
accept, equals, getAnnotation, getAnnotationMirrors, getDocComment, getModifiers, getPosition, getSimpleName
getSuperclassClassType 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.
- the class type directly extended by this class, or null if there is none
getConstructorsReturns the constructors of this class. This includes the default constructor if this class has no constructors explicitly declared.
- the constructors of this class
- See Also:
getMethodsReturns 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