JFlexXref.java revision 943
30N/A * CDDL HEADER START 30N/A * The contents of this file are subject to the terms of the 30N/A * Common Development and Distribution License (the "License"). 30N/A * You may not use this file except in compliance with the License. 30N/A * language governing permissions and limitations under the License. 30N/A * When distributing Covered Code, include this CDDL HEADER in each 30N/A * If applicable, add the following below this CDDL HEADER, with the 30N/A * fields enclosed by brackets "[]" replaced with your own identifying 30N/A * information: Portions Copyright [yyyy] [name of copyright owner] 1054N/A * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 30N/A * Use is subject to license terms. 77N/A * Write a symbol and generate links as appropriate. 77N/A * @param symbol the symbol to write 30N/A * @param keywords a set of keywords recognized by this analyzer (no links 30N/A * will be generated if the symbol is a keyword) 30N/A * @param line the line number on which the symbol appears 30N/A * @throws IOException if an error occurs while writing to the stream 30N/A // This is a keyword, so we don't create a link. 145N/A // This is the definition of the symbol. 145N/A // 1) Create an anchor for direct links. (Perhaps, we should only 58N/A // do this when there's exactly one definition of the symbol in 77N/A // this file? Otherwise, we may end up with multiple anchors with 490N/A // 2) Create a link that searches for all references to this symbol. 490N/A // This is a symbol that is not defined in this file. 490N/A // Create a link that searches for all definitions of the symbol. 993N/A // This is a reference to a symbol defined exactly once in this file. 77N/A // Generate a direct link to the symbol definition. 145N/A // This is a symbol that is defined multiple times in this file. 77N/A // Don't generate a link (FIXME: this is bug #3435)