Top Fields Constructors Methods
org.springframework.cglib.core

public Class DefaultGeneratorStrategy

extends Object
implements GeneratorStrategy
Class Inheritance
All Implemented Interfaces
org.springframework.cglib.core.GeneratorStrategy
Known Direct Subclasses
org.springframework.cglib.transform.impl.UndeclaredThrowableStrategy, org.springframework.cglib.core.ClassLoaderAwareGeneratorStrategy
Imports
org.springframework.asm.ClassWriter

Field Summary

Modifier and TypeField and Description
public static final DefaultGeneratorStrategy

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public byte[]
generate(ClassGenerator
a class generator on which you can call ClassGenerator#generateClass
cg
)

Implements org.springframework.cglib.core.GeneratorStrategy.generate.

Generate the class.
protected DebuggingClassWriter
protected final ClassWriter
protected byte[]
transform(byte[] b)

protected ClassGenerator
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final DefaultGeneratorStrategy INSTANCE

Constructor Detail

DefaultGeneratorStrategyback to summary
public DefaultGeneratorStrategy()

Method Detail

generateback to summary
public byte[] generate(ClassGenerator cg) throws Exception

Implements org.springframework.cglib.core.GeneratorStrategy.generate.

Doc from org.springframework.cglib.core.GeneratorStrategy.generate.

Generate the class.

Parameters
cg:ClassGenerator

a class generator on which you can call ClassGenerator#generateClass

Returns:byte[]

a byte array containing the bits of a valid Class

Annotations
@Override
getClassVisitorback to summary
protected DebuggingClassWriter getClassVisitor() throws Exception
getClassWriterback to summary
protected final ClassWriter getClassWriter()
transformback to summary
protected byte[] transform(byte[] b) throws Exception
transformback to summary
protected ClassGenerator transform(ClassGenerator cg) throws Exception