org.jmlspecs.jmlrac
Class Main.JmlPrettyPrintTask
java.lang.Object
org.multijava.mjc.Main.Task
org.multijava.mjc.Main.TreeProcessingTask
org.multijava.mjc.Main.PrettyPrintTask
org.jmlspecs.jmlrac.Main.JmlPrettyPrintTask
- All Implemented Interfaces:
- Comparable, Main.Trees
- Direct Known Subclasses:
- Main.JmlWriteAssertionTask
- Enclosing class:
- Main
- public class Main.JmlPrettyPrintTask
- extends Main.PrettyPrintTask
A task class for pretty-printing the trees in the AST forest.
| Fields inherited from class org.multijava.mjc.Main.Task |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Main.JmlPrettyPrintTask
public Main.JmlPrettyPrintTask(CompilerPassEnterable[] trees,
Object sequenceID)
- Constructs a task for pretty printer the trees in the given
forest. Stores an alias to trees.
processTree
protected void processTree(CompilerPassEnterable tree)
- Generate the source code of parsed compilation unit
- Overrides:
processTree in class Main.PrettyPrintTask
- Parameters:
tree - the compilation unit
prettyPrint
private void prettyPrint(File file,
JmlCompilationUnit tree)
- Pretty-print the AST tree to the given file
JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.