public class IterateOverEStructuralFeatureInstances extends java.lang.Object implements IIteratingSearchOperation
EStructuralFeature elements using an VIATRA Base
indexer. It is assumed that the base indexer has been registered for the selected reference type.| Modifier and Type | Field and Description |
|---|---|
protected java.util.Iterator<java.util.Map.Entry<org.eclipse.emf.ecore.EObject,java.lang.Object>> |
it |
| Constructor and Description |
|---|
IterateOverEStructuralFeatureInstances(int sourcePosition,
int targetPosition,
org.eclipse.emf.ecore.EStructuralFeature feature) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(MatchingFrame frame,
ISearchContext context) |
org.eclipse.emf.ecore.EStructuralFeature |
getFeature() |
IInputKey |
getIteratedInputKey()
Get the
IInputKey which instances this operation iterates upon. |
java.util.List<java.lang.Integer> |
getVariablePositions() |
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. |
void |
onInitialize(MatchingFrame frame,
ISearchContext context)
During the execution of the corresponding plan, the onInitialize callback is evaluated before the execution of
the operation may begin.
|
java.lang.String |
toString() |
protected java.util.Iterator<java.util.Map.Entry<org.eclipse.emf.ecore.EObject,java.lang.Object>> it
public IterateOverEStructuralFeatureInstances(int sourcePosition,
int targetPosition,
org.eclipse.emf.ecore.EStructuralFeature feature)
public org.eclipse.emf.ecore.EStructuralFeature getFeature()
public void onBacktrack(MatchingFrame frame, ISearchContext context) throws LocalSearchException
ISearchOperationISearchOperation.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 ISearchOperationLocalSearchExceptionpublic void onInitialize(MatchingFrame frame, ISearchContext context)
ISearchOperationonInitialize in interface ISearchOperationpublic boolean execute(MatchingFrame frame, ISearchContext context)
execute in interface ISearchOperationpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.List<java.lang.Integer> getVariablePositions()
getVariablePositions in interface ISearchOperationpublic IInputKey getIteratedInputKey()
IIteratingSearchOperationIInputKey which instances this operation iterates upon.getIteratedInputKey in interface IIteratingSearchOperation