QJCC homepage

biz.chitec.quarterback.util.logic
Class ANDExpr

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

public class ANDExpr
extends AlgebraicExpr

Interface for logic expressions

Version:
$Id: 8e3c329b4643507d82850c35900ba81c3d501c3d $
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
ANDExpr()
           
ANDExpr(LogicExpr e1x, LogicExpr e2x)
           
ANDExpr(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

ANDExpr

public ANDExpr()

ANDExpr

public ANDExpr(LogicExpr e1x,
               LogicExpr e2x)

ANDExpr

public ANDExpr(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