summaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll/tools/InsnSequence.java
diff options
context:
space:
mode:
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