mirror of
https://github.com/zaaarf/lillero.git
synced 2024-11-22 15:34:49 +01:00
feat: added label matcher to PatternMatcher
This commit is contained in:
parent
e21401b41b
commit
86a40645d2
1 changed files with 8 additions and 0 deletions
|
@ -214,6 +214,14 @@ public class PatternMatcher {
|
||||||
return check(i -> i.getType() == AbstractInsnNode.JUMP_INSN);
|
return check(i -> i.getType() == AbstractInsnNode.JUMP_INSN);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Matches any kind of label.
|
||||||
|
* @return the builder's state after the operation
|
||||||
|
*/
|
||||||
|
public Builder label() {
|
||||||
|
return check(i -> i.getType() == AbstractInsnNode.LABEL);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tells the pattern matcher to ignore LABEL instructions.
|
* Tells the pattern matcher to ignore LABEL instructions.
|
||||||
* @return the builder's state after the operation
|
* @return the builder's state after the operation
|
||||||
|
|
Loading…
Reference in a new issue