public class Term extends AbstractLValue
Modifier and Type | Method and Description |
---|---|
void |
add(InfixOperator operator,
LValue operand) |
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.
|
String |
toString() |
String |
toString(boolean root) |
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 String toString(boolean root)
public boolean isConstant()
public Object clone() throws CloneNotSupportedException
clone
in interface LValue
clone
in class AbstractLValue
CloneNotSupportedException
public LValue[] getOperands()
public InfixOperator[] getOperators()
public LValue getHeadValue()
public LValue getOptimizedHeadValue()
public ParsePosition getParsePosition()
getParsePosition
in interface LValue
getParsePosition
in class AbstractLValue