org.opensolaris.opengrok.analysis
Class JFlexXref

java.lang.Object
  extended by org.opensolaris.opengrok.analysis.JFlexXref
Direct Known Subclasses:
CXref, CxxXref, FortranXref, JavaXref, LispXref, PlainXref, ShXref, TclXref, TroffXref, XMLXref

public class JFlexXref
extends java.lang.Object


Field Summary
 Annotation annotation
           
protected  Definitions defs
           
 java.io.Writer out
           
 Project project
           
 java.lang.String urlPrefix
           
 
Constructor Summary
JFlexXref()
           
 
Method Summary
protected  void appendProject()
           
protected  java.lang.String getProjectPostfix()
           
 void setDefs(Definitions defs)
           
protected  void writeSymbol(java.lang.String symbol, java.util.Set<java.lang.String> keywords, int line)
          Write a symbol and generate links as appropriate.
protected  void writeUnicodeChar(char c)
          Write HTML escape sequence for the specified Unicode character, unless it's an ISO control character, in which case it is ignored.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

public java.io.Writer out

urlPrefix

public java.lang.String urlPrefix

annotation

public Annotation annotation

project

public Project project

defs

protected Definitions defs
Constructor Detail

JFlexXref

public JFlexXref()
Method Detail

setDefs

public void setDefs(Definitions defs)

appendProject

protected void appendProject()
                      throws java.io.IOException
Throws:
java.io.IOException

getProjectPostfix

protected java.lang.String getProjectPostfix()

writeSymbol

protected void writeSymbol(java.lang.String symbol,
                           java.util.Set<java.lang.String> keywords,
                           int line)
                    throws java.io.IOException
Write a symbol and generate links as appropriate.

Parameters:
symbol - the symbol to write
keywords - a set of keywords recognized by this analyzer (no links will be generated if the symbol is a keyword)
line - the line number on which the symbol appears
Throws:
java.io.IOException - if an error occurs while writing to the stream

writeUnicodeChar

protected void writeUnicodeChar(char c)
                         throws java.io.IOException
Write HTML escape sequence for the specified Unicode character, unless it's an ISO control character, in which case it is ignored.

Parameters:
c - the character to write
Throws:
java.io.IOException - if an error occurs while writing to the stream