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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Generate the class.protected DebuggingClassWriterprotected final 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 org.springframework.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.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
-