|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jfree.formula.lvalues.AbstractLValue
org.jfree.formula.lvalues.Term
public class Term
An term is a list of LValues connected by operators. For the sake of efficiency, this is not stored as tree. We store the term as a list in the following format: (headValue)(OP value)* ...
| Constructor Summary | |
|---|---|
Term(LValue headValue)
|
|
| Method Summary | |
|---|---|
void |
add(InfixOperator operator,
LValue operand)
|
java.lang.Object |
clone()
|
TypeValuePair |
evaluate()
|
LValue[] |
getChildValues()
Returns any dependent lvalues (parameters and operands, mostly). |
LValue |
getHeadValue()
|
InfixOperator[] |
getOperands()
|
LValue[] |
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. |
LValue[] |
getOptimizedOperands()
Allows access to the post optimized operand array |
InfixOperator[] |
getOptimizedOperators()
Allows access to the post optimized operator array |
void |
initialize(FormulaContext context)
|
boolean |
isConstant()
Checks, whether the LValue is constant. |
java.lang.String |
toString()
|
| Methods inherited from class org.jfree.formula.lvalues.AbstractLValue |
|---|
getContext, getValueType |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Term(LValue headValue)
| Method Detail |
|---|
public TypeValuePair evaluate()
throws EvaluationException
EvaluationException
public 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 InfixOperator[] getOperands()
public LValue[] getOperators()
public LValue getHeadValue()
public LValue getOptimizedHeadValue()
public InfixOperator[] getOptimizedOperators()
public LValue[] getOptimizedOperands()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||