Class DefaultDataTable

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, DataTable, LValue

    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 Detail

      • DefaultDataTable

        public DefaultDataTable()
        Creates a new table.
      • DefaultDataTable

        public DefaultDataTable​(LValue[][] array)
    • Method Detail

      • setParsePosition

        public void setParsePosition​(ParsePosition parsePosition)
      • getColumnName

        public java.lang.String getColumnName​(int column)
        Specified by:
        getColumnName in interface DataTable
      • 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.
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Specified by:
        clone in interface LValue
        Throws:
        java.lang.CloneNotSupportedException
      • getValueType

        public Type getValueType()
        Querying the value type is only valid *after* the value has been evaluated.
        Specified by:
        getValueType in interface LValue
        Returns:
      • getChildValues

        public LValue[] getChildValues()
        Returns any dependent lvalues (parameters and operands, mostly).
        Specified by:
        getChildValues in interface LValue
        Returns:
      • isConstant

        public boolean isConstant()
        Checks whether the LValue is constant. Constant lvalues always return the same value.
        Specified by:
        isConstant in interface LValue
        Returns: