GeneratorStrategy
UndeclaredThrowableStrategy
public class DefaultGeneratorStrategy extends 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) |
equals
public static final DefaultGeneratorStrategy INSTANCE
public byte[] generate(ClassGenerator cg) throws Exception
GeneratorStrategy
generate
in interface GeneratorStrategy
cg
- a class generator on which you can call ClassGenerator.generateClass(org.objectweb.asm.ClassVisitor)
Exception
protected DebuggingClassWriter getClassVisitor() throws Exception
Exception
protected final org.objectweb.asm.ClassWriter getClassWriter()
protected ClassGenerator transform(ClassGenerator cg) throws Exception
Exception
Copyright © 2018. All rights reserved.