Uses of Interface
edu.wisc.game.parser.Expression
| Package | Description |
|---|---|
| edu.wisc.game.parser |
Tools for parsing rule set descriptions
|
-
Uses of Expression in edu.wisc.game.parser
Subinterfaces of Expression in edu.wisc.game.parser Modifier and Type Interface Description static interfaceExpression.ArithmeticExpressionAn arithmetic expression is composed of variables, constants, and arithmetic operations; parentheses can be used for ordering operations.Classes in edu.wisc.game.parser that implement Expression Modifier and Type Class Description static classExpression.AdditiveExpressionstatic classExpression.BracketListstatic classExpression.ColonExpressionId:ArithmeticExpression; used in GS 3static classExpression.ComparisonExpressionHas exactly two operands, and the operator is '=='static classExpression.ExListCan be overridden as neededstatic classExpression.IdA variable.static classExpression.MultiplicativeExpressionstatic classExpression.NegationExpression!E evaluates to [1] if E is an empty set, or to [] otherwisestatic classExpression.NumA numeric constantstatic classExpression.ParenListstatic classExpression.QualifiedIdA.Bstatic classExpression.RangeExpression[Num..Num]static classExpression.SerialExpressionAdditive or multiplicativestatic classExpression.StarA Star expression is simply "*".Fields in edu.wisc.game.parser declared as Expression Modifier and Type Field Description ExpressionExpression.ColonExpression. arexMethods in edu.wisc.game.parser that return Expression Modifier and Type Method Description ExpressionExpression.Mapper. apply(Expression ex)ExpressionExpression.AdditiveExpression. map(Expression.Mapper mapper)Applies the mapper to each componentExpressionExpression.ColonExpression. map(Expression.Mapper mapper)ExpressionExpression.ComparisonExpression. map(Expression.Mapper mapper)Applies the mapper to each componentExpressionExpression.Id. map(Expression.Mapper mapper)ExpressionExpression. map(Expression.Mapper mapper)ExpressionExpression.MultiplicativeExpression. map(Expression.Mapper mapper)Applies the mapper to each componentExpressionExpression.NegationExpression. map(Expression.Mapper mapper)Applies the mapper to each componentExpressionExpression.Num. map(Expression.Mapper mapper)ExpressionExpression.RangeExpression. map(Expression.Mapper mapper)ExpressionExpression.Star. map(Expression.Mapper mapper)static ExpressionExpression. mkCounterOrAtom(Vector<Token> tokens)Extracts one of the sections of a rule line: either the leading counter (int or star), or one of the atoms (paren lists that may include arithmetic expressions or stars)Methods in edu.wisc.game.parser with parameters of type Expression Modifier and Type Method Description ExpressionExpression.Mapper. apply(Expression ex)