public class AndOperator extends BaseOperator<AllFilter>
| Modifier and Type | Field and Description |
|---|---|
static AndOperator |
INSTANCE
An instance of the AndOperator.
|
f_asAlias, f_fConditional, f_sSymbol| Modifier | Constructor and Description |
|---|---|
protected |
AndOperator()
Constructs an AndOperator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToTokenTable(TokenTable tokenTable)
Add this operator to the given
TokenTable. |
AllFilter |
makeFilter(Object oLeft,
Object oRight)
Create a
Filter for this BaseOperator using the
specified left and right values. |
protected void |
populateFilterArray(Filter[] aFilterDest,
Filter... aFilterSrc)
Populate the specified target
Filter array with the Filters in the source
array. |
addAliases, getAliases, getSymbol, isConditional, makeExtractor, makeExtractor, makeFilter, toString, unmodifiableSetpublic static final AndOperator INSTANCE
public AllFilter makeFilter(Object oLeft, Object oRight)
BaseOperatorFilter for this BaseOperator using the
specified left and right values.
Note: This method should be thread safe as operators are stored in a static map so may be called by multiple threads.
makeFilter in class BaseOperator<AllFilter>oLeft - the left value to use to build a FilteroRight - the right value to use to build a Filterpublic void addToTokenTable(TokenTable tokenTable)
BaseOperatorTokenTable.
This typically means adding this operator using its
symbol and also adding any aliases.addToTokenTable in class BaseOperator<AllFilter>tokenTable - the TokenTable to add this operator toprotected void populateFilterArray(Filter[] aFilterDest, Filter... aFilterSrc)
Filter array with the Filters in the source
array.
If the any of the Filters in the source array is an AllFilter then rather
than adding the AllFilter itself to the target array all of the filters contained
within the AllFilter are added to the array.aFilterDest - the Filter array to be populatedaFilterSrc - the outer filter to add to the array