public abstract static class SearchCompiler.AbstractBinaryMatch extends SearchCompiler.Match
Modifier and Type | Field and Description |
---|---|
protected SearchCompiler.Match |
lhs |
protected SearchCompiler.Match |
rhs |
Modifier | Constructor and Description |
---|---|
protected |
AbstractBinaryMatch(SearchCompiler.Match lhs,
SearchCompiler.Match rhs)
Constructs a new
BinaryMatch . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
SearchCompiler.Match |
getLhs()
Returns left hand side.
|
SearchCompiler.Match |
getRhs()
Returns right hand side.
|
int |
hashCode() |
<T,U> U |
map(Function<SearchCompiler.Match,T> mapper,
BiFunction<T,T,U> operator)
First applies
mapper to both sides and then applies operator on the two results. |
protected static String |
parenthesis(SearchCompiler.Match m) |
match, match, test, validate
protected final SearchCompiler.Match lhs
protected final SearchCompiler.Match rhs
protected AbstractBinaryMatch(SearchCompiler.Match lhs, SearchCompiler.Match rhs)
BinaryMatch
.lhs
- Left hand siderhs
- Right hand sidepublic final SearchCompiler.Match getLhs()
public final SearchCompiler.Match getRhs()
public <T,U> U map(Function<SearchCompiler.Match,T> mapper, BiFunction<T,T,U> operator)
mapper
to both sides and then applies operator
on the two results.T
- the type of the intermediate resultU
- the type of the resultmapper
- the mapping functionoperator
- the operatoroperator.apply(mapper.apply(lhs), mapper.apply(rhs))
protected static String parenthesis(SearchCompiler.Match m)