Class DefaultDataTable
- java.lang.Object
-
- ObjectTable
-
- org.pentaho.reporting.libraries.formula.lvalues.DefaultDataTable
-
public class DefaultDataTable extends ObjectTable implements DataTable
Creation-Date: 05.11.2006, 13:34:01- Author:
- Thomas Morgner, Cedric Pronzato
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultDataTable()Creates a new table.DefaultDataTable(LValue[][] array)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()TypeValuePairevaluate()ArrayCallbackgetAsArray()LValue[]getChildValues()Returns any dependent lvalues (parameters and operands, mostly).java.lang.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)-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pentaho.reporting.libraries.formula.lvalues.DataTable
getColumnCount, getRowCount
-
-
-
-
Constructor Detail
-
DefaultDataTable
public DefaultDataTable()
Creates a new table.
-
DefaultDataTable
public DefaultDataTable(LValue[][] array)
-
-
Method Detail
-
getParsePosition
public ParsePosition getParsePosition()
- Specified by:
getParsePositionin interfaceLValue
-
setParsePosition
public void setParsePosition(ParsePosition parsePosition)
-
getColumnName
public java.lang.String getColumnName(int column)
- Specified by:
getColumnNamein interfaceDataTable
-
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.
-
getValueAt
public LValue getValueAt(int row, int column)
- Specified by:
getValueAtin interfaceDataTable
-
initialize
public void initialize(FormulaContext context) throws EvaluationException
- Specified by:
initializein interfaceLValue- Throws:
EvaluationException
-
evaluate
public TypeValuePair evaluate() throws EvaluationException
- Specified by:
evaluatein interfaceLValue- Throws:
EvaluationException
-
getAsArray
public ArrayCallback getAsArray()
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
-
getValueType
public Type getValueType()
Querying the value type is only valid *after* the value has been evaluated.- Specified by:
getValueTypein interfaceLValue- Returns:
-
getChildValues
public LValue[] getChildValues()
Returns any dependent lvalues (parameters and operands, mostly).- Specified by:
getChildValuesin interfaceLValue- Returns:
-
isConstant
public boolean isConstant()
Checks whether the LValue is constant. Constant lvalues always return the same value.- Specified by:
isConstantin interfaceLValue- Returns:
-
-