public class ConstructorUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addConstructor(java.lang.String returnType,
java.lang.String[] params,
java.lang.String[] exceptions,
ClassFile file,
java.util.List<DeferredBytecode> initialValueBytecode,
boolean useUnsafeInstantiators)
Adds a constructor that delegates to a super constructor with the same
descriptor.
|
static void |
addDefaultConstructor(ClassFile file,
java.util.List<DeferredBytecode> initialValueBytecode,
boolean useUnsafeInstantiators)
adds a constructor that calls super()
|
public static void addDefaultConstructor(ClassFile file, java.util.List<DeferredBytecode> initialValueBytecode, boolean useUnsafeInstantiators)
public static void addConstructor(java.lang.String returnType,
java.lang.String[] params,
java.lang.String[] exceptions,
ClassFile file,
java.util.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 © 2014. All Rights Reserved.