summaryrefslogtreecommitdiffstats
path: root/src/org/jetbrains/java/decompiler/code/instructions/GETFIELD.java
blob: 8500f46182bd176418ae33894cf9d2b8183f5c00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package org.jetbrains.java.decompiler.code.instructions;

import java.io.DataOutputStream;
import java.io.IOException;

import org.jetbrains.java.decompiler.code.Instruction;

public class GETFIELD extends Instruction {
	
	public void writeToStream(DataOutputStream out, int offset) throws IOException {
		out.writeByte(opc_getfield);
		out.writeShort(getOperand(0));
	}
	
	public int length() {
		return 3;
	}	
}