Package antlr

Class NameSpace

  • Direct Known Subclasses:
    CSharpNameSpace

    public class NameSpace
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      NameSpace​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (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
      java.lang.String getName()  
      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
    • Constructor Detail

      • NameSpace

        public NameSpace​(java.lang.String name)
    • Method Detail

      • getName

        public java.lang.String getName()
      • parse

        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. -DAW
      • emitDeclarations

        void emitDeclarations​(java.io.PrintWriter out)
        Method to generate the required C++ namespace declarations
      • emitClosures

        void emitClosures​(java.io.PrintWriter out)
        Method to generate the required C++ namespace closures