package com.modulus.dataread.expressions; import java.util.Map; /** * Interface describes how an object is supposed to * generate statements. This class is to be used int tandem * with the ExpressionParser interface to generate * Statements of a specific type; * * @author jrahm * * @param the type of statement this StatementFactory creates */ public interface StatementFactory { /** * Creates a new statement with the type T based * on what the parameters contain. * * The parameters contain useful information about where the parser * currently is and how to create the new statement. * * @param params the parameters * @return a new statement of type T based off of the parameters. */ T generateStatement(Map params); }