public class MergeFlatByOrderParser extends MergeByOrderParser
parser
Constructor and Description |
---|
MergeFlatByOrderParser(@NotNull Parser parser)
Construct a new parser that filters the results to have no dominance between
etcher.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
check(@NotNull Tree previous,
@NotNull Tree next)
Check if the down-structure of the given
next can be alongside with the
given previous in its structure. |
parse
public MergeFlatByOrderParser(@NotNull @NotNull Parser parser)
parser
- the parser to be wrapped by the constructed parser.java.lang.NullPointerException
- if the given parser
is null.protected boolean check(@NotNull @NotNull Tree previous, @NotNull @NotNull Tree next)
MergeByOrderParser
next
can be alongside with the
given previous
in its structure.check
in class MergeByOrderParser
previous
- the previous tree that is always wins.next
- the slave tree that might win or might lose depending on if it
clashes with the previous or not.next
can be with the given previous
.