GeneratorStrategy is responsible for taking a
ClassGenerator and producing a byte array containing the
data for the generated Class. By providing your
own strategy you may examine or modify the generated class before
it is loaded. Typically this will be accomplished by subclassing
DefaultGeneratorStrategy and overriding the appropriate
protected method.
AbstractClassGenerator#setStrategy
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object o)
The |
| public byte[] | Returns: a byte array containing the bits of a valid Classa class generator on which you can call cg)ClassGenerator#generateClassGenerate the class. |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) The
| |
| generate | back to summary |
|---|---|
| public byte[] generate(ClassGenerator cg) throws Exception Generate the class.
| |