net.sf.cglib.core
Class DefaultGeneratorStrategy
java.lang.Object
net.sf.cglib.core.DefaultGeneratorStrategy
- All Implemented Interfaces:
- GeneratorStrategy
- Direct Known Subclasses:
- UndeclaredThrowableStrategy
public class DefaultGeneratorStrategy
- extends Object
- implements GeneratorStrategy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final DefaultGeneratorStrategy INSTANCE
DefaultGeneratorStrategy
public DefaultGeneratorStrategy()
generate
public byte[] generate(ClassGenerator cg)
throws Exception
- Description copied from interface:
GeneratorStrategy
- Generate the class.
- Specified by:
generate in interface GeneratorStrategy
- Parameters:
cg - a class generator on which you can call ClassGenerator.generateClass(org.objectweb.asm.ClassVisitor)
- Returns:
- a byte array containing the bits of a valid Class
- Throws:
Exception
getClassWriter
protected org.objectweb.asm.ClassWriter getClassWriter()
throws Exception
- Throws:
Exception
transform
protected byte[] transform(byte[] b)
throws Exception
- Throws:
Exception
transform
protected ClassGenerator transform(ClassGenerator cg)
throws Exception
- Throws:
Exception
Copyright © 2012 Oracle Corporation. All Rights Reserved.