JFlexXref.java revision 853
850N/A/*
850N/A * CDDL HEADER START
850N/A *
850N/A * The contents of this file are subject to the terms of the
850N/A * Common Development and Distribution License (the "License").
850N/A * You may not use this file except in compliance with the License.
850N/A *
850N/A * See LICENSE.txt included in this distribution for the specific
850N/A * language governing permissions and limitations under the License.
850N/A *
850N/A * When distributing Covered Code, include this CDDL HEADER in each
850N/A * file and include the License file at LICENSE.txt.
850N/A * If applicable, add the following below this CDDL HEADER, with the
850N/A * fields enclosed by brackets "[]" replaced with your own identifying
850N/A * information: Portions Copyright [yyyy] [name of copyright owner]
850N/A *
850N/A * CDDL HEADER END
850N/A */
850N/A
850N/A/*
850N/A * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
850N/A * Use is subject to license terms.
850N/A */
850N/A
850N/Apackage org.opensolaris.opengrok.analysis;
850N/A
850N/Aimport java.io.IOException;
850N/Aimport java.io.Writer;
850N/Aimport org.opensolaris.opengrok.configuration.RuntimeEnvironment;
853N/Aimport org.opensolaris.opengrok.configuration.Project;
850N/Aimport org.opensolaris.opengrok.history.Annotation;
850N/A
850N/A/**
850N/A *
850N/A * @author Lubos Kosco
850N/A */
850N/Apublic class JFlexXref {
850N/A public Writer out;
850N/A public String urlPrefix = RuntimeEnvironment.getInstance().getUrlPrefix();
850N/A public Annotation annotation;
850N/A public Project project;
850N/A protected Definitions defs;
850N/A
850N/A public void setDefs(Definitions defs) {
850N/A this.defs = defs;
850N/A }
850N/A
850N/A protected void appendProject() throws IOException {
850N/A if (project != null) {
850N/A out.write("&project=");
853N/A out.write(project.getDescription());
850N/A }
850N/A }
850N/A
850N/A protected String getProjectPostfix() {
853N/A return project == null ? "" : ("&project=" + project.getDescription());
850N/A }
850N/A
850N/A}