org.pentaho.reporting.libraries.formula.lvalues

Class DefaultDataTable

public class DefaultDataTable extends ObjectTable implements DataTable

Creation-Date: 05.11.2006, 13:34:01

Author: Thomas Morgner Cedric Pronzato

Constructor Summary
DefaultDataTable()
Creates a new table.
DefaultDataTable(LValue[][] array)
Method Summary
Objectclone()
TypeValuePairevaluate()
LValue[]getChildValues()
Returns any dependent lvalues (parameters and operands, mostly).
StringgetColumnName(int column)
ParsePositiongetParsePosition()
LValuegetValueAt(int row, int column)
TypegetValueType()
Querying the value type is only valid *after* the value has been evaluated.
voidinitialize(FormulaContext context)
booleanisConstant()
Checks whether the LValue is constant.
voidsetObject(int row, int column, LValue object)
Sets the object for a cell in the table.
voidsetParsePosition(ParsePosition parsePosition)

Constructor Detail

DefaultDataTable

public DefaultDataTable()
Creates a new table.

DefaultDataTable

public DefaultDataTable(LValue[][] array)

Method Detail

clone

public Object clone()

evaluate

public TypeValuePair evaluate()

getChildValues

public LValue[] getChildValues()
Returns any dependent lvalues (parameters and operands, mostly).

Returns:

getColumnName

public String getColumnName(int column)

getParsePosition

public ParsePosition getParsePosition()

getValueAt

public LValue getValueAt(int row, int column)

getValueType

public Type getValueType()
Querying the value type is only valid *after* the value has been evaluated.

Returns:

initialize

public void initialize(FormulaContext context)

isConstant

public boolean isConstant()
Checks whether the LValue is constant. Constant lvalues always return the same value.

Returns:

setObject

public void setObject(int row, int column, LValue object)
Sets the object for a cell in the table. The table is expanded if necessary.

Parameters: row the row index (zero-based). column the column index (zero-based). object the object.

setParsePosition

public void setParsePosition(ParsePosition parsePosition)