package hiro.yoshioka.ast.sql.oracle.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 WolfParserFactory extends ParserFactory {

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

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

}
