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 booleanvalue
-
Constructor Summary
Constructors Constructor Description Value(boolean value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapply()booleanapply(E entity)Apply this expression to an entity to get true or false.java.lang.StringtoString()
-
-
-
Method Detail
-
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 interfacecom.google.common.base.Predicate<E>- Specified by:
applyin classExpression.Apply<E>
-
apply
public boolean apply()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-