| java.lang.Object org.josql.expressions.Expression org.josql.expressions.BinaryExpression
All known Subclasses: org.josql.expressions.IsNullExpression, org.josql.expressions.EqualsExpression, org.josql.expressions.GTLTExpression, org.josql.expressions.BetweenExpression, org.josql.expressions.InExpression, org.josql.expressions.AndOrExpression, org.josql.expressions.LikeExpression,
BinaryExpression | abstract public class BinaryExpression extends Expression (Code) | | Super-class of Expressions that return a binary result.
A binary expression must always have a LHS. The RHS is optional.
|
getExpectedReturnType | public Class getExpectedReturnType(Query q)(Code) | | Return the expected return type from this expression.
Parameters: q - The Query object. The class of the return type, this method ALWAYS returns Boolean.class . |
getLeft | public Expression getLeft()(Code) | | Get the LHS.
The LHS of the expression. |
getRight | public Expression getRight()(Code) | | Get the RHS.
The RHS of the expression. |
hasFixedResult | public boolean hasFixedResult(Query q)(Code) | | Return whether this expression, and more specifically the left and right parts of
the expression return a fixed result.
Sub-classes may override this method for more tailored results, especially if the
binary expression does not demand a RHS.
Parameters: q - The Query object. true if the expression has a fixed result. |
|
|