public class Sequence extends Node
| Constructor and Description |
|---|
Sequence(int position,
RValue... sequence) |
| Modifier and Type | Method and Description |
|---|---|
RValue |
bindVariables(Expression expression,
boolean preferLValue) |
double |
getValue() |
char |
id()
Returns a character that helps identify the token, pseudo-token or invokable in question.
|
RValue |
optimize() |
String |
toString() |
getPositionpublic Sequence(int position,
RValue... sequence)
public char id()
IdentifiableTokens: i - IdentifierToken 0 - NumberToken o - OperatorToken \0 - NullToken CharacterTokens are returned literally PseudoTokens: p - UnaryOperator V - UnboundVariable Nodes: c - Constant v - Variable f - Function l - LValueFunction s - Sequence I - Conditional w - While F - For r - Return b - Break (includes continue) S - SimpleFor C - Switch
public double getValue()
throws EvaluationException
EvaluationExceptionpublic RValue optimize() throws EvaluationException
optimize in interface RValueoptimize in class NodeEvaluationExceptionpublic RValue bindVariables(Expression expression, boolean preferLValue) throws ParserException
bindVariables in interface RValuebindVariables in class NodeParserExceptionCopyright © 2010-2014. All Rights Reserved.