public class NodeTransformer extends Object implements ClassFileTransformer
A class file transformer that removes the selected field declarations from the org.dmg.pmml.tree.Node class.
double-score or float-score - Changes the type of the score field declaration from String to Double or Float.simple - Removes partition and embeddedModel field declarations.anonymous - Removes id and defaultChild field declarations.regression - Removes recordCount and scoreDistributions field declarations.| Constructor and Description |
|---|
NodeTransformer(Set<String> commands) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getCommands() |
byte[] |
transform(ClassLoader classLoader,
String className,
Class<?> clazz,
ProtectionDomain protectionDomain,
byte[] buffer) |
public byte[] transform(ClassLoader classLoader, String className, Class<?> clazz, ProtectionDomain protectionDomain, byte[] buffer) throws IllegalClassFormatException
transform in interface ClassFileTransformerIllegalClassFormatExceptionCopyright © 2018 University of Tartu. All rights reserved.