|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--antlr.NameSpace
Field Summary | |
private java.util.Vector |
names
|
Constructor Summary | |
NameSpace(java.lang.String name)
|
Method Summary | |
(package private) void |
emitClosures(java.io.PrintWriter out)
Method to generate the required C++ namespace closures |
(package private) void |
emitDeclarations(java.io.PrintWriter out)
Method to generate the required C++ namespace declarations |
protected void |
parse(java.lang.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 |
private java.util.Vector names
Constructor Detail |
public NameSpace(java.lang.String name)
Method Detail |
protected void parse(java.lang.String name)
void emitDeclarations(java.io.PrintWriter out)
void emitClosures(java.io.PrintWriter out)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |