public abstract class ExtendOperation<T> extends java.lang.Object implements ISearchOperation
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. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getVariablePositions, onInitialize
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