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