public class DefaultDataTable extends ObjectTable implements DataTable
Constructor and Description |
---|
DefaultDataTable()
Creates a new table.
|
DefaultDataTable(LValue[][] array) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
TypeValuePair |
evaluate() |
ArrayCallback |
getAsArray() |
LValue[] |
getChildValues()
Returns any dependent lvalues (parameters and operands, mostly).
|
String |
getColumnName(int column) |
ParsePosition |
getParsePosition() |
LValue |
getValueAt(int row,
int column) |
Type |
getValueType()
Querying the value type is only valid *after* the value has been evaluated.
|
void |
initialize(FormulaContext context) |
boolean |
isConstant()
Checks whether the LValue is constant.
|
void |
setObject(int row,
int column,
LValue object)
Sets the object for a cell in the table.
|
void |
setParsePosition(ParsePosition parsePosition) |
String |
toString() |
clear, clearRow, copyColumn, copyRow, ensureCapacity, ensureRowCapacity, equals, getColumnCount, getColumnIncrement, getData, getObject, getRowCount, getRowIncrement, hashCode, readSerializedData, setData, setObject, writeSerializedData
finalize, getClass, notify, notifyAll, wait, wait, wait
getColumnCount, getRowCount
public DefaultDataTable()
public DefaultDataTable(LValue[][] array)
public ParsePosition getParsePosition()
getParsePosition
in interface LValue
public void setParsePosition(ParsePosition parsePosition)
public String getColumnName(int column)
getColumnName
in interface DataTable
public void setObject(int row, int column, LValue object)
row
- the row index (zero-based).column
- the column index (zero-based).object
- the object.public LValue getValueAt(int row, int column)
getValueAt
in interface DataTable
public void initialize(FormulaContext context) throws EvaluationException
initialize
in interface LValue
EvaluationException
public TypeValuePair evaluate() throws EvaluationException
evaluate
in interface LValue
EvaluationException
public ArrayCallback getAsArray()
public Object clone() throws CloneNotSupportedException
clone
in interface LValue
clone
in class Object
CloneNotSupportedException
public Type getValueType()
getValueType
in interface LValue
public LValue[] getChildValues()
getChildValues
in interface LValue
public boolean isConstant()
isConstant
in interface LValue
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.