Class MapAssignmentStatement

java.lang.Object
gw.internal.gosu.parser.ParsedElement
gw.internal.gosu.parser.Statement
gw.internal.gosu.parser.statements.MapAssignmentStatement
All Implemented Interfaces:
IParsedElement, IStatement, IMapAssignmentStatement

public final class MapAssignmentStatement extends Statement implements IMapAssignmentStatement
  • Field Details

    • _mapAccessExpression

      protected MapAccess _mapAccessExpression
      The left-hand-side expression
    • _expression

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

      private boolean _compoundStatement
  • Constructor Details

    • MapAssignmentStatement

      public MapAssignmentStatement()
  • Method Details

    • getMapAccessExpression

      public MapAccess getMapAccessExpression()
      Specified by:
      getMapAccessExpression in interface IMapAssignmentStatement
    • setMapAccessExpression

      public void setMapAccessExpression(MapAccess lhsExpression)
    • getExpression

      public Expression getExpression()
      Specified by:
      getExpression in interface IMapAssignmentStatement
      Returns:
      The right-hand-side expression of the assignment.
    • setExpression

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

      public 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 String toString()
      Description copied from class: Statement
      Subclasses should return a String representing the parsed statement.
      Specified by:
      toString in class Statement
    • getLeastSignificantTerminalStatement_internal

      protected ITerminalStatement getLeastSignificantTerminalStatement_internal(boolean[] bAbsolute)
      Specified by:
      getLeastSignificantTerminalStatement_internal in class Statement
    • setCompoundStatement

      public void setCompoundStatement(boolean compoundStatement)
    • isCompoundStatement

      public boolean isCompoundStatement()