public class EqualsOperator extends ComparisonOperator
| Modifier and Type | Field and Description |
|---|---|
static EqualsOperator |
INSTANCE
An instance of the EqualsOperator.
|
f_asAlias, f_fConditional, f_sSymbol| Modifier | Constructor and Description |
|---|---|
protected |
EqualsOperator()
Construct a EqualsOperator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToTokenTable(TokenTable tokenTable)
Add this operator to the given
TokenTable. |
ComparisonOperator |
flip()
Return the operator to use if this operation needs to
be flipped due to the CohQL statement having the literal
on the left hand side.
|
ComparisonFilter |
makeFilter(Object oLeft,
Object oRight)
Create a
Filter for this BaseOperator using the
specified left and right values. |
ComparisonFilter |
makeFilter(Term termLeft,
Term termRight,
TermWalker walker)
|
addAliases, getAliases, getSymbol, isConditional, makeExtractor, makeExtractor, toString, unmodifiableSetpublic static final EqualsOperator INSTANCE
public ComparisonOperator flip()
ComparisonOperatorflip in class ComparisonOperatorpublic ComparisonFilter makeFilter(Term termLeft, Term termRight, TermWalker walker)
BaseOperatorFilter for this BaseOperator using the
specified left and right Terms.
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 ComparisonOperatortermLeft - the left term to use to build a FiltertermRight - the right term to use to build a Filterwalker - the TermWalker to use to process the left and
right termspublic ComparisonFilter 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<ComparisonFilter>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<ComparisonFilter>tokenTable - the TokenTable to add this operator to