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) |
antlr.NameSpace.NameSpace | ( | String | name | ) |
References antlr.NameSpace.parse().
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 | ( | ) |
Referenced by antlr.CSharpNameSpace.emitDeclarations().
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().