Class Expression.Arg.Pred<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.Arg<E>
-
- edu.washington.cs.knowitall.logic.Expression.Arg.Pred<E>
-
- All Implemented Interfaces:
com.google.common.base.Predicate<E>
,java.util.function.Predicate<E>
- Enclosing class:
- Expression.Arg<E>
public abstract static class Expression.Arg.Pred<E> extends Expression.Arg<E>
An expression that evaluates to true or false by applying a predicate to the supplied entity.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.washington.cs.knowitall.logic.Expression.Arg
Expression.Arg.Pred<E>, Expression.Arg.Value<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 Modifier and Type Field Description private java.lang.String
description
-
Constructor Summary
Constructors Constructor Description Pred(java.lang.String description)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
apply(E entity)
Apply this expression to an entity to get true or false.java.lang.String
getDescription()
java.lang.String
toString()
-
-
-
Method Detail
-
apply
public abstract 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 interfacecom.google.common.base.Predicate<E>
- Specified by:
apply
in classExpression.Apply<E>
-
getDescription
public java.lang.String getDescription()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-