public abstract class Operator extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
ALL
The ANY and ALL enumerator.
|
static int |
ANY
The ANY and ALL enumerator.
|
static int |
NONE
The ANY and ALL enumerator.
|
Modifier | Constructor and Description |
---|---|
protected |
Operator(String op)
Constructs the Operator.
|
protected |
Operator(String op,
int precedence) |
protected |
Operator(String op,
int precedence,
int set_type) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object ob) |
abstract TObject |
eval(TObject ob1,
TObject ob2,
GroupResolver group,
VariableResolver resolver,
QueryContext context) |
static Operator |
get(String op)
Returns an Operator with the given string.
|
Operator |
getSubQueryForm(int type)
Returns the ANY or ALL form of this operator.
|
Operator |
getSubQueryForm(String type_str)
Same as above only it handles the type as a string.
|
Operator |
inverse()
Returns the inverse operator of this operator.
|
boolean |
is(String given_op)
Returns true if this operator is equal to the operator string.
|
boolean |
isCondition() |
boolean |
isLogical() |
boolean |
isMathematical() |
boolean |
isNot() |
boolean |
isNotInversible()
Returns true if this operator is not inversible.
|
boolean |
isPattern() |
boolean |
isSubQuery() |
boolean |
isSubQueryForm(int type)
Given a parameter of either NONE, ANY, ALL or SINGLE, this returns true
if this operator is of the given type.
|
int |
precedence() |
TType |
returnTType()
The type of object this Operator evaluates to.
|
Operator |
reverse()
Returns an Operator that is the reverse of this Operator.
|
String |
toString() |
public static final int NONE
public static final int ANY
public static final int ALL
protected Operator(String op)
protected Operator(String op, int precedence)
protected Operator(String op, int precedence, int set_type)
public boolean is(String given_op)
public abstract TObject eval(TObject ob1, TObject ob2, GroupResolver group, VariableResolver resolver, QueryContext context)
public int precedence()
public boolean isCondition()
public boolean isMathematical()
public boolean isPattern()
public boolean isLogical()
public boolean isNot()
public boolean isSubQuery()
public Operator reverse()
public boolean isNotInversible()
public Operator inverse()
public boolean isSubQueryForm(int type)
public Operator getSubQueryForm(int type)
public Operator getSubQueryForm(String type_str)
public TType returnTType()
Copyright © 2015. All rights reserved.