public class IterateOverContainers extends java.lang.Object implements ISearchOperation
ISearchOperation.ISearchOperationExecutor| Constructor and Description |
|---|
IterateOverContainers(int containerPosition,
int sourcePosition,
boolean transitive) |
| Modifier and Type | Method and Description |
|---|---|
ISearchOperation.ISearchOperationExecutor |
createExecutor()
Initializes a new operation executor for the given operation.
|
java.util.List<java.lang.Integer> |
getVariablePositions() |
java.lang.String |
toString() |
java.lang.String |
toString(java.util.function.Function<java.lang.Integer,java.lang.String> variableMapping)
Creates a string representation of the search operation by replacing the variable numbers according to the
parameter function.
|
public IterateOverContainers(int containerPosition,
int sourcePosition,
boolean transitive)
containerPosition - the position of the variable storing the found parent elementssourcePosition - the position of the variable storing the selected element; must be boundtransitive - if false, only the direct container is returned; otherwise all containerspublic ISearchOperation.ISearchOperationExecutor createExecutor()
ISearchOperationcreateExecutor in interface ISearchOperationpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(java.util.function.Function<java.lang.Integer,java.lang.String> variableMapping)
ISearchOperationISearchOperation.getVariablePositions(); otherwise a NullPointerException will be
thrown during the calculation of the string.toString in interface ISearchOperationpublic java.util.List<java.lang.Integer> getVariablePositions()
getVariablePositions in interface ISearchOperation