org.makumba.devel
Class mddViewer
java.lang.Object
org.makumba.devel.LineViewer
org.makumba.devel.mddViewer
- All Implemented Interfaces:
- SourceViewer
public class mddViewer
- extends LineViewer
This class implements a viewer for MDD syntax highlighting.
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, getLineTokenizer, getReader, htmlEscape, main, parseText, printFileRelations, printPageBegin, printPageBeginAdditional, printPageEnd, printVersionControlLink, readFromURL, setSearchLevels, writeLineNumber |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mddViewer
public mddViewer(HttpServletRequest req)
throws Exception
- Throws:
Exception
getLineTag
public String getLineTag(String s)
- Overrides:
getLineTag
in class LineViewer
printLine
public void printLine(PrintWriter w,
String s,
String toPrint)
throws IOException
- Overrides:
printLine
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
parseLine
public String parseLine(String s)
- Description copied from class:
LineViewer
- Processes one line of code, and adds links for
- MDDs
- JSP pages
- Java Classes
- from JSP pages generated Java classes
Subclasses that want to provide any additional formatting (syntax highlighting, etc) should extend this method,
apply their formatting and before/afterwards call this method. This method is rather time-consuming, and
subclasses interested in providing links just to a part of the above should use the setSearchLevels
method to specify for what types of files are searched for.
- Overrides:
parseLine
in class LineViewer
- Parameters:
s
- the unformatted code line.
- Returns:
- The formatted code line.
parseValidationLine
public String parseValidationLine(String s)
writeAdditionalLinks
protected void writeAdditionalLinks(PrintWriter w)
- Overrides:
writeAdditionalLinks
in class LineViewer