Mutable Classpath
Represents a set of classes that are available at runtime.
The full set of runtime classes is likely more than what is represented here, which is why calling get for any unknown classes will return a virtual class definition that can still be modified and references as usual. However, these virtual classes will be ignored when exporting the classpath via toGenericJarArchive.
Properties
The primitive Boolean type.
The primitive Byte type.
The primitive Char type.
The set of all input classes that will be packaged in this JAR.
The platform Class type.
The primitive Double type.
The primitive Float type.
The primitive Int type.
The primitive Long type.
The platform Object type.
The primitive Short type.
The platform String type.
The primitive Void type.
Functions
Adds and configures a new class entry in this classpath. This class will be packaged in the resulting JAR file.
Adds an entire set of other classes from another classpath to this one. Any classes you have defined in this classpath will be overwritten if also present in the other one.
Returns the class definition for the given class, or throws if one does not exist.
Returns the class definition for the given class name, or throws if one does not exist.
Returns the class definition for the given class name, or null
if none exists.
Removes a class from being packaged in the resulting JAR file.
Modifies all class files to remove method body bytecode.
Modifies all class files to strip private members.
Returns the modified classpath as a JAR representation.