Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.josql.expressions
Class EqualsExpression  view EqualsExpression download EqualsExpression.java

java.lang.Object
  extended byorg.josql.expressions.Expression
      extended byorg.josql.expressions.BinaryExpression
          extended byorg.josql.expressions.EqualsExpression

public class EqualsExpression
extends BinaryExpression

This class represents an "=" or "!=" expression. This class also provides the ability for the developer to prefix the "=" or "!=" with "$" to indicate that a case-insensitive comparison should be made, in which case the LHS and RHS are converted to strings first.

Last Modified By: $Author: barrygently $
Last Modified On: $Date: 2004/12/20 16:22:43 $
Current Revision: $Revision: 1.2 $


Field Summary
 boolean ignoreCase
           
private  boolean not
           
 
Fields inherited from class org.josql.expressions.BinaryExpression
left, right
 
Fields inherited from class org.josql.expressions.Expression
 
Constructor Summary
EqualsExpression()
           
 
Method Summary
 boolean isIgnoreCase()
           
 boolean isNot()
           
 boolean isTrue(java.lang.Object o, org.josql.Query q)
          Return whether this expression evaluates to true.
 void setIgnoreCase(boolean v)
           
 void setNot(boolean v)
           
 java.lang.String toString()
          Return a string version of the expression.
 
Methods inherited from class org.josql.expressions.BinaryExpression
getExpectedReturnType, getLeft, getRight, getValue, hasFixedResult, init, setLeft, setRight
 
Methods inherited from class org.josql.expressions.Expression
isBracketed, setBracketed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

not

private boolean not

ignoreCase

public boolean ignoreCase
Constructor Detail

EqualsExpression

public EqualsExpression()
Method Detail

setIgnoreCase

public void setIgnoreCase(boolean v)

isIgnoreCase

public boolean isIgnoreCase()

isNot

public boolean isNot()

setNot

public void setNot(boolean v)

isTrue

public boolean isTrue(java.lang.Object o,
                      org.josql.Query q)
               throws org.josql.QueryExecutionException
Return whether this expression evaluates to true.

Specified by:
isTrue in class Expression

toString

public java.lang.String toString()
Return a string version of the expression. In the form: Expression 55 [ $ ] [ ! ] = Expression 55

Specified by:
toString in class Expression