public class Term extends AbstractLValue
Modifier and Type | Method and Description |
---|---|
void |
add(InfixOperator operator,
LValue operand) |
java.lang.Object |
clone() |
TypeValuePair |
evaluate() |
LValue[] |
getChildValues()
Returns any dependent lvalues (parameters and operands, mostly).
|
LValue |
getHeadValue() |
LValue[] |
getOperands() |
InfixOperator[] |
getOperators() |
LValue |
getOptimizedHeadValue()
Allows access to the post optimized head value note that without the optimization, it's difficult to traverse
libformula's object model.
|
ParsePosition |
getParsePosition() |
void |
initialize(FormulaContext context) |
boolean |
isConstant()
Checks whether the LValue is constant.
|
java.lang.String |
toString() |
getContext, getValueType, setParsePosition
public Term(LValue headValue)
public TypeValuePair evaluate() throws EvaluationException
EvaluationException
public void add(InfixOperator operator, LValue operand)
public void initialize(FormulaContext context) throws EvaluationException
initialize
in interface LValue
initialize
in class AbstractLValue
EvaluationException
public LValue[] getChildValues()
getChildValues
in interface LValue
getChildValues
in class AbstractLValue
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isConstant()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface LValue
clone
in class AbstractLValue
java.lang.CloneNotSupportedException
public LValue[] getOperands()
public InfixOperator[] getOperators()
public LValue getHeadValue()
public LValue getOptimizedHeadValue()
public ParsePosition getParsePosition()
getParsePosition
in interface LValue
getParsePosition
in class AbstractLValue