|
ESC/Java2 © 2003,2004,2005,2006 David Cok and Joseph Kiniry © 2005,2006 UCD Dublin © 2003,2004 Radboud University Nijmegen © 1999,2000 Compaq Computer Corporation © 1997,1998,1999 Digital Equipment Corporation All Rights Reserved |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavafe.ast.PrettyPrint
javafe.ast.DelegatingPrettyPrint
| Field Summary | |
protected PrettyPrint |
del
|
| Fields inherited from class javafe.ast.PrettyPrint |
displayInferred, INDENT, inst, self |
| Constructor Summary | |
protected |
DelegatingPrettyPrint()
The contract for the default constructor does not say what del is initialied to, hence strongly hinting to clients that they need to initialize it explicitly. |
protected |
DelegatingPrettyPrint(PrettyPrint self,
PrettyPrint del)
|
| Method Summary | |
void |
print(java.io.OutputStream o,
CompilationUnit cu)
Print a compilation onto to a stream. |
void |
print(java.io.OutputStream o,
GenericVarDecl d)
|
void |
print(java.io.OutputStream o,
int ind,
ExprVec es)
|
void |
print(java.io.OutputStream o,
int ind,
FieldDecl d,
boolean showBody)
|
void |
print(java.io.OutputStream o,
int ind,
FormalParaDeclVec fps)
|
void |
print(java.io.OutputStream o,
int ind,
LocalVarDecl d,
boolean showBody)
|
void |
print(java.io.OutputStream o,
int ind,
ModifierPragma mp)
Print a member or static initializer of a type declaration. |
void |
print(java.io.OutputStream o,
int ind,
ObjectDesignator od)
|
void |
print(java.io.OutputStream o,
int ind,
Stmt s)
Print a statement. |
void |
print(java.io.OutputStream o,
int ind,
StmtPragma sp)
|
void |
print(java.io.OutputStream o,
int ind,
TypeDeclElem d,
Identifier classId,
boolean showBody)
Print a member or static initializer of a type declaration. |
void |
print(java.io.OutputStream o,
int ind,
TypeDeclElemPragma tp)
|
void |
print(java.io.OutputStream o,
int ind,
TypeModifierPragma tp)
|
void |
print(java.io.OutputStream o,
int ind,
VarInit e)
|
void |
print(java.io.OutputStream o,
LexicalPragma lp)
Print a lexical pragma. |
void |
print(java.io.OutputStream o,
Name n)
|
void |
print(java.io.OutputStream o,
Type t)
|
void |
print(java.io.OutputStream o,
TypeNameVec tns)
|
void |
printnoln(java.io.OutputStream o,
int ind,
TypeDecl d)
Print a type declaration onto to a stream, without a final newline. |
void |
setDel(PrettyPrint del)
|
java.lang.String |
toString(int tag)
|
| Methods inherited from class javafe.ast.PrettyPrint |
print, println, println, println, spaces, toCanonicalString, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString, write, write, writeln, writeln |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected PrettyPrint del
| Constructor Detail |
protected DelegatingPrettyPrint()
protected DelegatingPrettyPrint(PrettyPrint self,
PrettyPrint del)
| Method Detail |
public void setDel(PrettyPrint del)
public void print(java.io.OutputStream o,
CompilationUnit cu)
PrettyPrinto is
positioned at the start of a new line.
print in class PrettyPrint
public void printnoln(java.io.OutputStream o,
int ind,
TypeDecl d)
PrettyPrint
printnoln in class PrettyPrint
public void print(java.io.OutputStream o,
int ind,
Stmt s)
PrettyPrints should be printed starting
at the current position of o. It does not print
a new-line at the end of the statement. However, if the statement needs to
span multiple lines (for example, because it has embedded statements), then
these lines are indented by ind spaces.
print in class PrettyPrint
public void print(java.io.OutputStream o,
int ind,
TypeDeclElem d,
Identifier classId,
boolean showBody)
PrettyPrints should be printed starting at the current position of
o. If the declaration needs to span multiple lines (for
example, to print the statements in the body of a method), then these lines
are indented by ind spaces. It should leave o
at the start of a new-line.
print in class PrettyPrint
public void print(java.io.OutputStream o,
TypeNameVec tns)
print in class PrettyPrint
public void print(java.io.OutputStream o,
int ind,
FormalParaDeclVec fps)
print in class PrettyPrint
public void print(java.io.OutputStream o,
int ind,
ExprVec es)
print in class PrettyPrint
public void print(java.io.OutputStream o,
GenericVarDecl d)
print in class PrettyPrint
public void print(java.io.OutputStream o,
int ind,
LocalVarDecl d,
boolean showBody)
print in class PrettyPrint
public void print(java.io.OutputStream o,
int ind,
FieldDecl d,
boolean showBody)
print in class PrettyPrint
public void print(java.io.OutputStream o,
Type t)
print in class PrettyPrint
public void print(java.io.OutputStream o,
Name n)
print in class PrettyPrint
public void print(java.io.OutputStream o,
int ind,
VarInit e)
print in class PrettyPrint
public void print(java.io.OutputStream o,
int ind,
ObjectDesignator od)
print in class PrettyPrint
public void print(java.io.OutputStream o,
LexicalPragma lp)
PrettyPrinto is at the start of the
line; should leave o at the start of a new line.
print in class PrettyPrint
public void print(java.io.OutputStream o,
int ind,
TypeDeclElemPragma tp)
print in class PrettyPrint
public void print(java.io.OutputStream o,
int ind,
ModifierPragma mp)
PrettyPrints should be printed starting at the current position of
o. If the declaration needs to span multiple lines (for
example, to print the statements in the body of a method), then these lines
are indented by ind spaces. It should leave o
at the start of a new-line.
print in class PrettyPrint
public void print(java.io.OutputStream o,
int ind,
StmtPragma sp)
print in class PrettyPrint
public void print(java.io.OutputStream o,
int ind,
TypeModifierPragma tp)
print in class PrettyPrintpublic java.lang.String toString(int tag)
toString in class PrettyPrint
|
ESC/Java2 © 2003,2004,2005,2006 David Cok and Joseph Kiniry © 2005,2006 UCD Dublin © 2003,2004 Radboud University Nijmegen © 1999,2000 Compaq Computer Corporation © 1997,1998,1999 Digital Equipment Corporation All Rights Reserved |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||