Class ArgFactory<E>
- java.lang.Object
-
- edu.washington.cs.knowitall.logic.ArgFactory<E>
-
- Type Parameters:
E
-
- All Implemented Interfaces:
com.google.common.base.Function<java.lang.String,Expression.Arg<E>>
,java.util.function.Function<java.lang.String,Expression.Arg<E>>
public abstract class ArgFactory<E> extends java.lang.Object implements com.google.common.base.Function<java.lang.String,Expression.Arg<E>>
An abstract factory class that converts the string representation of an argument into a token. This token uses the supplied delegate to evaluate the expression against an entity into a boolean.
-
-
Constructor Summary
Constructors Constructor Description ArgFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Expression.Arg<E>
apply(java.lang.String string)
Method to satisfy abstract superclass.abstract Expression.Arg<E>
create(java.lang.String string)
Converts the supplied string into a token.
-
-
-
Method Detail
-
create
public abstract Expression.Arg<E> create(java.lang.String string)
Converts the supplied string into a token.
-
apply
public Expression.Arg<E> apply(java.lang.String string)
Method to satisfy abstract superclass.- Specified by:
apply
in interfacecom.google.common.base.Function<java.lang.String,Expression.Arg<E>>
- Specified by:
apply
in interfacejava.util.function.Function<java.lang.String,Expression.Arg<E>>
-
-