public class DefaultGeneratorStrategy extends 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 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 Exception
GeneratorStrategy
generate
in interface GeneratorStrategy
cg
- a class generator on which you can call ClassGenerator.generateClass(org.mockito.asm.ClassVisitor)
Exception
protected ClassWriter getClassWriter() throws Exception
Exception
protected ClassGenerator transform(ClassGenerator cg) throws Exception
Exception
Copyright © 2016. All rights reserved.