Package edu.wisc.game.parser
Class Expression.BracketList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector<Expression>
edu.wisc.game.parser.Expression.ExList
edu.wisc.game.parser.Expression.BracketList
- All Implemented Interfaces:
- Expression,- Expression.ArithmeticExpression,- Serializable,- Cloneable,- Iterable<Expression>,- Collection<Expression>,- List<Expression>,- RandomAccess
- Enclosing interface:
- Expression
public static class Expression.BracketList
extends Expression.ExList
implements Expression.ArithmeticExpression
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface edu.wisc.game.parser.ExpressionExpression.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 SummaryFields inherited from class java.util.VectorcapacityIncrement, elementCount, elementDataFields inherited from class java.util.AbstractListmodCountFields inherited from interface edu.wisc.game.parser.ExpressionSTAR
- 
Method SummaryModifier and TypeMethodDescriptionEvaluates this expression for the given values of the variables involved.booleanIs this a list suitable for shapes, colors, and other properties in GS 3? That is, a list consisting of just simple (not qualified) IDs and integers.booleanIs this just a list of simple (not qualified) IDs? This is what's allowed for shapes in colors before GS5.map(Expression.Mapper mapper) Applies the mapper to each componenttoSrc()toString()Methods inherited from class edu.wisc.game.parser.Expression.ExListtoSrc, toStringMethods inherited from class java.util.Vectoradd, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.CollectionparallelStream, stream, toArray
- 
Method Details- 
evalSetDescription 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 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
 
- 
evalSet2- Specified by:
- evalSet2in interface- Expression.ArithmeticExpression
 
- 
listAllVars- Specified by:
- listAllVarsin interface- Expression.ArithmeticExpression
 
- 
toString- Overrides:
- toStringin class- Vector<Expression>
 
- 
toSrc- Specified by:
- toSrcin interface- Expression
 
- 
mapApplies the mapper to each component- Specified by:
- mapin interface- Expression
- Throws:
- RuleParseException
 
- 
isGS3Listpublic boolean isGS3List()Is this a list suitable for shapes, colors, and other properties in GS 3? That is, a list consisting of just simple (not qualified) IDs and integers. If it isn't, it has to be interpreted as a GS5 expression.
- 
isSimpleIdListpublic boolean isSimpleIdList()Is this just a list of simple (not qualified) IDs? This is what's allowed for shapes in colors before GS5.
 
-