|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.prorefactor.core.JPNodeLister
public class JPNodeLister
Prints out the structure of a JPNode AST. Prints nodes one per line, using indentation to show the tree structure. Use TokenLister instead if you want to print using Proparse's API directly.
| Field Summary | |
|---|---|
java.lang.String |
lineSep
|
boolean |
showColumn
|
boolean |
showFilename
|
boolean |
showLinenum
|
boolean |
showStoretype
|
protected java.lang.String |
spacer
|
protected TokenTypesI |
tokenTypes
|
| Constructor Summary | |
|---|---|
JPNodeLister(JPNode topNode,
java.lang.String outfilename,
TokenTypesI tokenTypes)
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
generateLineText(JPNode node)
This returns the line's text including the text indent, but not including the newline. |
protected java.lang.String |
indent()
Get the current indent based on indentby |
void |
print()
Call this method to write the output file. |
JPNodeLister |
setIndentby(int indentby)
Number of spaces to indent by. |
protected JPNodeLister |
setSpacer(java.lang.String spacer)
The String spacer is used to separate tokens or components of what is printed on one line. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean showColumn
public boolean showFilename
public boolean showLinenum
public boolean showStoretype
public java.lang.String lineSep
protected java.lang.String spacer
protected TokenTypesI tokenTypes
| Constructor Detail |
|---|
public JPNodeLister(JPNode topNode,
java.lang.String outfilename,
TokenTypesI tokenTypes)
| Method Detail |
|---|
protected java.lang.String generateLineText(JPNode node)
protected final java.lang.String indent()
public void print()
throws java.io.IOException
java.io.IOExceptionpublic JPNodeLister setIndentby(int indentby)
protected JPNodeLister setSpacer(java.lang.String spacer)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||