Class DefaultDataTable
java.lang.Object
ObjectTable
org.pentaho.reporting.libraries.formula.lvalues.DefaultDataTable
- All Implemented Interfaces:
Serializable
,Cloneable
,DataTable
,LValue
Creation-Date: 05.11.2006, 13:34:01
- Author:
- Thomas Morgner, Cedric Pronzato
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
evaluate()
LValue[]
Returns any dependent lvalues (parameters and operands, mostly).getColumnName
(int column) getValueAt
(int row, int column) Querying the value type is only valid *after* the value has been evaluated.void
initialize
(FormulaContext context) boolean
Checks whether the LValue is constant.void
Sets the object for a cell in the table.void
setParsePosition
(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 Details
-
DefaultDataTable
public DefaultDataTable()Creates a new table. -
DefaultDataTable
-
-
Method Details
-
getParsePosition
- Specified by:
getParsePosition
in interfaceLValue
-
setParsePosition
-
getColumnName
- Specified by:
getColumnName
in interfaceDataTable
-
setObject
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
- Specified by:
getValueAt
in interfaceDataTable
-
initialize
- Specified by:
initialize
in interfaceLValue
- Throws:
EvaluationException
-
evaluate
- Specified by:
evaluate
in interfaceLValue
- Throws:
EvaluationException
-
getAsArray
-
clone
- Specified by:
clone
in interfaceLValue
- Throws:
CloneNotSupportedException
-
getValueType
Querying the value type is only valid *after* the value has been evaluated.- Specified by:
getValueType
in interfaceLValue
- Returns:
-
getChildValues
Returns any dependent lvalues (parameters and operands, mostly).- Specified by:
getChildValues
in interfaceLValue
- Returns:
-
isConstant
public boolean isConstant()Checks whether the LValue is constant. Constant lvalues always return the same value.- Specified by:
isConstant
in interfaceLValue
- Returns:
-