antlr
Class NameSpace

java.lang.Object
  |
  +--antlr.NameSpace

public class NameSpace
extends Object

Untamed:


Field Summary
private  Vector names
           
 
Constructor Summary
NameSpace(String name)
          Enabled:
 
Method Summary
(package private)  void emitClosures(PrintWriter out)
          Method to generate the required C++ namespace closures
(package private)  void emitDeclarations(PrintWriter out)
          Method to generate the required C++ namespace declarations
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

names

private Vector names
Constructor Detail

NameSpace

public NameSpace(String name)
Enabled:

Method Detail

parse

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


emitDeclarations

void emitDeclarations(PrintWriter out)
Method to generate the required C++ namespace declarations


emitClosures

void emitClosures(PrintWriter out)
Method to generate the required C++ namespace closures



comments?