public int length(int offset) { return 1 + constantIndexSize() + constantSize(); }
public int length(int offset) { return 1 + constantIndexSize() + constantSize(); }
public int length(int offset) { return 1 + constantIndexSize() + constantSize(); }
public int length(int offset) { return 1 + constantIndexSize() + constantSize(); }
public String toString() { return getName()+" #"+constantIndex+(constantSize() == 0 ? "" : ", "+constant); }
public String toString() { return getName()+" #"+constantIndex+(constantSize() == 0 ? "" : ", "+constant); }
public String toString() { return getName()+" #"+constantIndex+(constantSize() == 0 ? "" : ", "+constant); }
protected void readInfo(byte[] code, int offset) { int constantIndexSize = constantIndexSize(); int constantSize = constantSize(); constantIndex = readValue(code, offset, constantIndexSize); offset += constantIndexSize; constant = readValue(code, offset, constantSize); }
protected void readInfo(byte[] code, int offset) { int constantIndexSize = constantIndexSize(); int constantSize = constantSize(); constantIndex = readValue(code, offset, constantIndexSize); offset += constantIndexSize; constant = readValue(code, offset, constantSize); }
protected void readInfo(byte[] code, int offset) { int constantIndexSize = constantIndexSize(); int constantSize = constantSize(); constantIndex = readValue(code, offset, constantIndexSize); offset += constantIndexSize; constant = readValue(code, offset, constantSize); }
protected void readInfo(byte[] code, int offset) { int constantIndexSize = constantIndexSize(); int constantSize = constantSize(); constantIndex = readValue(code, offset, constantIndexSize); offset += constantIndexSize; constant = readValue(code, offset, constantSize); }
protected void writeInfo(byte[] code, int offset) { int constantIndexSize = constantIndexSize(); int constantSize = constantSize(); if (requiredConstantIndexSize() > constantIndexSize) { throw new IllegalArgumentException("Instruction has invalid constant index size ("+this.toString(offset)+")"); } writeValue(code, offset, constantIndex, constantIndexSize); offset += constantIndexSize; writeValue(code, offset, constant, constantSize); }
protected void writeInfo(byte[] code, int offset) { int constantIndexSize = constantIndexSize(); int constantSize = constantSize(); if (requiredConstantIndexSize() > constantIndexSize) { throw new IllegalArgumentException("Instruction has invalid constant index size ("+this.toString(offset)+")"); } writeValue(code, offset, constantIndex, constantIndexSize); offset += constantIndexSize; writeValue(code, offset, constant, constantSize); }
protected void writeInfo(byte[] code, int offset) { int constantIndexSize = constantIndexSize(); int constantSize = constantSize(); if (requiredConstantIndexSize() > constantIndexSize) { throw new IllegalArgumentException("Instruction has invalid constant index size ("+this.toString(offset)+")"); } writeValue(code, offset, constantIndex, constantIndexSize); offset += constantIndexSize; writeValue(code, offset, constant, constantSize); }
protected void writeInfo(byte[] code, int offset) { int constantIndexSize = constantIndexSize(); int constantSize = constantSize(); if (requiredConstantIndexSize() > constantIndexSize) { throw new IllegalArgumentException("Instruction has invalid constant index size ("+this.toString(offset)+")"); } writeValue(code, offset, constantIndex, constantIndexSize); offset += constantIndexSize; writeValue(code, offset, constant, constantSize); }