Package ghidra.app.util.demangler
Interface Demangler
- All Superinterfaces:
ExtensionPoint
NOTE: ALL DEMANGLER CLASSES MUST END IN "Demangler". If not,
the ClassSearcher will not find them.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canDemangle
(Program program) default DemanglerOptions
Creates default options for this particular demanglerdefault MangledContext
createMangledContext
(String mangled, DemanglerOptions options, Program program, Address address) Creates a mangled contextdemangle
(MangledContext context) Attempts to demangle the string of the mangled context and sets the mangled context on theDemangledObject
default DemangledObject
Attempts to demangle the given string using a context (createMangledContext(String, DemanglerOptions, Program, Address)
with default options (createDefaultOptions()
.default DemangledObject
demangle
(String mangled, DemanglerOptions options) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
canDemangle
-
demangle
Attempts to demangle the given string using a context (createMangledContext(String, DemanglerOptions, Program, Address)
with default options (createDefaultOptions()
.- Parameters:
mangled
- the mangled string- Returns:
- the result;
null
is possible if the mangled string is not supported - Throws:
DemangledException
- if the string cannot be demangled
-
demangle
@Deprecated(since="11.3", forRemoval=true) default DemangledObject demangle(String mangled, DemanglerOptions options) throws DemangledException Deprecated, for removal: This API element is subject to removal in a future version.Attempts to demangle the given string using the given options- Parameters:
mangled
- the mangled stringoptions
- the options- Returns:
- the result;
null
is possible if the mangled string is not supported - Throws:
DemangledException
- if the string cannot be demangled
-
demangle
Attempts to demangle the string of the mangled context and sets the mangled context on theDemangledObject
- Parameters:
context
- the mangled context- Returns:
- the result;
null
is possible if the mangled string is not supported - Throws:
DemangledException
- if the string cannot be demangled
-
createDefaultOptions
Creates default options for this particular demangler- Returns:
- the options
-
createMangledContext
default MangledContext createMangledContext(String mangled, DemanglerOptions options, Program program, Address address) Creates a mangled context- Parameters:
mangled
- the mangled nameoptions
- the demangler options; if null, the default options are createdprogram
- the program; can be nulladdress
- the address for the name in the program; can be null- Returns:
- the mangled context
-
demangle(String)
ordemangle(MangledContext)
.