|
InfoZoneTools API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.infozone.tools.janalyzer.JavaCodeOutput
This class prints the lines of code and the affiliated comments of the output from the JavaCodeAnalyzer class. It makes line wrapping with splitting levels, correct indentation and comment creation. . This all is done after the Apache Source Conventions from SUN and therefore the ASF..
TODO: - trailling comments - more documentation - doc comment cration for classes, constructors, fields, methods BUGS - comment items in "" are extracted to real comments
org.infozone.janalyzer.JavaCodeAnalyzer
Constructor Summary | |
JavaCodeOutput(java.io.File fileIn,
java.lang.String filenameOut,
java.lang.String lineLength)
|
Method Summary | |
java.lang.String |
getHighSplitLevel()
|
java.lang.String |
getLowSplitLevel()
|
java.lang.String |
getMiddleSplitLevel()
|
java.lang.String |
getNextSplitLevel()
Increase the split level and returns it. |
java.lang.String |
getObligateSplitLevel()
If it present in a line and the line is longer then LINE_LENGTH then line must wrapped on this place. |
java.lang.String |
getSplitLevel()
Splitting levels were used by the JavaCodeAnalyzer to set marker into the lines of code, were line wrapping is recommended. |
void |
increaseIndent()
Increase the indentation String by oneIndent. |
java.lang.String |
mask(java.lang.String aText)
If the split level String exits in the original source it must be masked |
void |
printClassComment(koala.dynamicjava.tree.Node aNode)
|
void |
printComment()
Invokes the method printOrigComment with the parameters commentStart, commentEnd. |
void |
printConstructorComment(koala.dynamicjava.tree.Node aNode)
|
void |
printFieldComment(koala.dynamicjava.tree.Node aNode)
|
void |
printImportComment(koala.dynamicjava.tree.Node aNode)
Insert existing comments between Node.getBeginLine To lastline.. |
void |
printInterfaceComment(koala.dynamicjava.tree.Node aNode)
|
void |
println(java.lang.String aLine)
This method print out the line. |
void |
printMethodComment(koala.dynamicjava.tree.MethodDeclaration method)
|
void |
printPackageComment(koala.dynamicjava.tree.Node aNode)
|
void |
printVariableComment(koala.dynamicjava.tree.Node aNode)
|
void |
resetSplitLevel()
|
void |
setCommentEnd(int end)
|
void |
setCommentStart(int start)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JavaCodeOutput(java.io.File fileIn, java.lang.String filenameOut, java.lang.String lineLength)
Method Detail |
public void increaseIndent()
public java.lang.String mask(java.lang.String aText)
public java.lang.String getSplitLevel()
public java.lang.String getLowSplitLevel()
public java.lang.String getMiddleSplitLevel()
public java.lang.String getHighSplitLevel()
public java.lang.String getObligateSplitLevel()
public java.lang.String getNextSplitLevel()
public void resetSplitLevel()
public void println(java.lang.String aLine)
aLine
- public void setCommentStart(int start)
public void setCommentEnd(int end)
public void printComment()
public void printImportComment(koala.dynamicjava.tree.Node aNode)
public void printPackageComment(koala.dynamicjava.tree.Node aNode)
public void printClassComment(koala.dynamicjava.tree.Node aNode)
public void printInterfaceComment(koala.dynamicjava.tree.Node aNode)
public void printConstructorComment(koala.dynamicjava.tree.Node aNode)
public void printMethodComment(koala.dynamicjava.tree.MethodDeclaration method)
public void printFieldComment(koala.dynamicjava.tree.Node aNode)
public void printVariableComment(koala.dynamicjava.tree.Node aNode)
|
InfoZoneTools API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |