Package edu.wisc.game.parser
Class Expression.QualifiedId
java.lang.Object
edu.wisc.game.parser.Expression.Id
edu.wisc.game.parser.Expression.QualifiedId
- All Implemented Interfaces:
Expression,Expression.ArithmeticExpression
- Enclosing interface:
- Expression
public static class Expression.QualifiedId extends Expression.Id
A.B
-
Nested Class Summary
Nested classes/interfaces inherited from interface edu.wisc.game.parser.Expression
Expression.AdditiveExpression, Expression.ArithmeticExpression, Expression.BracketList, Expression.ColonExpression, Expression.ComparisonExpression, Expression.ExList, Expression.Id, Expression.Mapper, Expression.MapTo<T>, Expression.MultiplicativeExpression, Expression.NegationExpression, Expression.Num, Expression.ParenList, Expression.PropMap, Expression.QualifiedId, Expression.RangeExpression, Expression.SerialExpression, Expression.Star, Expression.VarMap, Expression.VarMap2 -
Field Summary
Fields Modifier and Type Field Description Expression.Idprefix -
Method Summary
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<Object>evalSet2(Expression.VarMap2 h)Trying different interpretationsStringtoSrc()StringtoString()Returns bare string (never quotes), so that it can be correctly used in RuleSer.PropertyCondition
-
Field Details
-
Method Details
-
evalSet
Description copied from interface:Expression.ArithmeticExpressionEvaluates this expression for the given values of the variables involved. Can be used when the arguments can have multiple values.- Specified by:
evalSetin interfaceExpression.ArithmeticExpression- Overrides:
evalSetin classExpression.Id- 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
-
evalSet2
Trying different interpretations- Specified by:
evalSet2in interfaceExpression.ArithmeticExpression- Overrides:
evalSet2in classExpression.Id
-
toString
Description copied from class:Expression.IdReturns bare string (never quotes), so that it can be correctly used in RuleSer.PropertyCondition- Overrides:
toStringin classExpression.Id
-
toSrc
- Specified by:
toSrcin interfaceExpression- Overrides:
toSrcin classExpression.Id
-