com.ssv.test.airbase.contest.expressions
Class ExpressionIndexed

java.lang.Object
  extended by com.ssv.utils.tree.Tree<Leaf>
      extended by com.ssv.utils.tree.BinaryTree<Expression>
          extended by com.ssv.test.airbase.contest.Expression
              extended by com.ssv.test.airbase.contest.expressions.AssignableVariable
                  extended by com.ssv.test.airbase.contest.expressions.ExpressionIndexed
All Implemented Interfaces:
com.ssv.utils.CompoundName<com.ssv.utils.tree.Tree<Expression>>, java.io.Serializable

public class ExpressionIndexed
extends AssignableVariable

This expression represents indexed variable, like a[x]

See Also:
Serialized Form

Nested Class Summary
static class ExpressionIndexed.ExpressionPart
           
static class ExpressionIndexed.NumPart
           
static interface ExpressionIndexed.Part
           
static class ExpressionIndexed.StringPart
           
 
Field Summary
 
Fields inherited from interface com.ssv.utils.CompoundName
DOT, SLASH
 
Constructor Summary
ExpressionIndexed(java.util.List<ExpressionIndexed.Part> parts, Parser.ParserContext ctx)
           
 
Method Summary
 Scope.Variable getVariable()
           
 java.lang.String toString()
           
 
Methods inherited from class com.ssv.test.airbase.contest.expressions.AssignableVariable
evaluate, makeVariable, set
 
Methods inherited from class com.ssv.test.airbase.contest.Expression
ctx
 
Methods inherited from class com.ssv.utils.tree.BinaryTree
getLeft, getNode, getRight, infix, infixInverted, main, print, setLeft, setRight, size
 
Methods inherited from class com.ssv.utils.tree.Tree
add, format, format, format, getLastToken, getParent, getPrefix, getToken, isTerminal, iterator, numTokens, postfix, postfix, prefix, prefix, printPostfix, printPrefix, remove, toArray
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExpressionIndexed

public ExpressionIndexed(java.util.List<ExpressionIndexed.Part> parts,
                         Parser.ParserContext ctx)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getVariable

public Scope.Variable getVariable()
                           throws ParserException
Specified by:
getVariable in class AssignableVariable
Throws:
ParserException