public class ConstructorUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addConstructor(String descriptor,
String[] exceptions,
javassist.bytecode.ClassFile file,
javassist.bytecode.Bytecode initialValueBytecode)
Adds a constructor that delegates to a super constructor with the same
descriptor.
|
static void |
addDefaultConstructor(javassist.bytecode.ClassFile file,
javassist.bytecode.Bytecode initialValueBytecode)
adds a constructor that calls super()
|
public static void addDefaultConstructor(javassist.bytecode.ClassFile file, javassist.bytecode.Bytecode initialValueBytecode)
public static void addConstructor(String descriptor, String[] exceptions, javassist.bytecode.ClassFile file, javassist.bytecode.Bytecode initialValueBytecode)
descriptor
- the constructor descriptorexceptions
- any exceptions that are thrownfile
- the classfile to add the constructor toinitialValueBytecode
- bytecode that can be used to set inial valuesCopyright © 2012 Seam Framework. All Rights Reserved.