public class DefaultGeneratorStrategy extends java.lang.Object implements GeneratorStrategy
Modifier and Type | Field and Description |
---|---|
static DefaultGeneratorStrategy |
INSTANCE |
Constructor and Description |
---|
DefaultGeneratorStrategy() |
Modifier and Type | Method and Description |
---|---|
byte[] |
generate(ClassGenerator cg)
Generate the class.
|
protected DebuggingClassWriter |
getClassVisitor() |
protected org.objectweb.asm.ClassWriter |
getClassWriter() |
protected byte[] |
transform(byte[] b) |
protected ClassGenerator |
transform(ClassGenerator cg) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public static final DefaultGeneratorStrategy INSTANCE
public byte[] generate(ClassGenerator cg) throws java.lang.Exception
GeneratorStrategy
generate
in interface GeneratorStrategy
cg
- a class generator on which you can call ClassGenerator.generateClass(org.objectweb.asm.ClassVisitor)
java.lang.Exception
protected DebuggingClassWriter getClassVisitor() throws java.lang.Exception
java.lang.Exception
protected final org.objectweb.asm.ClassWriter getClassWriter()
protected byte[] transform(byte[] b) throws java.lang.Exception
java.lang.Exception
protected ClassGenerator transform(ClassGenerator cg) throws java.lang.Exception
java.lang.Exception