Mutable Class Reference
Represents a class definition.
This representation is mutable, to allow changing properties of the class.
Properties
The set of annotations applied to this class definition.
The major version of bytecode that this class definition targets.
The minor version of bytecode that this class definition targets, or 0
if not set.
The set of constructors explicitly declared by this class.
The set of fields explicitly declared by this class.
If this is a class, these are the set of interface types implemented by this class. If this is an interface, these are the interfaces extended by this interface.
The set of methods explicitly declared by this class.
The name of the package this class is defined in.
This class's fully-qualified class name, including its package name and simple class name.
The declared name of this specific class.
The supertype of this class, or null
if none defined.
Functions
Adds a new constructor explicitly declared by this class.
Adds a new field explicitly declared by this class.
Adds a new method explicitly declared by this class.
Creates a new annotation usage instance for use only in this class.
Returns the declared field identified by this name, or null
if none exists.
Returns the declared method identified by this name, or null
if none exists.
Returns the bytecode associated with this class definition.