public static enum RuntimePatcher.Patch extends java.lang.Enum<RuntimePatcher.Patch>
| Enum Constant and Description |
|---|
AFTER |
BEFORE |
REPLACE |
REPLACE_NODE |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
apply(MethodPatcher.PatchData patch,
org.objectweb.asm.tree.MethodNode methodNode,
org.objectweb.asm.tree.AbstractInsnNode location,
Method method) |
static RuntimePatcher.Patch |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RuntimePatcher.Patch[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RuntimePatcher.Patch BEFORE
public static final RuntimePatcher.Patch AFTER
public static final RuntimePatcher.Patch REPLACE
public static final RuntimePatcher.Patch REPLACE_NODE
public static RuntimePatcher.Patch[] values()
for (RuntimePatcher.Patch c : RuntimePatcher.Patch.values()) System.out.println(c);
public static RuntimePatcher.Patch valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic abstract void apply(MethodPatcher.PatchData patch, org.objectweb.asm.tree.MethodNode methodNode, org.objectweb.asm.tree.AbstractInsnNode location, Method method)