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

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
All Implemented Interfaces:
com.ssv.utils.CompoundName<com.ssv.utils.tree.Tree<Expression>>, java.io.Serializable
Direct Known Subclasses:
ExpressionIndexed, ExpressionVariable

public abstract class AssignableVariable
extends Expression

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.ssv.utils.CompoundName
DOT, SLASH
 
Constructor Summary
AssignableVariable(Parser.ParserContext ctx)
           
 
Method Summary
 double evaluate()
          Пересчитывает данный узел, и возвращает результат.
abstract  Scope.Variable getVariable()
           
static Expression makeVariable(java.util.List<ExpressionIndexed.Part> list, Parser.ParserContext ctx)
           
 void set(double value)
           
 
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, toString, wait, wait, wait
 

Constructor Detail

AssignableVariable

public AssignableVariable(Parser.ParserContext ctx)
Method Detail

makeVariable

public static Expression makeVariable(java.util.List<ExpressionIndexed.Part> list,
                                      Parser.ParserContext ctx)

getVariable

public abstract Scope.Variable getVariable()
                                    throws ParserException
Throws:
ParserException

evaluate

public double evaluate()
                throws ParserException
Description copied from class: Expression
Пересчитывает данный узел, и возвращает результат.

Specified by:
evaluate in class Expression
Throws:
ParserException

set

public void set(double value)
         throws ParserException
Throws:
ParserException