Package ghidra.app.util.demangler
Class DemangledType
java.lang.Object
ghidra.app.util.demangler.DemangledType
- All Implemented Interfaces:
Demangled
- Direct Known Subclasses:
DemangledDataType
Represents a demangled string. This class is really just a placeholder for demangled
information. See
DemangledObject
for a class that represents software concepts that
can be applied to a program. The DemangledObject
may use instances of this class
to compose its internal state for namespace information, return types and parameters.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the unmodified demangled name of this object.Returns the original mangled stringgetName()
Returns the demangled name of this object.Returns the namespace containing this demangled objectReturns this object's namespace name without the fully-qualified parent path.Returns a representation of this object as fully-qualified namespace.Returns the original demangled string returned by the demangling serviceGenerates a complete representation of this object to include all know attributes of this objectboolean
isConst()
boolean
void
setConst()
void
Sets the name for this objectvoid
setNamespace
(Demangled namespace) Sets the namespace of this demangled objectvoid
setTemplate
(DemangledTemplate template) void
toString()
-
Field Details
-
mangled
-
namespace
-
template
-
-
Constructor Details
-
DemangledType
-
-
Method Details
-
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. SeeDemangled.getName()
for the same name modified for use within Ghidra.- Specified by:
getDemangledName
in interfaceDemangled
- Returns:
- name of this DemangledObject
-
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. -
setName
Description copied from interface:Demangled
Sets the name for this object -
getOriginalDemangled
Description copied from interface:Demangled
Returns the original demangled string returned by the demangling service- Specified by:
getOriginalDemangled
in interfaceDemangled
- Returns:
- the original demangled string
-
getMangledString
Description copied from interface:Demangled
Returns the original mangled string- Specified by:
getMangledString
in interfaceDemangled
- Returns:
- the string
-
isConst
public boolean isConst() -
setConst
public void setConst() -
isVolatile
public boolean isVolatile() -
setVolatile
public void setVolatile() -
getNamespace
Description copied from interface:Demangled
Returns the namespace containing this demangled object- Specified by:
getNamespace
in interfaceDemangled
- Returns:
- the namespace containing this demangled object
-
setNamespace
Description copied from interface:Demangled
Sets the namespace of this demangled object- Specified by:
setNamespace
in interfaceDemangled
- Parameters:
namespace
- the namespace
-
getTemplate
-
setTemplate
-
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 interfaceDemangled
- Returns:
- the signature
-
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 interfaceDemangled
- Returns:
- the full namespace
-
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 interfaceDemangled
- Returns:
- the name
-
toString
-