|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmlspecs.racwrap.FactoryPrinter
The InterfacePrinter is an object that is used to output the interface definition of a class to a file, given an abstract syntax tree. This class extends JMLAbstractVisitor, so we only need to implement the parts that we need.
| Field Summary | |
PrintStream |
out
|
| Constructor Summary | |
FactoryPrinter()
Parameterless constructor. |
|
FactoryPrinter(PrintStream out)
Constructor. |
|
| Method Summary | |
void |
print(JmlCompilationUnit compileUnit)
Prints the factory methods for a class. |
void |
print_class(JmlTypeDeclaration clazz)
|
void |
printConstructor(JmlTypeDeclaration clazz,
JMethodDeclarationType method)
This prints out the factory method that corresponds to a constructor in the original object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public PrintStream out
| Constructor Detail |
public FactoryPrinter(PrintStream out)
out - the PrintStream object to output the result to.public FactoryPrinter()
| Method Detail |
public void print(JmlCompilationUnit compileUnit)
public void print_class(JmlTypeDeclaration clazz)
public void printConstructor(JmlTypeDeclaration clazz,
JMethodDeclarationType method)
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||