public class LValueFunction extends Function implements LValue
Function.Dynamic
Modifier and Type | Method and Description |
---|---|
double |
assign(double value) |
LValue |
bindVariables(Expression expression,
boolean preferLValue) |
char |
id()
Returns a character that helps identify the token, pseudo-token or invokable in question.
|
LValue |
optimize() |
getValue, invokeMethod, toString
getPosition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPosition
public char id()
Identifiable
Tokens: 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 Identifiable
id
in class Function
public double assign(double value) throws EvaluationException
assign
in interface LValue
EvaluationException
public LValue optimize() throws EvaluationException
public LValue bindVariables(Expression expression, boolean preferLValue) throws ParserException
bindVariables
in interface LValue
bindVariables
in interface RValue
bindVariables
in class Function
ParserException