Public Member Functions | Protected Member Functions | Package Functions

antlr.NameSpace Class Reference

Inheritance diagram for antlr.NameSpace:
antlr.CSharpNameSpace

List of all members.

Public Member Functions

 NameSpace (String name)
String getName ()

Protected Member Functions

void parse (String name)

Package Functions

void emitDeclarations (PrintWriter out)
void emitClosures (PrintWriter out)

Constructor & Destructor Documentation

antlr.NameSpace.NameSpace ( String  name  ) 

Member Function Documentation

void antlr.NameSpace.emitClosures ( PrintWriter  out  )  [package]

Method to generate the required C++ namespace closures

Reimplemented in antlr.CSharpNameSpace.

References antlr.collections.impl.Vector.size().

Referenced by antlr.CppCodeGenerator.genBody(), antlr.CppCodeGenerator.genInclude(), and antlr.CppCodeGenerator.genTokenTypes().

void antlr.NameSpace.emitDeclarations ( PrintWriter  out  )  [package]

Method to generate the required C++ namespace declarations

Reimplemented in antlr.CSharpNameSpace.

References antlr.collections.impl.Vector.elements().

Referenced by antlr.CppCodeGenerator.genBody(), antlr.CppCodeGenerator.genInclude(), and antlr.CppCodeGenerator.genTokenTypes().

String antlr.NameSpace.getName (  ) 
void antlr.NameSpace.parse ( String  name  )  [protected]

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

Referenced by antlr.NameSpace.NameSpace().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties