org.makumba.devel
Class GeneratedCodeViewer

java.lang.Object
  extended by org.makumba.devel.LineViewer
      extended by org.makumba.devel.jspViewer
          extended by org.makumba.devel.GeneratedCodeViewer
All Implemented Interfaces:
SourceViewer

public class GeneratedCodeViewer
extends jspViewer

Implements servlet-based an interface to CodeGenerator, and displays the generated JSP code.

Version:
$Id: GeneratedCodeViewer.java 5153 2010-05-18 21:37:50Z rosso_nero $
Author:
Rudolf Mayer

Field Summary
 
Fields inherited from class org.makumba.devel.jspViewer
hasLogic, sourceSyntaxPoints, syntaxPoints
 
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
 
Constructor Summary
GeneratedCodeViewer(HttpServletRequest req)
           
 
Method Summary
 void generateCode()
          Starts the code generation.
 void intro(PrintWriter w)
          writes the page header, with links to the mdd and to browse.
 void printPageBeginAdditional(PrintWriter w)
          prints the code generator form.
 
Methods inherited from class org.makumba.devel.jspViewer
parseText
 
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, parseLine, printFileRelations, printLine, printPageBegin, printPageEnd, printVersionControlLink, readFromURL, setSearchLevels, writeAdditionalLinks, writeLineNumber
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneratedCodeViewer

public GeneratedCodeViewer(HttpServletRequest req)
                    throws Exception
Throws:
Exception
Method Detail

generateCode

public void generateCode()
                  throws IOException
Starts the code generation.

Throws:
IOException

intro

public void intro(PrintWriter w)
writes the page header, with links to the mdd and to browse.

Overrides:
intro in class jspViewer

printPageBeginAdditional

public void printPageBeginAdditional(PrintWriter w)
                              throws IOException
prints the code generator form.

Overrides:
printPageBeginAdditional in class jspViewer
Throws:
IOException