gov.llnl.babel.parsers.sidl2
Class SIDLTouchUpVisitor
java.lang.Object
gov.llnl.babel.parsers.sidl2.SIDLTouchUpVisitor
- SIDLParserVisitor
public class SIDLTouchUpVisitor
extends java.lang.Object
This class does some final touch up on the parse tree after generation.
Its main job is to ensure the appropriate ParseTreeNode instances have
their name and doc fields set.
out
protected PrintStream out
SIDLTouchUpVisitor
public SIDLTouchUpVisitor(PrintStream o)
resolveDoc
protected String resolveDoc(ParseTreeNode node)
Resolve the doc string from the special tokens preceding the node
resolveName
protected String resolveName(ParseTreeNode node,
boolean listall)
Resolve the string-name of the ParseTreeNode instance
node
- the node whos name needs to be determinedlistall
- flag signifying special case where name may be spread across tokens
- string name to set node.name to