Package edu.wisc.game.parser

## Class Expression.Num

- java.lang.Object
- - edu.wisc.game.parser.Expression.Num

- All Implemented Interfaces:
    `Expression`, `Expression.ArithmeticExpression`
  Enclosing interface:
    Expression

      public static class Expression.Num
      extends Object
      implements Expression.ArithmeticExpression

  A numeric constant

- - ### 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
    Modifier and Type | Field | Description
    --- | --- | ---
    `int` | `nVal` |

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

      `STAR`

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `Num​(int n)` |

  - ### Method Summary

    All Methods Instance Methods Concrete 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()` |
    `String` | `toSrc()` |
    `String` | `toString()` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### nVal

          public final int nVal

  - ### Constructor Detail

    - #### Num

          public Num​(int n)

  - ### Method Detail

    - #### evalSet

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

      Description copied from interface: `Expression.ArithmeticExpression`
      Evaluates this expression for the given values of the variables involved. Can be used when the arguments can have multiple values.
      Specified by:
        `evalSet` in interface `Expression.ArithmeticExpression`
      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

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### toSrc

          public String toSrc()

      Specified by:
        `toSrc` in interface `Expression`

    - #### listAllVars

          public HashSet<String> listAllVars()

      Specified by:
        `listAllVars` in interface `Expression.ArithmeticExpression`