|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jmlspecs.jml4.rac.RacPrettyPrinter
public class RacPrettyPrinter
Pretty prints RAC code.
Constructor Summary | |
---|---|
RacPrettyPrinter(CompilationResult compilationResult)
|
Method Summary | |
---|---|
TypeDeclaration[] |
cloneTypes(TypeDeclaration[] types)
Clones the given types. |
static void |
debug(CompilationUnitDeclaration sunit)
Prints the given AST on debugStream if debugging
information has been requested. |
static void |
debugMergedRacCode(boolean flag)
Makes the RAC code be printed for debugging purpose after it gets merged to the original source code. |
static void |
debugRacCode(boolean flag)
Makes the RAC code be printed for debugging purpose before it gets merged to the original source code. |
char[] |
getRacSourceCode()
Returns the RAC source code. |
void |
printRacCode(CompilationUnitDeclaration sourceUnit,
CompilationUnitDeclaration racUnit)
Prints the given RAC code of the given source to an internal file for a later parsing. |
static void |
setDebugStream(java.io.PrintStream out)
Sets the output stream on which RAC code will be printed for debugging purpose. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RacPrettyPrinter(CompilationResult compilationResult)
Method Detail |
---|
public static void debugRacCode(boolean flag)
setDebugStream(PrintStream)
or
System.out
by default.
public static void debugMergedRacCode(boolean flag)
setDebugStream(PrintStream)
or
System.out
by default.
public static void setDebugStream(java.io.PrintStream out)
public TypeDeclaration[] cloneTypes(TypeDeclaration[] types)
public void printRacCode(CompilationUnitDeclaration sourceUnit, CompilationUnitDeclaration racUnit)
public char[] getRacSourceCode()
printSourceCode(CompilationUnitDeclaration)
}.
printSourceCode(CompilationUnitDeclaration)
public static void debug(CompilationUnitDeclaration sunit)
debugStream
if debugging
information has been requested.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |