Superclass
appears at most once in a ClassModel: it must be absent for
module descriptors or the Object class, and must be present otherwise. A ClassBuilder sets
the Object class as the superclass if the superclass is not supplied
and the class to build is required to have a superclass.
All interfaces have Object as
their superclass.
ClassFile Structure
ClassModel#superclass(), ClassBuilder#withSuperclass
| Modifier and Type | Method and Description |
|---|---|
| public static Superclass | Returns: a Superclass elementthe superclass superclassEntry)Returns a Superclass element. |
| public ClassEntry |
| of | back to summary |
|---|---|
| public static Superclass of(ClassEntry superclassEntry) Returns a Superclass element.
| |
| superclassEntry | back to summary |
|---|---|
| public ClassEntry superclassEntry() Returns the superclass.
| |