public abstract class ExtendOperation<T> extends java.lang.Object implements ISearchOperation
Modifier and Type | Field and Description |
---|---|
protected java.util.Iterator<T> |
it |
protected int |
position |
Constructor and Description |
---|
ExtendOperation(int position) |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(MatchingFrame frame,
ISearchContext context) |
void |
onBacktrack(MatchingFrame frame,
ISearchContext context)
After the execution of the operation failed and
ISearchOperation.execute(MatchingFrame, ISearchContext) returns false, the onBacktrack
callback is evaluated. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getVariablePositions, onInitialize
protected int position
protected java.util.Iterator<T> it
public void onBacktrack(MatchingFrame frame, ISearchContext context)
ISearchOperation
ISearchOperation.execute(MatchingFrame, ISearchContext)
returns false, the onBacktrack
callback is evaluated. Operations may use this method to clean up any temporary structures, and make the
operation ready for a new execution.onBacktrack
in interface ISearchOperation
public boolean execute(MatchingFrame frame, ISearchContext context)
execute
in interface ISearchOperation