All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.washington.cs.knowitall.logic.ArgFactory Maven / Gradle / Ivy

package edu.washington.cs.knowitall.logic;

import com.google.common.base.Function;

/**
 * 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.
 *
 * @author Michael Schmitz 
 *
 * @param 
 */
public abstract class ArgFactory implements Function> {
    /***
     * Converts the supplied string into a token.
     */
    public abstract Expression.Arg create(String string);

    /***
     * Method to satisfy abstract superclass.
     */
    @Override
    public Expression.Arg apply(String string) {
        return this.create(string);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy