public class RegexInsnFinder
extends java.lang.Object
Constructor and Description |
---|
RegexInsnFinder(org.objectweb.asm.tree.ClassNode clazz,
org.objectweb.asm.tree.MethodNode method) |
Modifier and Type | Method and Description |
---|---|
org.objectweb.asm.tree.AbstractInsnNode[] |
find(java.lang.String regex)
Searches for a regex in the instruction list and returns the first match.
|
java.util.List<org.objectweb.asm.tree.AbstractInsnNode[]> |
findAll(java.lang.String regex)
Searches a regex in an instruction list and returns all matches.
|
java.util.List<org.objectweb.asm.tree.AbstractInsnNode[][]> |
findAllGroups(java.lang.String regex)
Searches for a regex in the instruction list and returns all groups for
all matches.
|
org.objectweb.asm.tree.AbstractInsnNode[][] |
findGroups(java.lang.String regex)
Searches for a regex in the instruction list and returns all groups for
the first match.
|
static java.lang.String |
processRegex(java.lang.String regex) |
void |
refresh()
Refreshes the internal instruction list when you have made changes to the
method.
|
void |
setMethod(org.objectweb.asm.tree.ClassNode ci,
org.objectweb.asm.tree.MethodNode mi) |
public RegexInsnFinder(org.objectweb.asm.tree.ClassNode clazz, org.objectweb.asm.tree.MethodNode method)
public static java.lang.String processRegex(java.lang.String regex)
public void refresh()
public void setMethod(org.objectweb.asm.tree.ClassNode ci, org.objectweb.asm.tree.MethodNode mi)
public org.objectweb.asm.tree.AbstractInsnNode[] find(java.lang.String regex)
regex
- the regular expressionpublic java.util.List<org.objectweb.asm.tree.AbstractInsnNode[]> findAll(java.lang.String regex)
regex
- the regular expressionpublic org.objectweb.asm.tree.AbstractInsnNode[][] findGroups(java.lang.String regex)
regex
- the regular expressionpublic java.util.List<org.objectweb.asm.tree.AbstractInsnNode[][]> findAllGroups(java.lang.String regex)
regex
- the regular expression