1256N/A/*
1256N/A * CDDL HEADER START
1256N/A *
1256N/A * The contents of this file are subject to the terms of the
1256N/A * Common Development and Distribution License (the "License").
1256N/A * You may not use this file except in compliance with the License.
1256N/A *
1256N/A * See LICENSE.txt included in this distribution for the specific
1256N/A * language governing permissions and limitations under the License.
1256N/A *
1256N/A * When distributing Covered Code, include this CDDL HEADER in each
1256N/A * file and include the License file at LICENSE.txt.
1256N/A * If applicable, add the following below this CDDL HEADER, with the
1256N/A * fields enclosed by brackets "[]" replaced with your own identifying
1256N/A * information: Portions Copyright [yyyy] [name of copyright owner]
1256N/A *
1256N/A * CDDL HEADER END
1256N/A */
1256N/A
1256N/A/*
1344N/A * Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved.
1256N/A */
1256N/Apackage org.opensolaris.opengrok.analysis.vb;
1256N/A
1256N/Aimport java.io.IOException;
1256N/Aimport java.io.Reader;
1256N/Aimport java.io.Writer;
1416N/Aimport org.opensolaris.opengrok.analysis.AnalyzerGuru;
1256N/Aimport org.opensolaris.opengrok.analysis.Definitions;
1256N/Aimport org.opensolaris.opengrok.analysis.FileAnalyzerFactory;
1416N/Aimport org.opensolaris.opengrok.analysis.plain.AbstractSourceCodeAnalyzer;
1256N/Aimport org.opensolaris.opengrok.configuration.Project;
1256N/Aimport org.opensolaris.opengrok.history.Annotation;
1256N/A
1256N/A/**
1256N/A *
1256N/A * @author Felix Annan
1256N/A */
1416N/Apublic class VBAnalyzer extends AbstractSourceCodeAnalyzer {
1256N/A
1416N/A private final VBSymbolTokenizer cref = new VBSymbolTokenizer(AnalyzerGuru.dummyR);
1416N/A private final VBXref xref = new VBXref(AnalyzerGuru.dummyR);
1256N/A
1416N/A /**
1416N/A * Creates a new instance of VBAnalyzer
1416N/A */
1256N/A protected VBAnalyzer(FileAnalyzerFactory factory) {
1256N/A super(factory);
1416N/A super.setAnalyzers(cref, xref);
1256N/A }
1256N/A
1256N/A static void writeXref(Reader in, Writer out, Definitions defs, Annotation annotation, Project project) throws IOException {
1256N/A VBXref xref = new VBXref(in);
1416N/A AbstractSourceCodeAnalyzer.writeXref(xref, in, out, defs, annotation, project);
1256N/A }
1256N/A}