Class DemangledType

    • Constructor Detail

      • DemangledType

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

      • convertToNamespace

        public static DemangledType convertToNamespace​(GenericDemangledType otherNamespace)
        Takes a DemangledType with a name that contains namespace elements (such as Foo::Bar) and breaks it into a hierarchy of types where each type represents one item in the list of namespace elements.
        Parameters:
        demangledType - the type to split
        Returns:
        the original type if the name does not represent a namespace; a new type that contains a child, that contains a child and so on, representing the split-up of the original namespace string.
      • getDemangledName

        public java.lang.String getDemangledName()
        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 getName() for the same name modified for use within Ghidra.
        Returns:
        name of this DemangledObject
      • getName

        public java.lang.String getName()
        Get the name of this type. NOTE: unsupported symbol characters, like whitespace, will be converted to an underscore.
        Returns:
        name of this DemangledType suitable for namespace creation.
      • setName

        public void setName​(java.lang.String name)
        Sets the name of the demangled type object.
        Parameters:
        name - the new name
      • setOriginalMangled

        public void setOriginalMangled​(java.lang.String mangled)
        Sets the original mangled name
        Parameters:
        mangled - the original mangled name
      • getOriginalMangled

        public java.lang.String getOriginalMangled()
        Sets the original mangled name
        Parameters:
        mangled - the original mangled name
      • isConst

        public boolean isConst()
      • setConst

        public void setConst()
      • isFunction

        public boolean isFunction()
      • isVolatile

        public boolean isVolatile()
      • setVolatile

        public void setVolatile()
      • setNamespace

        public void setNamespace​(DemangledType namespace)
      • toSignature

        public java.lang.String toSignature()
      • toNamespace

        public java.lang.String toNamespace()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object