antlr
Class NameSpace
public
class
NameSpace
extends Object
ANTLR Translator Generator
Project led by Terence Parr at http://www.cs.usfca.edu
Software rights: http://www.antlr.org/license.html
Container for a C++ namespace specification. Namespaces can be
nested, so this contains a vector of all the nested names.
Author: David Wagner (JPL/Caltech) 8-12-00
$Id: //depot/code/org.antlr/release/antlr-2.7.7/antlr/NameSpace.java#2 $
Method Summary |
void | emitClosures(PrintWriter out)
Method to generate the required C++ namespace closures |
void | emitDeclarations(PrintWriter out)
Method to generate the required C++ namespace declarations |
String | getName() |
protected void | parse(String name)
Parse a C++ namespace declaration into seperate names
splitting on :: We could easily parameterize this to make
the delimiter a language-specific parameter, or use subclasses
to support C++ namespaces versus java packages. |
public NameSpace(String name)
void emitClosures(PrintWriter out)
Method to generate the required C++ namespace closures
void emitDeclarations(PrintWriter out)
Method to generate the required C++ namespace declarations
public String getName()
protected void parse(String name)
Parse a C++ namespace declaration into seperate names
splitting on :: We could easily parameterize this to make
the delimiter a language-specific parameter, or use subclasses
to support C++ namespaces versus java packages. -DAW