public class ASMHelper
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ASMHelper.Acceptor |
| Constructor and Description |
|---|
ASMHelper() |
| Modifier and Type | Method and Description |
|---|---|
static org.objectweb.asm.tree.InsnList |
cloneInsnList(org.objectweb.asm.tree.InsnList list) |
static org.objectweb.asm.tree.InsnList |
cloneInsnList(java.util.Map<org.objectweb.asm.tree.LabelNode,org.objectweb.asm.tree.LabelNode> labelMap,
org.objectweb.asm.tree.InsnList list) |
static java.util.Map<org.objectweb.asm.tree.LabelNode,org.objectweb.asm.tree.LabelNode> |
cloneLabels(org.objectweb.asm.tree.InsnList list) |
static java.util.List<org.objectweb.asm.tree.LocalVariableNode> |
cloneLocals(java.util.Map<org.objectweb.asm.tree.LabelNode,org.objectweb.asm.tree.LabelNode> labelMap,
java.util.List<org.objectweb.asm.tree.LocalVariableNode> locals) |
static java.util.List<org.objectweb.asm.tree.TryCatchBlockNode> |
cloneTryCatchBlocks(java.util.Map<org.objectweb.asm.tree.LabelNode,org.objectweb.asm.tree.LabelNode> labelMap,
java.util.List<org.objectweb.asm.tree.TryCatchBlockNode> tcblocks) |
static void |
copy(org.objectweb.asm.tree.MethodNode src,
org.objectweb.asm.tree.MethodNode dst) |
static byte[] |
createBytes(org.objectweb.asm.tree.ClassNode cnode,
int flags) |
static org.objectweb.asm.tree.ClassNode |
createClassNode(byte[] bytes) |
static org.objectweb.asm.tree.ClassNode |
createClassNode(byte[] bytes,
int flags) |
static void |
dump(ASMHelper.Acceptor acceptor,
java.io.File file,
boolean filterImportant,
boolean sortLocals,
boolean textify) |
static void |
dump(byte[] bytes,
java.io.File file,
boolean filterImportant,
boolean sortLocals,
boolean textify) |
static void |
dump(org.objectweb.asm.tree.ClassNode cnode,
java.io.File file,
boolean filterImportant,
boolean sortLocals,
boolean textify) |
static void |
dump(java.io.InputStream is,
java.io.File file,
boolean filterImportant,
boolean sortLocals,
boolean textify) |
static org.objectweb.asm.tree.FieldNode |
findField(ObfMapping fieldmap,
org.objectweb.asm.tree.ClassNode cnode) |
static org.objectweb.asm.tree.MethodNode |
findMethod(ObfMapping methodmap,
org.objectweb.asm.tree.ClassNode cnode) |
static int |
getLocal(java.util.List<org.objectweb.asm.tree.LocalVariableNode> list,
java.lang.String name) |
static void |
replaceMethod(org.objectweb.asm.tree.MethodNode original,
org.objectweb.asm.tree.MethodNode replacement) |
static java.lang.String |
toString(org.objectweb.asm.tree.InsnList list) |
public static org.objectweb.asm.tree.MethodNode findMethod(ObfMapping methodmap, org.objectweb.asm.tree.ClassNode cnode)
public static org.objectweb.asm.tree.FieldNode findField(ObfMapping fieldmap, org.objectweb.asm.tree.ClassNode cnode)
public static org.objectweb.asm.tree.ClassNode createClassNode(byte[] bytes)
public static org.objectweb.asm.tree.ClassNode createClassNode(byte[] bytes,
int flags)
public static byte[] createBytes(org.objectweb.asm.tree.ClassNode cnode,
int flags)
public static java.util.Map<org.objectweb.asm.tree.LabelNode,org.objectweb.asm.tree.LabelNode> cloneLabels(org.objectweb.asm.tree.InsnList list)
public static org.objectweb.asm.tree.InsnList cloneInsnList(org.objectweb.asm.tree.InsnList list)
public static org.objectweb.asm.tree.InsnList cloneInsnList(java.util.Map<org.objectweb.asm.tree.LabelNode,org.objectweb.asm.tree.LabelNode> labelMap,
org.objectweb.asm.tree.InsnList list)
public static java.util.List<org.objectweb.asm.tree.TryCatchBlockNode> cloneTryCatchBlocks(java.util.Map<org.objectweb.asm.tree.LabelNode,org.objectweb.asm.tree.LabelNode> labelMap,
java.util.List<org.objectweb.asm.tree.TryCatchBlockNode> tcblocks)
public static java.util.List<org.objectweb.asm.tree.LocalVariableNode> cloneLocals(java.util.Map<org.objectweb.asm.tree.LabelNode,org.objectweb.asm.tree.LabelNode> labelMap,
java.util.List<org.objectweb.asm.tree.LocalVariableNode> locals)
public static void copy(org.objectweb.asm.tree.MethodNode src,
org.objectweb.asm.tree.MethodNode dst)
public static java.lang.String toString(org.objectweb.asm.tree.InsnList list)
public static int getLocal(java.util.List<org.objectweb.asm.tree.LocalVariableNode> list,
java.lang.String name)
public static void replaceMethod(org.objectweb.asm.tree.MethodNode original,
org.objectweb.asm.tree.MethodNode replacement)
public static void dump(ASMHelper.Acceptor acceptor, java.io.File file, boolean filterImportant, boolean sortLocals, boolean textify)
public static void dump(byte[] bytes,
java.io.File file,
boolean filterImportant,
boolean sortLocals,
boolean textify)
public static void dump(java.io.InputStream is,
java.io.File file,
boolean filterImportant,
boolean sortLocals,
boolean textify)
public static void dump(org.objectweb.asm.tree.ClassNode cnode,
java.io.File file,
boolean filterImportant,
boolean sortLocals,
boolean textify)