Class TableExpression

    • Constructor Detail

      • TableExpression

        public TableExpression​(String text)
        Constructs a new TableExpression instance with double return type.
        Parameters:
        text - The expression text.
      • TableExpression

        public TableExpression​(String text,
                               ExpressionReturnType returnType)
        Constructs a new TableExpression instance.
        Parameters:
        text - The expression text.
        returnType - The return type of the expression.
      • TableExpression

        public TableExpression​(String text,
                               ExpressionReturnType returnType,
                               TableExpressionNormalization normalization)
        Constructs a new TableExpression instance.
        Parameters:
        text - The expression text.
        returnType - The return type of the expression.
        normalization - The normalization, if any, to apply once the table has been filled, but before assignment.
    • Method Detail

      • copy

        public Expression copy()
        Creates a copy of the expression. The new expression will not have an owner.
        Specified by:
        copy in interface Expression
        Returns:
        A copy of the expression.
      • getText

        public String getText()
        Gets the expression text, which is run for each cell in the table.
        Specified by:
        getText in interface Expression
      • setText

        public void setText​(String value)
        Sets the expression text, which is run for each cell in the table.
        Specified by:
        setText in interface Expression
      • getNormalization

        public TableExpressionNormalization getNormalization()
        Gets of sets the normalization method, if any, to use once the Table values have been generated, but before assignment to a node.
      • setNormalization

        public void setNormalization​(TableExpressionNormalization value)
        Gets of sets the normalization method, if any, to use once the Table values have been generated, but before assignment to a node.
      • getOwner

        public Node getOwner()
        Gets the current owner, if assigned to a node. An expression cannot be modified when it is assigned to a node.
        Specified by:
        getOwner in interface DistributionExpression