package com.coding.basic.homework_04.jvm.cmd; import com.coding.basic.homework_04.jvm.clz.ClassFile; import com.coding.basic.homework_04.jvm.constant.ConstantPool; 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) { // // // } }