01: package it.unimi.dsi.mg4j.query.parser;
02:
03: import it.unimi.dsi.mg4j.query.nodes.Query;
04: import it.unimi.dsi.lang.FlyweightPrototype;
05:
06: /*
07: * MG4J: Managing Gigabytes for Java
08: *
09: * Copyright (C) 2006-2007 Sebastiano Vigna
10: *
11: * This library is free software; you can redistribute it and/or modify it
12: * under the terms of the GNU Lesser General Public License as published by the Free
13: * Software Foundation; either version 2.1 of the License, or (at your option)
14: * any later version.
15: *
16: * This library is distributed in the hope that it will be useful, but
17: * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
18: * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
19: * for more details.
20: *
21: * You should have received a copy of the GNU Lesser General Public License
22: * along with this program; if not, write to the Free Software
23: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24: *
25: */
26:
27: /** A parser transforming query strings in composite {@link it.unimi.dsi.mg4j.query.nodes.Query}
28: * objects.
29: *
30: * @author Sebastiano Vigna
31: */
32:
33: public interface QueryParser extends FlyweightPrototype<QueryParser> {
34:
35: public Query parse(String query) throws QueryParserException;
36:
37: public QueryParser copy();
38: }
|