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