Class ArrayAssignmentStatement

    • Field Detail

      • _arrayAccessExpression

        protected ArrayAccess _arrayAccessExpression
        The left-hand-side expression
      • _expression

        protected Expression _expression
        The right-hand-side expression
      • _compoundStatement

        private boolean _compoundStatement
    • Constructor Detail

      • ArrayAssignmentStatement

        public ArrayAssignmentStatement()
    • Method Detail

      • setArrayAccessExpression

        public void setArrayAccessExpression​(ArrayAccess lhsExpression)
      • setExpression

        public void setExpression​(Expression expression)
        Parameters:
        expression - The right-hand-side expression of the assignment.
      • execute

        public java.lang.Object execute()
        Execute the expression. Evaluates the RHS and assigns the resulting value to the symbol referenced by the LHS identifier.
        Specified by:
        execute in interface IStatement
        Overrides:
        execute in class Statement
      • toString

        public java.lang.String toString()
        Description copied from class: Statement
        Subclasses should return a String representing the parsed statement.
        Specified by:
        toString in class Statement
      • setCompoundStatement

        public void setCompoundStatement​(boolean compoundStatement)
      • isCompoundStatement

        public boolean isCompoundStatement()