Class GlobalNamespace

  • All Implemented Interfaces:
    Namespace

    public class GlobalNamespace
    extends java.lang.Object
    implements Namespace
    The global namespace implementation class
    • Constructor Summary

      Constructors 
      ChangeConstructor Description
      GlobalNamespace​(Memory memory)
      Constructs a new GlobalNamespace
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      ChangeModifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      AddressSetView getBody()
      Get the address set for this namespace.
      long getID()
      Return the namespace id;
      java.lang.String getName()
      Get the name of the symbol for this scope.
      java.lang.String getName​(boolean includeNamespacePath)
      Returns the fully qualified name.
      Namespace getParentNamespace()
      Get the parent scope.
      Symbol getSymbol()
      Get the symbol for this namespace; Note: The global namespace will return null
      boolean isExternal()  
      void setParentNamespace​(Namespace parentNamespace)
      Set the parent namespace for this namespace.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • GLOBAL_NAMESPACE_NAME

        public static final java.lang.String GLOBAL_NAMESPACE_NAME
        Global namespace name which may (incorrectly) appear as the first element within a namespace path (e.g., Global::Foo::Bar). It is preferred that the Global namespace be omitted in favor of Foo::Bar.
        See Also:
        Constant Field Values
    • Constructor Detail

      • GlobalNamespace

        public GlobalNamespace​(Memory memory)
        Constructs a new GlobalNamespace
        Parameters:
        memory - the memory associated with this global namespace