|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jlayercheck.out.html.SourceCodeDecorator
public class SourceCodeDecorator
Generates the decorated source code as HTML.
| Field Summary | |
|---|---|
protected VelocityGenerator |
generator
The generator to use |
protected File |
outputDir
The output directory |
protected File |
outputFile
The output file, not necessarily in outputDir |
static String |
PACKAGE
Name of this package |
static String |
TEMPLATENAME
Template to use |
| Constructor Summary | |
|---|---|
SourceCodeDecorator(File outputDir,
File outputFile)
|
|
| Method Summary | |
|---|---|
String |
convert2HTML(URL sourcefile)
Use java2html to parse the source. |
Object |
copyResource(String resourcename)
Copy resource to outputDir. |
void |
generate()
|
File |
getOutputDir()
|
File |
getOutputFile()
|
List<String> |
parseHTML(String htmlCode)
Separates source lines from java2html's HTML code. |
protected void |
prepareContext()
Prepare velocity context for generator and template. |
void |
setOutputDir(File outputDir)
|
void |
setOutputFile(File outputFile)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PACKAGE
public static final String TEMPLATENAME
protected VelocityGenerator generator
protected File outputDir
protected File outputFile
outputDir
| Constructor Detail |
|---|
public SourceCodeDecorator(File outputDir,
File outputFile)
| Method Detail |
|---|
public void setOutputFile(File outputFile)
public File getOutputFile()
public void setOutputDir(File outputDir)
public File getOutputDir()
protected void prepareContext()
public String convert2HTML(URL sourcefile)
throws IOException
sourcefile - The URL of the java source file
IOExceptionpublic List<String> parseHTML(String htmlCode)
htmlCode - the HTML code
public void generate()
public Object copyResource(String resourcename)
outputDir.
resourcename - the resource
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||