summaryrefslogtreecommitdiffstats
path: root/src/de/fernflower/code/instructions/PUTSTATIC.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/de/fernflower/code/instructions/PUTSTATIC.java')
-rw-r--r--src/de/fernflower/code/instructions/PUTSTATIC.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/de/fernflower/code/instructions/PUTSTATIC.java b/src/de/fernflower/code/instructions/PUTSTATIC.java
new file mode 100644
index 0000000..d384de0
--- /dev/null
+++ b/src/de/fernflower/code/instructions/PUTSTATIC.java
@@ -0,0 +1,19 @@
+package de.fernflower.code.instructions;
+
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import de.fernflower.code.Instruction;
+
+public class PUTSTATIC extends Instruction {
+
+ public void writeToStream(DataOutputStream out, int offset) throws IOException {
+ out.writeByte(opc_putstatic);
+ out.writeShort(getOperand(0));
+ }
+
+ public int length() {
+ return 3;
+ }
+
+}