package hiro.yoshioka.ast.sql.mongo.util;

import hiro.yoshioka.ast.sql.util.ParserFactory;
import hiro.yoshioka.ast.sql.util.ParserUtil;

import java.io.File;
import java.io.FileNotFoundException;

public class WolfMongoParserFactory extends ParserFactory {

	@Override
	public ParserUtil createParserUtil(String statement) {
		return new WolfMongoParserUtil(statement);
	}

	@Override
	public ParserUtil createParserUtil(File file) {
		try {
			return new WolfMongoParserUtil(file);
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}
		return null;
	}

}
