Class ArrayExpression

  • All Implemented Interfaces:
    Serializable

    public class ArrayExpression
    extends Expression
    Expression representing an input array of expressions (or at least some of the array is of expressions).
    See Also:
    Serialized Form
    • Constructor Detail

      • ArrayExpression

        public ArrayExpression​(Expression[] elements)
    • Method Detail

      • getElement

        public Expression getElement​(int index)
        Accessor for an element of the array.
        Parameters:
        index - The index of the element in the array
        Returns:
        Element
      • getArraySize

        public int getArraySize()
      • bind

        public Symbol bind​(SymbolTable symtbl)
        Method to bind the expression to the symbol table as appropriate.
        Specified by:
        bind in class Expression
        Parameters:
        symtbl - Symbol table
        Returns:
        The symbol for this expression