| This class parses a existing JAVA class and format's the source code
after the Code Conventions from Sun and therefore from the Apache Software Foundation.
It uses the Syntax tree from the DynamicJava SourceCodeParser and transform each node of
this tree back into lines of code.
All output is handled by the JavaCodeOutput class. Also comments only handled by the Output
class, because they don't exist in a syntax tree.
JCC in the comment stands for
Coding Conventions.
TODO:
- forgotten expressions they not used in the prowler package
- indentation in nested conditional operator statements
- comments after the last expression in a method and the trailing } are deleted!!!
- split level in binary expressions
- label:
- more documentation
- quality checking such:
- constants as ABC_DEF
- JavaCodeMetricManager
- metric'S
- method counting and so on
Problems:
- trailling comments can't be inserted after the automatically wrapped lines, so
they are inserted before the statements
- At this moment only the trailling comment on the same line as the statement starts
is checked
version: $Revision: 1.1 $ $Date: 2002/05/10 08:59:12 $ author: SMB |