|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxtc.tree.Visitor
xtc.tree.ParseTreeStripper
public class ParseTreeStripper
Visitor to strip parse trees. This visitor eliminates any formatting and tokens, replacing the former with the annotated node and the latter with the text.
| Constructor Summary | |
|---|---|
ParseTreeStripper()
Create a new parse tree stripper. |
|
| Method Summary | |
|---|---|
Annotation |
visit(Annotation n)
Visit the specified annotation. |
java.lang.Object |
visit(Formatting f)
Visit the specified formatting. |
GNode |
visit(GNode n)
Visit the specified generic node. |
java.lang.String |
visit(Token t)
Visit the specified token. |
| Methods inherited from class xtc.tree.Visitor |
|---|
dispatch, equals, hashCode, iterate, map, mapInPlace, unableToVisit |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParseTreeStripper()
| Method Detail |
|---|
public GNode visit(GNode n)
public Annotation visit(Annotation n)
visit in class Visitorn - The annotation.
public java.lang.Object visit(Formatting f)
public java.lang.String visit(Token t)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||