JFlexXref.java revision 963
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 * language governing permissions and limitations under the License. 850N/A * When distributing Covered Code, include this CDDL HEADER in each 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 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 850N/A * Use is subject to license terms. 943N/A * Write a symbol and generate links as appropriate. 943N/A * @param symbol the symbol to write 943N/A * @param keywords a set of keywords recognized by this analyzer (no links 943N/A * will be generated if the symbol is a keyword) 943N/A * @param line the line number on which the symbol appears 943N/A * @throws IOException if an error occurs while writing to the stream 943N/A // This is a keyword, so we don't create a link. 943N/A // This is the definition of the symbol. 943N/A // 1) Create an anchor for direct links. (Perhaps, we should only 943N/A // do this when there's exactly one definition of the symbol in 943N/A // this file? Otherwise, we may end up with multiple anchors with 943N/A // 2) Create a link that searches for all references to this symbol. 943N/A // This is a reference to a symbol defined exactly once in this file. 943N/A // Generate a direct link to the symbol definition. 944N/A // This is a symbol that is not defined in this file, or a symbol 944N/A // that is defined more than once in this file. In either case, we 944N/A // can't generate a direct link to the definition, so generate a 944N/A // link to search for all definitions of that symbol instead. 963N/A * Write HTML escape sequence for the specified Unicode character, unless 963N/A * it's an ISO control character, in which case it is ignored. 963N/A * @param c the character to write 963N/A * @throws IOException if an error occurs while writing to the stream