Class Expression.Op.Bin.And<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.And<E>
-
- Enclosing class:
- Expression.Op.Bin<E>
public static class Expression.Op.Bin.And<E> extends Expression.Op.Bin<E>
The conjunction (logical and) 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 And()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapply(E entity)Apply this expression to an entity to get true or false.intprecedence()The precedence of this operator.java.lang.StringtoString()-
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:
toStringin classjava.lang.Object
-
apply
public boolean apply(E entity)
Description copied from class:Expression.ApplyApply this expression to an entity to get true or false.- Specified by:
applyin classExpression.Apply<E>
-
precedence
public int precedence()
Description copied from class:Expression.OpThe precedence of this operator. A smaller number denotes higher precedence.- Specified by:
precedencein classExpression.Op<E>
-
-