public void getString(StringBuffer buf) { ParseItem[] subExpression = getSubExpression(); if (subExpression.length == 1) { subExpression[0].getString(buf); } else if (subExpression.length == 2) { subExpression[1].getString(buf); buf.append(':'); subExpression[0].getString(buf); } }
/** * Reads the ptg data from the array starting at the specified position * * @param data the RPN array * @param pos the current position in the array, excluding the ptg identifier * @return the number of bytes read */ public int read(byte[] data, int pos) { // For mem areas, the first four bytes are not used setLength(IntegerHelper.getInt(data[pos+4], data[pos+5])); return 6; }
MemArea memArea = new MemArea(); handleMemoryFunction(memArea);
MemArea memArea = new MemArea(); handleMemoryFunction(memArea);
/** * Reads the ptg data from the array starting at the specified position * * @param data the RPN array * @param pos the current position in the array, excluding the ptg identifier * @return the number of bytes read */ public int read(byte[] data, int pos) { // For mem areas, the first four bytes are not used setLength(IntegerHelper.getInt(data[pos+4], data[pos+5])); return 6; }
public void getString(StringBuffer buf) { ParseItem[] subExpression = getSubExpression(); if (subExpression.length == 1) { subExpression[0].getString(buf); } else if (subExpression.length == 2) { subExpression[1].getString(buf); buf.append(':'); subExpression[0].getString(buf); } }