public interface PipelineLocationEntry
The location of an entry in a comparator pipeline.
A location essentially contains a unique path to a filter (or other processing stage) in a comparator's pipeline. Its string
representation is of the following form:
<name> ('/' <pos> '-' <name>)*
where the names and zero-based sibling positions of each of this entry's ancestors is pre-pended to this entry.
For example, the path 'result/4-my-post-processing/2-ignore-whitespace-changes
' says that the
ignore-whitespace-changes
entry, is the third entry of the my-post-processing
subchain, which is the
fifth entry in the result
processing chain.
Modifier and Type | Method and Description |
---|---|
int |
getDepth()
The depth of the current entry; the number of parents plus one.
|
java.lang.String |
getName()
The name of the entry.
|
PipelineLocationEntry |
getParent()
The entry's parent or containing entry.
|
int |
getPosition()
The position of this entry within its parent.
|
java.lang.String |
getSource()
The optional source code location of the entry.
|
java.lang.String |
toString()
The path of the entry.
|
PipelineLocationEntry getParent()
int getPosition() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- when there is no parent entry.int getDepth()
java.lang.String getName()
java.lang.String getSource()
java.lang.String toString()
<name> ('/' <pos> '-' <name>)*
For example, the path ' result/4-my-post-processing/2-ignore-whitespace-changes
' says that the
ignore-whitespace-changes
entry, is the third entry of the my-post-processing
subchain, which is
the fifth entry in the result
processing chain.
toString
in class java.lang.Object