public class UnboundVariable extends PseudoToken implements LValue
| Constructor and Description |
|---|
UnboundVariable(int position,
String name) |
| Modifier and Type | Method and Description |
|---|---|
double |
assign(double value) |
RValue |
bind(Expression expression,
boolean isLValue) |
LValue |
bindVariables(Expression expression,
boolean preferLValue) |
double |
getValue() |
char |
id()
Returns a character that helps identify the token, pseudo-token or invokable in question.
|
LValue |
optimize() |
String |
toString() |
getPositionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPositionpublic final String name
public UnboundVariable(int position,
String name)
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
id in interface Identifiableid in class PseudoTokenpublic double getValue()
throws EvaluationException
getValue in interface RValueEvaluationExceptionpublic LValue optimize() throws EvaluationException
optimize in interface LValueoptimize in interface RValueEvaluationExceptionpublic double assign(double value)
throws EvaluationException
assign in interface LValueEvaluationExceptionpublic RValue bind(Expression expression, boolean isLValue) throws ParserException
ParserExceptionpublic LValue bindVariables(Expression expression, boolean preferLValue) throws ParserException
bindVariables in interface LValuebindVariables in interface RValueParserExceptionCopyright © 2010-2014. All Rights Reserved.