public class JavaDowngrader
extends java.lang.Object
| Constructor and Description |
|---|
JavaDowngrader() |
| Modifier and Type | Method and Description |
|---|---|
static DowngradeResult |
downgrade(org.objectweb.asm.tree.ClassNode classNode,
int targetVersion)
Downgrades the given class to the target version
|
static DowngradeResult |
downgrade(org.objectweb.asm.tree.ClassNode classNode,
int targetVersion,
RuntimeDepCollector depCollector)
Downgrades the given class to the target version
|
public static DowngradeResult downgrade(org.objectweb.asm.tree.ClassNode classNode, int targetVersion)
classNode - The class to downgradetargetVersion - The target Java versionDowngradeResultClassNodepublic static DowngradeResult downgrade(org.objectweb.asm.tree.ClassNode classNode, int targetVersion, RuntimeDepCollector depCollector)
classNode - The class to downgradetargetVersion - The target Java versiondepCollector - The RuntimeDepCollector to use to collect runtime dependencies. Check the javadoc
of RuntimeDepCollector for more info.DowngradeResultClassNode,
RuntimeDepCollector