public class ConstructorUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addConstructor(java.lang.String descriptor,
java.lang.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(java.lang.String descriptor,
java.lang.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 © 2014 Seam Framework. All Rights Reserved.