package com.github.wdn.coding2017.jvm.cmd; import com.github.wdn.coding2017.jvm.clz.ClassFile; import com.github.wdn.coding2017.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; } }