Interface ClassDeclaration

All Superinterfaces:
AnnotationTarget, Declaration, Element, MemberDeclaration, NamedElement, Type, TypeDeclaration, TypeParameterDeclarator
All Known Subinterfaces:
MutableClassDeclaration

@Beta public interface ClassDeclaration extends TypeDeclaration, TypeParameterDeclarator
Author:
Sven Efftinge
  • Method Details

    • isFinal

      boolean isFinal()
      Returns:
      whether this class is marked final
    • isAbstract

      boolean isAbstract()
      Returns:
      whether this class is marked abstract
    • isStatic

      boolean isStatic()
      Returns:
      whether this class is marked static
    • isStrictFloatingPoint

      boolean isStrictFloatingPoint()
      Returns:
      whether this class is marked strictfp
    • getExtendedClass

      TypeReference getExtendedClass()
      Returns:
      the super class of this class. If this class declaration represents the source AST this method returns null if no explicit super class is specified.
    • getImplementedInterfaces

      Iterable<? extends TypeReference> getImplementedInterfaces()
      Returns:
      the interfaces directly implemented by the class declaration