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