public class ConstructorUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addConstructor(String returnType,
String[] params,
String[] exceptions,
org.jboss.classfilewriter.ClassFile file,
List<DeferredBytecode> initialValueBytecode,
boolean useUnsafeInstantiators)
Adds a constructor that delegates to a super constructor with the same
descriptor.
|
static void |
addDefaultConstructor(org.jboss.classfilewriter.ClassFile file,
List<DeferredBytecode> initialValueBytecode,
boolean useUnsafeInstantiators)
adds a constructor that calls super()
|
public static void addDefaultConstructor(org.jboss.classfilewriter.ClassFile file, List<DeferredBytecode> initialValueBytecode, boolean useUnsafeInstantiators)
public static void addConstructor(String returnType, String[] params, String[] exceptions, org.jboss.classfilewriter.ClassFile file, List<DeferredBytecode> initialValueBytecode, boolean useUnsafeInstantiators)
returnType
- the constructor descriptorexceptions
- any exceptions that are thrownfile
- the classfile to add the constructor toinitialValueBytecode
- bytecode that can be used to set initial valuesCopyright © 2016. All rights reserved.