QJCC homepage

biz.chitec.quarterback.util.logic
Class ORExpr

java.lang.Object
  extended bybiz.chitec.quarterback.util.logic.AlgebraicExpr
      extended bybiz.chitec.quarterback.util.logic.ORExpr
All Implemented Interfaces:
java.lang.Cloneable, LogicExpr

public class ORExpr
extends AlgebraicExpr

Interface for logic expressions

Version:
$Id: 64d69b68a038c92588abb94dc3ac05219a85e330 $
Author:
chitec/Dirk Hillbrecht 2001, cantamen/Dirk Hillbrecht 2005. Distributed under the terms of the GNU LGPL.

Nested Class Summary
 
Nested classes inherited from class biz.chitec.quarterback.util.logic.LogicExpr
LogicExpr.Converter, LogicExpr.UniverseGenerator
 
Field Summary
 
Fields inherited from class biz.chitec.quarterback.util.logic.AlgebraicExpr
expressions
 
Constructor Summary
ORExpr()
           
ORExpr(LogicExpr e1x, LogicExpr e2x)
           
ORExpr(java.lang.Object[] os)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 boolean evaluate(java.lang.Object universe)
          Is the expression valid in the given universe
 int[] getResultSet(LogicExpr.UniverseGenerator generator)
          Return all elements of the universe which match the expression
 java.lang.String sqlString(java.util.Map identifiers)
          Returns an SQL representation of the expression with the constant names replaced by the ones in the given Map.
 
Methods inherited from class biz.chitec.quarterback.util.logic.AlgebraicExpr
clone, convertValues, getExpressions, getInternalVars, hasLeafsOnly, isReady, isTreeReady
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ORExpr

public ORExpr()

ORExpr

public ORExpr(LogicExpr e1x,
              LogicExpr e2x)

ORExpr

public ORExpr(java.lang.Object[] os)
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class AlgebraicExpr

evaluate

public boolean evaluate(java.lang.Object universe)
Is the expression valid in the given universe


getResultSet

public int[] getResultSet(LogicExpr.UniverseGenerator generator)
Description copied from interface: LogicExpr
Return all elements of the universe which match the expression


sqlString

public java.lang.String sqlString(java.util.Map identifiers)
Description copied from interface: LogicExpr
Returns an SQL representation of the expression with the constant names replaced by the ones in the given Map.


QJCC homepage