diff --git a/src/main/java/ftbsc/lll/tools/PatternMatcher.java b/src/main/java/ftbsc/lll/tools/PatternMatcher.java index 2d179e1..0d71125 100644 --- a/src/main/java/ftbsc/lll/tools/PatternMatcher.java +++ b/src/main/java/ftbsc/lll/tools/PatternMatcher.java @@ -214,6 +214,14 @@ public class PatternMatcher { 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. * @return the builder's state after the operation