public class InOperator extends BaseOperator<Filter>
This operator creates instances of InFilter or
InKeySetFilter depending on the left hand argument
passed to the realize method.
| Modifier and Type | Field and Description |
|---|---|
static InOperator |
INSTANCE
An instance of the InOperator.
|
f_asAlias, f_fConditional, f_sSymbol| Modifier | Constructor and Description |
|---|---|
protected |
InOperator()
Construct a InOperator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToTokenTable(TokenTable tokenTable)
Add this operator to the given
TokenTable. |
Filter |
makeFilter(Object oLeft,
Object oRight)
Create a
Filter for this BaseOperator using the
specified left and right values. |
addAliases, getAliases, getSymbol, isConditional, makeExtractor, makeExtractor, makeFilter, toString, unmodifiableSetpublic static final InOperator INSTANCE
public Filter 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<Filter>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<Filter>tokenTable - the TokenTable to add this operator to