public abstract class Expression
extends java.lang.Object
ExpressionVisitor
in order for tree visits to work correctly.| Constructor and Description |
|---|
Expression() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
emitSql(java.lang.StringBuilder sb,
java.lang.String tableAlias)
Deprecated.
|
void |
gatherExpressions(int depth,
java.util.Map<org.ojai.FieldPath,java.util.List<NaryOperator>> topRelations,
java.util.Set<Expression> otherPredicates)
TODO: doc
|
abstract boolean |
structuralEquals(Expression e)
Check to see if the two expressions are equal.
|
abstract int |
structuralHashCode()
Generate the hash code for the Expression.
|
java.lang.String |
toString() |
abstract void |
visit(ExpressionVisitor ev)
Visit this node.
|
@Deprecated
public abstract void emitSql(java.lang.StringBuilder sb,
java.lang.String tableAlias)
sb - where to write totableAlias - the table alias to use for field namespublic abstract boolean structuralEquals(Expression e)
e - the other expression to compare withpublic abstract int structuralHashCode()
public abstract void visit(ExpressionVisitor ev)
ev - the visitorpublic void gatherExpressions(int depth,
java.util.Map<org.ojai.FieldPath,java.util.List<NaryOperator>> topRelations,
java.util.Set<Expression> otherPredicates)
depth - topPredicates - otherPredicates - public java.lang.String toString()
toString in class java.lang.Object