Interface ClassInfo

All Superinterfaces:
AnnotationTarget, DeclarationInfo

public interface ClassInfo extends DeclarationInfo
A class. Five kinds of classes are distinguished:
  • plain classes
  • interfaces
  • enums (restricted kind of classes)
  • annotations (specialized kind of interfaces)
  • records (restricted kind of classes)
Classes are represented as isolated units. That is, if this class is nested, it is not possible to obtain the enclosing class. Similarly, it is not possible to obtain the set of classes nested in this class.

At the same time, it is possible to obtain the set of constructors, methods and fields declared in this class, as well as the set of record components if this class is a record. It is also possible to obtain the package this class is declared in.

Since:
4.0