From 5f3fb9afece2125cbeba79d61a8d88460b7878d7 Mon Sep 17 00:00:00 2001 From: Joshua Rahm Date: Tue, 27 Jan 2015 18:40:32 -0700 Subject: initial commit --- .../dataread/expressions/StatementFactory.java | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 project/JavaCommon/src/com/modulus/dataread/expressions/StatementFactory.java (limited to 'project/JavaCommon/src/com/modulus/dataread/expressions/StatementFactory.java') diff --git a/project/JavaCommon/src/com/modulus/dataread/expressions/StatementFactory.java b/project/JavaCommon/src/com/modulus/dataread/expressions/StatementFactory.java new file mode 100644 index 0000000..16da8aa --- /dev/null +++ b/project/JavaCommon/src/com/modulus/dataread/expressions/StatementFactory.java @@ -0,0 +1,28 @@ +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); +} -- cgit