Class Expression.Op.Bin.Or<E>
- java.lang.Object
-
- edu.washington.cs.knowitall.logic.Expression<E>
-
- edu.washington.cs.knowitall.logic.Expression.Apply<E>
-
- edu.washington.cs.knowitall.logic.Expression.Op<E>
-
- edu.washington.cs.knowitall.logic.Expression.Op.Bin<E>
-
- edu.washington.cs.knowitall.logic.Expression.Op.Bin.Or<E>
-
- Enclosing class:
- Expression.Op.Bin<E>
public static class Expression.Op.Bin.Or<E> extends Expression.Op.Bin<E>
The disjunction (logical or) operator.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.washington.cs.knowitall.logic.Expression.Op.Bin
Expression.Op.Bin.And<E>, Expression.Op.Bin.Or<E>
-
Nested classes/interfaces inherited from class edu.washington.cs.knowitall.logic.Expression.Op
Expression.Op.Bin<E>, Expression.Op.Mon<E>
-
Nested classes/interfaces inherited from class edu.washington.cs.knowitall.logic.Expression
Expression.Apply<E>, Expression.Arg<E>, Expression.Op<E>, Expression.Paren<E>
-
-
Field Summary
-
Fields inherited from class edu.washington.cs.knowitall.logic.Expression.Op.Bin
left, right
-
-
Constructor Summary
Constructors Constructor Description Or()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
apply(E entity)
Apply this expression to an entity to get true or false.int
precedence()
The precedence of this operator.java.lang.String
toString()
-
Methods inherited from class edu.washington.cs.knowitall.logic.Expression.Op.Bin
toString
-
Methods inherited from class edu.washington.cs.knowitall.logic.Expression.Op
preceeds
-
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
apply
public boolean apply(E entity)
Description copied from class:Expression.Apply
Apply this expression to an entity to get true or false.- Specified by:
apply
in classExpression.Apply<E>
-
precedence
public int precedence()
Description copied from class:Expression.Op
The precedence of this operator. A smaller number denotes higher precedence.- Specified by:
precedence
in classExpression.Op<E>
-
-