Class DemangledNamespaceNode

java.lang.Object
ghidra.app.util.demangler.DemangledNamespaceNode
All Implemented Interfaces:
Demangled

public class DemangledNamespaceNode extends Object implements Demangled
Represents a plain namespace node that is not a type or method
  • Field Details

    • mangled

      protected String mangled
    • namespace

      protected Demangled namespace
  • Constructor Details

    • DemangledNamespaceNode

      public DemangledNamespaceNode(String mangled, String originalDemangled, String name)
      Constructor
      Parameters:
      mangled - as a refined a piece of the (larger) original mangled stream as the user can provide, though many times the larger piece is all that the user can provide
      originalDemangled - the original demangled string to match mangled string with the same caveats
      name - the name of the namespace node
  • Method Details

    • setName

      public void setName(String name)
      Description copied from interface: Demangled
      Sets the name for this object
      Specified by:
      setName in interface Demangled
      Parameters:
      name - the name
    • getName

      public String getName()
      Description copied from interface: Demangled
      Returns the demangled name of this object. NOTE: unsupported symbol characters, like whitespace, will be converted to an underscore.
      Specified by:
      getName in interface Demangled
      Returns:
      name of this DemangledObject with unsupported characters converted to underscore
      See Also:
    • getMangledString

      public String getMangledString()
      Description copied from interface: Demangled
      Returns the original mangled string
      Specified by:
      getMangledString in interface Demangled
      Returns:
      the string
    • getOriginalDemangled

      public String getOriginalDemangled()
      Description copied from interface: Demangled
      Returns the original demangled string returned by the demangling service
      Specified by:
      getOriginalDemangled in interface Demangled
      Returns:
      the original demangled string
    • getDemangledName

      public String getDemangledName()
      Description copied from interface: Demangled
      Returns the unmodified demangled name of this object. This name may contain whitespace and other characters not supported for symbol or data type creation. See Demangled.getName() for the same name modified for use within Ghidra.
      Specified by:
      getDemangledName in interface Demangled
      Returns:
      name of this DemangledObject
    • setNamespace

      public void setNamespace(Demangled ns)
      Description copied from interface: Demangled
      Sets the namespace of this demangled object
      Specified by:
      setNamespace in interface Demangled
      Parameters:
      ns - the namespace
    • getNamespace

      public Demangled getNamespace()
      Description copied from interface: Demangled
      Returns the namespace containing this demangled object
      Specified by:
      getNamespace in interface Demangled
      Returns:
      the namespace containing this demangled object
    • getNamespaceString

      public String getNamespaceString()
      Description copied from interface: Demangled
      Returns a representation of this object as fully-qualified namespace. The value returned here may have had some special characters replaced, such as ' ' replaced with '_' and '::' replaced with '--'.
      Specified by:
      getNamespaceString in interface Demangled
      Returns:
      the full namespace
    • getNamespaceName

      public String getNamespaceName()
      Description copied from interface: Demangled
      Returns this object's namespace name without the fully-qualified parent path. The value returned here may have had some special characters replaced, such as ' ' replaced with '_' and '::' replaced with '--'.
      Specified by:
      getNamespaceName in interface Demangled
      Returns:
      the name
    • getSignature

      public String getSignature()
      Description copied from interface: Demangled
      Generates a complete representation of this object to include all know attributes of this object
      Specified by:
      getSignature in interface Demangled
      Returns:
      the signature
    • toString

      public String toString()
      Overrides:
      toString in class Object