org.openrdf.sesame.sail.query
Class And

java.lang.Object
  extended byorg.openrdf.sesame.sail.query.And
All Implemented Interfaces:
BooleanExpr

public class And
extends Object
implements BooleanExpr


Constructor Summary
And(BooleanExpr leftArg, BooleanExpr rightArg)
           
 
Method Summary
 BooleanExpr getLeftArg()
           
 BooleanExpr getRightArg()
           
 void getVariables(Collection variables)
          Gets all variables that are used in this BooleanExpr.
 boolean isTrue(RdfSource rdfSource)
          Evaluates the boolean expression on the supplied RdfSource object.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

And

public And(BooleanExpr leftArg,
           BooleanExpr rightArg)
Method Detail

isTrue

public boolean isTrue(RdfSource rdfSource)
               throws BooleanExprEvaluationException,
                      SailQueryException
Description copied from interface: BooleanExpr
Evaluates the boolean expression on the supplied RdfSource object.

Specified by:
isTrue in interface BooleanExpr
Parameters:
rdfSource - The RdfSource to evaluate the boolean expression against.
Returns:
the result of the evaluation.
Throws:
BooleanExprEvaluationException - If the boolean expression could not be evaluated, for example when comparing two incompatible operands. When thrown, the result of the boolean expression is neither true or false, but unknown.
SailQueryException

getLeftArg

public BooleanExpr getLeftArg()

getRightArg

public BooleanExpr getRightArg()

getVariables

public void getVariables(Collection variables)
Description copied from interface: BooleanExpr
Gets all variables that are used in this BooleanExpr.

Specified by:
getVariables in interface BooleanExpr
Parameters:
variables - A Collection to add the Var objects to.

toString

public String toString()


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.