|
http://www.eteks.com | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.eteks.parser.CompiledExpression | +--com.eteks.jeks.JeksExpression
Cell values for computed expressions in a table.
Constructor Summary | |
JeksExpression(CompiledExpression expression)
|
Method Summary | |
void |
checkCircularity(javax.swing.table.TableModel model,
JeksCell startCell)
Parses recursely all the parameters of this expression to check if computing the formula of the referenced cells won't produce a circularity. |
java.lang.Object |
getValue(Interpreter interpreter)
Returns the value of this expression computed with the computeExpression ()
method. |
void |
invalidateValue()
Invalidates the value stored by this expression to force the computation of the expression next time getValue () will be called. |
void |
invalidateValue(CircularityException ex)
Invalidates the value stored by this expression with with the circularity exception ex . |
Methods inherited from class com.eteks.parser.CompiledExpression |
computeExpression, computeExpression, getDefinition, getExpressionParameter, getExpressionTree, getParameterCount, getParameters |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JeksExpression(CompiledExpression expression)
Method Detail |
public java.lang.Object getValue(Interpreter interpreter)
computeExpression ()
method. This value is computed only at the first call of this method and each time
after a call to invalidateValue ()
.CircularityException
- if this expression can't be computed because
it belongs to a reference circularity.IllegalCellException
- if this expression uses an invalid expression reference (#REF!).java.lang.IllegalArgumentException
- if some parameters used by this expression were forbidden.ArithmeticException
- if a integer division by 0 occured.StackOverflowError
- if the computation of this expression produced a stack overflow.public void invalidateValue()
getValue ()
will be called.public void invalidateValue(CircularityException ex)
ex
. This exception will be thrown when the getValue ()
method will be called next time.ex
- a cicrularity exception. Generally it's the exception thrown by the
checkCircularity ()
method.public void checkCircularity(javax.swing.table.TableModel model, JeksCell startCell) throws CircularityException
startCell
- the coordinates of the cell storing this expression.CircularityException
- if a circurlarity was detected.
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |