ClassModel (Java SE 26 & JDK 26)
- All Superinterfaces:
AttributedElement, ClassFileElement, CompoundElement<ClassElement>, Iterable<ClassElement>
-
Method Summary
Returns the constant pool for this class.
fields()Returns the fields of this class.
flags()Returns the access flags.
Returns the interfaces implemented by this class.
booleanReturns whether this
classfile is a module descriptor.intReturns the major version of this class.
methods()Returns the methods of this class.
intReturns the minor version of this class.
Returns the superclass of this class, if there is one.
Returns the constant pool entry describing the name of this class.
Methods declared in interface CompoundElement
elementList, elementStream, forEach, iterator, toDebugStringReturns a
Listcontaining all member elements in this compound element.Returns a
Streamcontaining all member elements in this compound element.voidInvokes the provided handler with each member element in this compound element.
Returns an
Iteratordescribing all member elements in this compound element.Returns a text representation of the compound element and its contents for debugging purposes.
-
Method Details
-
constantPool
-
flags
-
thisClass
-
majorVersion
-
minorVersion
-
fields
-
methods
-
superclass
-
interfaces
-
isModuleInfo
-