/** * Gets the token representation of this item in RPN * * @return the bytes applicable to this formula */ byte[] getBytes() { byte[] data = new byte[5]; data[0] = Token.REFERR.getCode(); // bytes 1-5 are unused return data; }
/** * Gets the token representation of this item in RPN * * @return the bytes applicable to this formula */ byte[] getBytes() { byte[] data = new byte[1]; data[0] = Token.MISSING_ARG.getCode(); return data; }
/** * Gets the token representation of this item in RPN * * @return the bytes applicable to this formula */ byte[] getBytes() { byte[] data = new byte[1]; data[0] = Token.MISSING_ARG.getCode(); return data; }
/** * Gets the token representation of this item in RPN * * @return the bytes applicable to this formula */ byte[] getBytes() { byte[] data = new byte[5]; data[0] = Token.REFERR.getCode(); // bytes 1-5 are unused return data; }
/** * Gets the token representation of this item in RPN * * @return the bytes applicable to this formula */ byte[] getBytes() { byte[] data = new byte[2]; data[0] = Token.BOOL.getCode(); data[1] = (byte) (value == true ? 1 : 0); return data; }
/** * Gets the token representation of this item in RPN * * @return the bytes applicable to this formula */ byte[] getBytes() { byte[] data = new byte[2]; data[0] = Token.BOOL.getCode(); data[1] = (byte) (value == true ? 1 : 0); return data; }
/** * Gets the token representation of this item in RPN * * @return the bytes applicable to this formula */ byte[] getBytes() { byte[] data = new byte[2]; data[0] = Token.ERR.getCode(); data[1] = (byte) error.getCode(); return data; }
/** * Gets the token representation of this item in RPN * * @return the bytes applicable to this formula */ byte[] getBytes() { byte[] data = new byte[9]; data[0] = Token.DOUBLE.getCode(); DoubleHelper.getIEEEBytes(value, data, 1); return data; }
/** * Gets the token representation of this item in RPN * * @return the bytes applicable to this formula */ byte[] getBytes() { byte[] data = new byte[2]; data[0] = Token.ERR.getCode(); data[1] = (byte) error.getCode(); return data; }
/** * Gets the token representation of this item in RPN * * @return the bytes applicable to this formula */ byte[] getBytes() { byte[] data = new byte[9]; data[0] = Token.DOUBLE.getCode(); DoubleHelper.getIEEEBytes(value, data, 1); return data; }
/** * Gets the token representation of this item in RPN * * @return the bytes applicable to this formula */ byte[] getBytes() { byte[] data = new byte[3]; data[0] = Token.INTEGER.getCode(); IntegerHelper.getTwoBytes((int) value, data, 1); return data; }
/** * Gets the token representation of this item in RPN * * @return the bytes applicable to this formula */ byte[] getBytes() { byte[] data = new byte[3]; data[0] = Token.INTEGER.getCode(); IntegerHelper.getTwoBytes((int) value, data, 1); return data; }
/** * Gets the token representation of this item in RPN * * @return the bytes applicable to this formula */ byte[] getBytes() { byte[] data = new byte[value.length() * 2 + 3]; data[0] = Token.STRING.getCode(); data[1] = (byte) (value.length()); data[2] = 0x01; StringHelper.getUnicodeBytes(value, data, 3); return data; }
/** * Gets the token representation of this item in RPN * * @return the bytes applicable to this formula */ byte[] getBytes() { byte[] data = new byte[value.length() * 2 + 3]; data[0] = Token.STRING.getCode(); data[1] = (byte) (value.length()); data[2] = 0x01; StringHelper.getUnicodeBytes(value, data, 3); return data; }
/** * Gets the token representation of this item in RPN * * @return the bytes applicable to this formula */ byte[] getBytes() { // Get the data for the operands ParseItem[] operands = getOperands(); byte[] data = operands[0].getBytes(); // Add on the operator byte byte[] newdata = new byte[data.length + 1]; System.arraycopy(data, 0, newdata, 0, data.length); newdata[data.length] = getToken().getCode(); return newdata; }
/** * Gets the token representation of this item in RPN * * @return the bytes applicable to this formula */ byte[] getBytes() { // Get the data for the operands ParseItem[] operands = getOperands(); byte[] data = operands[0].getBytes(); // Add on the operator byte byte[] newdata = new byte[data.length + 1]; System.arraycopy(data, 0, newdata, 0, data.length); newdata[data.length] = getToken().getCode(); return newdata; }
/** * Gets the token representation of this item in RPN * * @return the bytes applicable to this formula */ byte[] getBytes() { // Get the data for the operands ParseItem[] operands = getOperands(); byte[] data = operands[0].getBytes(); // Add on the operator byte byte[] newdata = new byte[data.length + 1]; System.arraycopy(data, 0, newdata, 0, data.length); newdata[data.length] = getToken().getCode(); return newdata; }
/** * Gets the token representation of this item in RPN * * @return the bytes applicable to this formula */ byte[] getBytes() { // Get the data for the operands ParseItem[] operands = getOperands(); byte[] data = operands[0].getBytes(); // Add on the operator byte byte[] newdata = new byte[data.length + 1]; System.arraycopy(data, 0, newdata, 0, data.length); newdata[data.length] = getToken().getCode(); return newdata; }
/** * Overrides the getBytes() method in the base class and prepends the * memFunc token * * @return the bytes */ byte[] getBytes() { setVolatile(); setOperandAlternateCode(); byte[] funcBytes = super.getBytes(); byte[] bytes = new byte[funcBytes.length+3]; System.arraycopy(funcBytes, 0, bytes, 3, funcBytes.length); // Indicate the mem func bytes[0] = Token.MEM_FUNC.getCode(); IntegerHelper.getTwoBytes(funcBytes.length, bytes, 1); return bytes; }
/** * Gets the token representation of this item in RPN * * @return the bytes applicable to this formula */ byte[] getBytes() { byte[] data = new byte[9]; data[0] = Token.AREA.getCode(); // Use absolute references for columns, so don't bother about // the col relative/row relative bits IntegerHelper.getTwoBytes(rowFirst, data, 1); IntegerHelper.getTwoBytes(rowLast, data, 3); IntegerHelper.getTwoBytes(columnFirst, data, 5); IntegerHelper.getTwoBytes(columnLast, data, 7); return data; }