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