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, setParsePositionpublic Term(LValue headValue)
public TypeValuePair evaluate() throws EvaluationException
EvaluationExceptionpublic void add(InfixOperator operator, LValue operand)
public void initialize(FormulaContext context) throws EvaluationException
initialize in interface LValueinitialize in class AbstractLValueEvaluationExceptionpublic LValue[] getChildValues()
getChildValues in interface LValuegetChildValues in class AbstractLValuepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isConstant()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface LValueclone in class AbstractLValuejava.lang.CloneNotSupportedExceptionpublic LValue[] getOperands()
public InfixOperator[] getOperators()
public LValue getHeadValue()
public LValue getOptimizedHeadValue()
public ParsePosition getParsePosition()
getParsePosition in interface LValuegetParsePosition in class AbstractLValue