Class Expression.Op.Mon.Not<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.Mon<E>
-
- edu.washington.cs.knowitall.logic.Expression.Op.Mon.Not<E>
-
- Enclosing class:
- Expression.Op.Mon<E>
public static class Expression.Op.Mon.Not<E> extends Expression.Op.Mon<E>
The negation operator.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.washington.cs.knowitall.logic.Expression.Op.Mon
Expression.Op.Mon.Not<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.Mon
sub
-
-
Constructor Summary
Constructors Constructor Description Not()
-
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.Mon
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>
-
-