net.sf.jec
Class InvertibleOperator
java.lang.Object
net.sf.jec.Operator
net.sf.jec.InvertibleOperator
- Direct Known Subclasses:
- AccessorOperator, IndexerOperator
- public abstract class InvertibleOperator
- extends Operator
Abstract class parent of every invertible operator. An invertible operator
is an operator able to perform the inverse function. Thus, being y=OP.apply(x)
is true that x=OP.applyInverse(y)
- Author:
- mballesteros
Method Summary |
void |
applyInverse(java.lang.Object rootCtx,
java.lang.Object ctx,
java.lang.Object value)
|
protected abstract void |
inverseMap(java.lang.Object rootCtx,
java.lang.Object ctx,
java.lang.Object value)
Sets the given value if this operator is at the end of the operator chain
or just resolves the context object and passes it to the next operator in
the chain. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InvertibleOperator
public InvertibleOperator()
- Creates a new operator that nest another operator
InvertibleOperator
public InvertibleOperator(Operator nestedOp)
- Creates a new operator that nest another operator
applyInverse
public final void applyInverse(java.lang.Object rootCtx,
java.lang.Object ctx,
java.lang.Object value)
throws EvaluationException
- Throws:
EvaluationException
inverseMap
protected abstract void inverseMap(java.lang.Object rootCtx,
java.lang.Object ctx,
java.lang.Object value)
throws EvaluationException
- Sets the given value if this operator is at the end of the operator chain
or just resolves the context object and passes it to the next operator in
the chain.
- Parameters:
rootCtx
- The root context, needed for operators that require
expression evaluation from root point. Example: Indexer operatorsctx
- The current context where the operator will work overvalue
- The value to set.
- Throws:
EvaluationException
Copyright © 2003 SourceForge. All Rights Reserved.