summaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll/tools/InsnSequence.java
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-03-04 11:52:40 +0100
committer zaaarf <zaaarf@proton.me>2023-03-04 11:52:40 +0100
commitc9ea715ba1caf0efb8b6ae0f805e0cff391e9b03 (patch)
tree0f691a32bd1f1247deb1862120474402956a240b /src/main/java/ftbsc/lll/tools/InsnSequence.java
parent3185d840c456d76140d1f40b7a0c8818dba3b18f (diff)
fix: added empty predicates edge case to find function, and single-instruction constructor to InsnSequence
Diffstat (limited to 'src/main/java/ftbsc/lll/tools/InsnSequence.java')
-rw-r--r--src/main/java/ftbsc/lll/tools/InsnSequence.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/ftbsc/lll/tools/InsnSequence.java b/src/main/java/ftbsc/lll/tools/InsnSequence.java
index 1a915ca..2038155 100644
--- a/src/main/java/ftbsc/lll/tools/InsnSequence.java
+++ b/src/main/java/ftbsc/lll/tools/InsnSequence.java
@@ -20,6 +20,16 @@ public class InsnSequence extends InsnList {
}
/**
+ * Public constructor for list with single item.
+ * Must be given a single non-null node.
+ * @param node the node in question
+ */
+ public InsnSequence(AbstractInsnNode node) {
+ super();
+ super.add(node);
+ }
+
+ /**
* Public constructor.
* Must be given two non-null, connected nodes.
* @param startNode the starting node of the pattern