gov.llnl.babel.parsers.sidl2
Class SIDLTouchUpVisitor
java.lang.Object
   gov.llnl.babel.parsers.sidl2.SIDLTouchUpVisitor
gov.llnl.babel.parsers.sidl2.SIDLTouchUpVisitor
- All Implemented Interfaces: 
- SIDLParserVisitor
- public class SIDLTouchUpVisitor 
- extends java.lang.Object- implements SIDLParserVisitor
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.
| Field Summary | 
| protected  java.io.PrintStream | out
 | 
 
 
| Method Summary | 
| protected  java.lang.String | resolveDoc(ParseTreeNode node)Resolve the doc string from the special tokens preceding the node
 | 
| protected  java.lang.String | resolveName(ParseTreeNode node,
            boolean listall)Resolve the string-name of the ParseTreeNode instance
 | 
|  java.lang.Object | visit(ParseTreeNode node,
      java.lang.Object data)
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
out
protected java.io.PrintStream out
SIDLTouchUpVisitor
public SIDLTouchUpVisitor(java.io.PrintStream o)
resolveName
protected java.lang.String resolveName(ParseTreeNode node,
                                       boolean listall)
- Resolve the string-name of the ParseTreeNode instance
 
- 
 
- 
- Parameters:
- node- the node whos name needs to be determined
- listall- flag signifying special case where name may be spread across tokens
- Returns:
- string name to set node.name to
 
resolveDoc
protected java.lang.String resolveDoc(ParseTreeNode node)
- Resolve the doc string from the special tokens preceding the node
 
- 
 
- 
- Parameters:
- node-
- Returns:
 
visit
public java.lang.Object visit(ParseTreeNode node,
                              java.lang.Object data)
- 
- Specified by:
- visitin interface- SIDLParserVisitor
 
-