1375N/A/*
1375N/A * CDDL HEADER START
1375N/A *
1375N/A * The contents of this file are subject to the terms of the
1375N/A * Common Development and Distribution License (the "License").
1375N/A * You may not use this file except in compliance with the License.
1375N/A *
1375N/A * See LICENSE.txt included in this distribution for the specific
1375N/A * language governing permissions and limitations under the License.
1375N/A *
1375N/A * When distributing Covered Code, include this CDDL HEADER in each
1375N/A * file and include the License file at LICENSE.txt.
1375N/A * If applicable, add the following below this CDDL HEADER, with the
1375N/A * fields enclosed by brackets "[]" replaced with your own identifying
1375N/A * information: Portions Copyright [yyyy] [name of copyright owner]
1375N/A *
1375N/A * CDDL HEADER END
1375N/A */
1375N/A
1375N/A/*
1375N/A * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
1375N/A */
1375N/A
1375N/Apackage org.opensolaris.opengrok.analysis.sql;
1375N/A
1375N/Aimport java.io.IOException;
1375N/Aimport java.io.Reader;
1375N/Aimport java.io.Writer;
1375N/Aimport org.opensolaris.opengrok.analysis.Definitions;
1375N/Aimport org.opensolaris.opengrok.analysis.FileAnalyzer;
1375N/Aimport org.opensolaris.opengrok.analysis.FileAnalyzer.Genre;
1375N/Aimport org.opensolaris.opengrok.analysis.FileAnalyzerFactory;
1375N/Aimport org.opensolaris.opengrok.configuration.Project;
1375N/Aimport org.opensolaris.opengrok.history.Annotation;
1375N/A
1375N/Apublic class PLSQLAnalyzerFactory extends FileAnalyzerFactory {
1375N/A private static final String[] SUFFIXES = {
1375N/A "PLS",
1375N/A "PKS", //?
1375N/A "PLD",
1375N/A "PLB"
1375N/A };
1375N/A
1375N/A public PLSQLAnalyzerFactory() {
1375N/A super(null, SUFFIXES, null, null, "text/plain", Genre.PLAIN);
1375N/A }
1375N/A
1375N/A @Override
1375N/A protected FileAnalyzer newAnalyzer() {
1375N/A return new PLSQLAnalyzer(this);
1375N/A }
1375N/A
1375N/A @Override
1375N/A public void writeXref(Reader in, Writer out, Definitions defs, Annotation annotation, Project project)
1375N/A throws IOException {
1375N/A PLSQLAnalyzer.writeXref(in, out, defs, annotation, project);
1375N/A }
1375N/A}