Interface ISearchOperation.ISearchOperationExecutor
- All Known Implementing Classes:
CheckOperationExecutor,ExtendOperationExecutor,SingleValueExtendOperationExecutor
- Enclosing interface:
ISearchOperation
public static interface ISearchOperation.ISearchOperationExecutor
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute(MatchingFrame frame, ISearchContext context) Returns the stateless operation this executor was initialized fromvoidonBacktrack(MatchingFrame frame, ISearchContext context) After the execution of the operation failed andexecute(MatchingFrame, ISearchContext)returns false, the onBacktrack callback is evaluated.voidonInitialize(MatchingFrame frame, ISearchContext context) During the execution of the corresponding plan, the onInitialize callback is evaluated before the execution of the operation may begin.
-
Method Details
-
getOperation
ISearchOperation getOperation()Returns the stateless operation this executor was initialized from -
onInitialize
During the execution of the corresponding plan, the onInitialize callback is evaluated before the execution of the operation may begin. Operations may use this method to initialize its internal data structures.- Throws:
InterpreterRuntimeException
-
onBacktrack
After the execution of the operation failed andexecute(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.- Throws:
InterpreterRuntimeException
-
execute
- Parameters:
frame-context-- Returns:
- true if successful, or false if backtracking needed
- Throws:
InterpreterRuntimeException
-