GeneratorStrategyUndeclaredThrowableStrategypublic class DefaultGeneratorStrategy extends java.lang.Object implements GeneratorStrategy
| Modifier and Type | Field | Description |
|---|---|---|
static DefaultGeneratorStrategy |
INSTANCE |
| Constructor | Description |
|---|---|
DefaultGeneratorStrategy() |
| Modifier and Type | Method | 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) |
equalspublic static final DefaultGeneratorStrategy INSTANCE
public byte[] generate(ClassGenerator cg) throws java.lang.Exception
GeneratorStrategygenerate in interface GeneratorStrategycg - a class generator on which you can call ClassGenerator.generateClass(org.objectweb.asm.ClassVisitor)java.lang.Exceptionprotected DebuggingClassWriter getClassVisitor() throws java.lang.Exception
java.lang.Exceptionprotected final org.objectweb.asm.ClassWriter getClassWriter()
protected byte[] transform(byte[] b)
throws java.lang.Exception
java.lang.Exceptionprotected ClassGenerator transform(ClassGenerator cg) throws java.lang.Exception
java.lang.Exception