Package antlr
Class NameSpace
- java.lang.Object
-
- antlr.NameSpace
-
- Direct Known Subclasses:
CSharpNameSpace
public class NameSpace extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (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 declarationsString
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.
-
-
-
Constructor Detail
-
NameSpace
public NameSpace(String name)
-
-
Method Detail
-
getName
public String getName()
-
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
-
-