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