biz.chitec.quarterback.util.logic
Class ANDExpr
java.lang.Object
biz.chitec.quarterback.util.logic.AlgebraicExpr
biz.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.
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 java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ANDExpr
public ANDExpr()
ANDExpr
public ANDExpr(LogicExpr e1x,
LogicExpr e2x)
ANDExpr
public ANDExpr(java.lang.Object[] os)
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.