Class NotAStatement

    • Constructor Detail

      • NotAStatement

        public NotAStatement()
    • Method Detail

      • getExpression

        public Expression getExpression()
        Specified by:
        getExpression in interface INotAStatement
        Returns:
        The identifier that is "lonely," i.e. it is not part of a Statement
      • setExpression

        public void setExpression​(IExpression expr)
      • 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