public final class ArgsClassGenerator extends java.lang.Object implements IClassGenerator
Args to be used by the
ModifyArgs injector. The subclasses contain getter and setter logic
to provide access to a particular configuration of arguments and classes are
only generated for each unique argument combination.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ARGS_NAME |
static java.lang.String |
ARGS_REF |
static java.lang.String |
GETTER_PREFIX |
| Constructor and Description |
|---|
ArgsClassGenerator() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
generate(java.lang.String name)
Generate (if possible) the specified class name.
|
byte[] |
getBytes(java.lang.String name)
Fetch or generate class bytes for the specified class name.
|
java.lang.String |
getClassName(java.lang.String desc)
Get (or generate) the class name for the specified descriptor.
|
java.lang.String |
getClassRef(java.lang.String desc)
Get (or generate) the class name for the specified descriptor in internal
format (reference).
|
public static final java.lang.String ARGS_NAME
public static final java.lang.String ARGS_REF
public static final java.lang.String GETTER_PREFIX
public java.lang.String getClassName(java.lang.String desc)
desc - Descriptor of the target method, the return type is
ignored for the purposes of generating Args subclassespublic java.lang.String getClassRef(java.lang.String desc)
desc - Descriptor of the target method, with the return
type changed to void (V)public byte[] generate(java.lang.String name)
IClassGeneratorgenerate in interface IClassGeneratorname - Class name to generatepublic byte[] getBytes(java.lang.String name)
name - Class name