Package net.sf.cglib.core
Class DefaultGeneratorStrategy
java.lang.Object
net.sf.cglib.core.DefaultGeneratorStrategy
- All Implemented Interfaces:
GeneratorStrategy
- Direct Known Subclasses:
UndeclaredThrowableStrategy
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Generate the class.protected DebuggingClassWriterprotected final org.objectweb.asm.ClassWriterprotected byte[]transform(byte[] b) protected ClassGeneratorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.cglib.core.GeneratorStrategy
equals
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
DefaultGeneratorStrategy
public DefaultGeneratorStrategy()
-
-
Method Details
-
generate
Description copied from interface:GeneratorStrategyGenerate the class.- Specified by:
generatein interfaceGeneratorStrategy- Parameters:
cg- a class generator on which you can callClassGenerator.generateClass(org.objectweb.asm.ClassVisitor)- Returns:
- a byte array containing the bits of a valid Class
- Throws:
Exception
-
getClassVisitor
- Throws:
Exception
-
getClassWriter
protected final org.objectweb.asm.ClassWriter getClassWriter() -
transform
- Throws:
Exception
-
transform
- Throws:
Exception
-