org.makumba.devel
Class javaViewer
java.lang.Object
org.makumba.devel.LineViewer
org.makumba.devel.javaViewer
- All Implemented Interfaces:
- SourceViewer
public class javaViewer
- extends LineViewer
the java viewer. It should be a filter from another (mb third-party) viewer that links known .java and .mdd sources.
See SourceViewServlet for the filter architecture
- Version:
- $Id: javaViewer.java 4775 2010-04-14 18:56:31Z rosso_nero $
- Author:
- Stefan Baebler, Rudolf Mayer
Fields inherited from class org.makumba.devel.LineViewer |
additionalCodeStyleClasses, additionalHeaderInfo, caughtError, contextPath, dir, hideLineNumbers, importedClasses, importedPackages, jspClasspath, jspSourceViewExtension, logicPath, PARAM_HIDE_LINES, parseError, printHeaderFooter, printLineNumbers, reader, realPath, request, searchCompiledJSPClasses, searchJavaClasses, searchJSPPages, searchMDD, servletPath, title, virtualPath |
Methods inherited from class org.makumba.devel.LineViewer |
addImportedPackages, findClass, findClassSimple, findCompiledJSP, findCompiledJSPClassName, findPage, footer, formatClassLink, formatClassLink, formatJSPLink, formatMakumbaLink, formatMDDLink, formatSunTaglibLink, getDirectory, getLineTag, getLineTokenizer, getReader, htmlEscape, main, printFileRelations, printLine, printPageBegin, printPageBeginAdditional, printPageEnd, printVersionControlLink, readFromURL, setSearchLevels, writeAdditionalLinks, writeLineNumber |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
javaSyntaxProperties
public static Map<String,String> javaSyntaxProperties
javaViewer
public javaViewer(HttpServletRequest req)
throws Exception
- Throws:
Exception
parseLine
public String parseLine(String s)
- Utilises the super-class' method, and performs additionally syntax highlighting for java keywords.
- Overrides:
parseLine
in class LineViewer
- Parameters:
s
- the unformatted code line.
- Returns:
- The formatted code line.
- See Also:
LineViewer.parseLine(java.lang.String)
parseText
public void parseText(PrintWriter writer)
throws IOException
- parse the text and write the output
- Specified by:
parseText
in interface SourceViewer
- Overrides:
parseText
in class LineViewer
- Throws:
IOException
intro
public void intro(PrintWriter w)
- Description copied from class:
LineViewer
- Write the page header to the given writer.
- Overrides:
intro
in class LineViewer