package week08.jvm.cmd; import week08.jvm.clz.ClassFile; import week08.jvm.constant.ConstantPool; import week08.jvm.engine.ExecutionResult; import week08.jvm.engine.JavaObject; import week08.jvm.engine.StackFrame; public class NoOperandCmd extends ByteCodeCommand{ public NoOperandCmd(ClassFile clzFile, String opCode) { super(clzFile, opCode); } @Override public String toString(ConstantPool pool) { return this.getOffset()+":" +this.getOpCode() + " "+ this.getReadableCodeText(); } public int getLength(){ return 1; } @Override public void execute(StackFrame frame, ExecutionResult result) { } }