Class Expression.Arg.Value<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.Value<E>
-
- All Implemented Interfaces:
com.google.common.base.Predicate<E>
,java.util.function.Predicate<E>
- Enclosing class:
- Expression.Arg<E>
public static class Expression.Arg.Value<E> extends Expression.Arg<E>
An expression that is a constant value--either true or false.
-
-
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 boolean
value
-
Constructor Summary
Constructors Constructor Description Value(boolean value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
apply()
boolean
apply(E entity)
Apply this expression to an entity to get true or false.java.lang.String
toString()
-
-
-
Method Detail
-
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 interfacecom.google.common.base.Predicate<E>
- Specified by:
apply
in classExpression.Apply<E>
-
apply
public boolean apply()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-