de.fuberlin.wiwiss.d2rq.expr
Class BinaryOperator

java.lang.Object
  extended by de.fuberlin.wiwiss.d2rq.expr.Expression
      extended by de.fuberlin.wiwiss.d2rq.expr.BinaryOperator
Direct Known Subclasses:
Add, Divide, GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrEqual, Multiply, Subtract

public abstract class BinaryOperator
extends Expression


Field Summary
protected  Expression expr1
           
protected  Expression expr2
           
protected  String operator
           
 
Fields inherited from class de.fuberlin.wiwiss.d2rq.expr.Expression
FALSE, TRUE
 
Constructor Summary
protected BinaryOperator(Expression expr1, Expression expr2, String operator)
           
 
Method Summary
 Set<Attribute> attributes()
           
 boolean equals(Object other)
           
 int hashCode()
           
 boolean isFalse()
           
 boolean isTrue()
           
 String toSQL(ConnectedDB database, AliasMap aliases)
           
 String toString()
           
 
Methods inherited from class de.fuberlin.wiwiss.d2rq.expr.Expression
and, or, renameAttributes
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

expr1

protected final Expression expr1

expr2

protected final Expression expr2

operator

protected final String operator
Constructor Detail

BinaryOperator

protected BinaryOperator(Expression expr1,
                         Expression expr2,
                         String operator)
Method Detail

attributes

public Set<Attribute> attributes()
Specified by:
attributes in class Expression

isFalse

public boolean isFalse()
Specified by:
isFalse in class Expression

isTrue

public boolean isTrue()
Specified by:
isTrue in class Expression

toSQL

public String toSQL(ConnectedDB database,
                    AliasMap aliases)
Specified by:
toSQL in class Expression

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object