public class ClassCustomizer extends Object
Constructor and Description |
---|
ClassCustomizer(Class<?> iface,
String oldlassName,
String newClassName) |
Modifier and Type | Method and Description |
---|---|
void |
addDoubleField(String fieldName)
Adds a new field of type double to the customized class
|
static <T> T |
reclass(T original,
Class<? extends T> newClass)
Creates a clone of original but with the class NewClass (which extends original's class)
|
Class<?> |
saveClass()
Writes the class file to the classpath and returns a class object
|
void |
setClassPath(File file) |
public void setClassPath(File file)
public void addDoubleField(String fieldName)
public Class<?> saveClass()
public static <T> T reclass(T original, Class<? extends T> newClass)
Copyright © 2018. All rights reserved.