Package edu.wisc.game.parser

## Interface Expression.ArithmeticExpression

- All Superinterfaces:
    `Expression`
  All Known Implementing Classes:
    `Expression.AdditiveExpression`, `Expression.BracketList`, `Expression.EqualityExpression`, `Expression.Id`, `Expression.MultiplicativeExpression`, `Expression.NegationExpression`, `Expression.Num`, `Expression.QualifiedId`, `Expression.SerialExpression`
  Enclosing interface:
    Expression

      public static interface Expression.ArithmeticExpression
      extends Expression

  An arithmetic expression is composed of variables, constants, and arithmetic operations; parentheses can be used for ordering operations. The value of the expression can be computed for any given set of variable values (unless a division by zero etc happens).

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface edu.wisc.game.parser.Expression

      `Expression.AdditiveExpression, Expression.ArithmeticExpression, Expression.BracketList, Expression.ColonExpression, Expression.EqualityExpression, Expression.ExList, Expression.Id, Expression.MultiplicativeExpression, Expression.NegationExpression, Expression.Num, Expression.ParenList, Expression.QualifiedId, Expression.RangeExpression, Expression.SerialExpression, Expression.Star`

  - ### Field Summary

    - ### Fields inherited from interface edu.wisc.game.parser.Expression

      `STAR`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `HashSet<Integer>` | `evalSet​(HashMap<String,​HashSet<Integer>> h)` | Evaluates this expression for the given values of the variables involved.
    `HashSet<String>` | `listAllVars()` |

    - ### Methods inherited from interface edu.wisc.game.parser.Expression

      `toSrc`

- - ### Method Detail

    - #### evalSet

          HashSet<Integer> evalSet​(HashMap<String,​HashSet<Integer>> h)

      Evaluates this expression for the given values of the variables involved. Can be used when the arguments can have multiple values.
      Parameters:
        `h` - The hash map that contains for each variable the possible set of its values.
      Returns:
        the set of the possible values of the expression, or an empty set if the expression uses a variable whose value is not in h

    - #### listAllVars

          HashSet<String> listAllVars()