Package ghidra.app.util.demangler
Class DemangledLabel
java.lang.Object
ghidra.app.util.demangler.DemangledObject
ghidra.app.util.demangler.DemangledLabel
- All Implemented Interfaces:
Demangled
A class to represent a
DemangledObject that should get represented as a Ghidra label-
Field Summary
Fields inherited from class ghidra.app.util.demangler.DemangledObject
basedName, EMPTY_STRING, isRestrict, isStatic, isThunk, isUnaligned, isVirtual, mangled, mangledContext, memberScope, namespace, NAMESPACE_SEPARATOR, originalDemangled, rawDemangled, SPACE, SPACE_PATTERN, specialPrefix, storageClass, visibility -
Constructor Summary
ConstructorsConstructorDescriptionDemangledLabel(String mangled, String originalDemangled, String name) Creates a newDemangledLabel -
Method Summary
Modifier and TypeMethodDescriptionbooleanapplyTo(Program program, Address address, DemanglerOptions options, TaskMonitor monitor) Apply this demangled object detail to the specified program.getSignature(boolean format) Returns a complete signature for the demangled symbol.Methods inherited from class ghidra.app.util.demangler.DemangledObject
applyDemangledName, applyDemangledName, applyPlateCommentOnly, applyUsingContext, createNamespace, demangledNameSuccessfully, ensureNameLength, generatePlateComment, getBasedName, getDemangledName, getErrorMessage, getMangledContext, getMangledString, getMemberScope, getName, getNamespace, getNamespaceName, getNamespaceString, getOriginalDemangled, getRawDemangled, getSignature, getSpecialPrefix, getStorageClass, getVisibility, isAlreadyDemangled, isConst, isPointer64, isRestrict, isStatic, isThunk, isUnaligned, isVirtual, isVolatile, setBackupPlateComment, setBasedName, setConst, setErrorMessage, setMangledContext, setMemberScope, setName, setNamespace, setOriginalDemangled, setPointer64, setRawDemangledString, setRestrict, setSpecialPrefix, setStatic, setStorageClass, setThunk, setUnaligned, setVirtual, setVisibilty, setVolatile, toString
-
Constructor Details
-
DemangledLabel
Creates a newDemangledLabel- Parameters:
mangled- The mangled stringoriginalDemangled- The natively demangled stringname- The label name
-
-
Method Details
-
applyTo
public boolean applyTo(Program program, Address address, DemanglerOptions options, TaskMonitor monitor) throws Exception Description copied from class:DemangledObjectApply this demangled object detail to the specified program.
NOTE: An open Program transaction must be established prior to invoking this method.- Overrides:
applyToin classDemangledObject- Parameters:
program- program to which demangled data should be applied.address- address which corresponds to this demangled objectoptions- options which control how demangled data is appliedmonitor- task monitor- Returns:
- true if successfully applied, else false
- Throws:
Exception- if an error occurs during the apply operation
-
getSignature
Description copied from class:DemangledObjectReturns a complete signature for the demangled symbol.
For example: "unsigned long foo" "unsigned char * ClassA::getFoo(float, short *)" "void * getBar(int **, MyStruct &)"
Note: based on the underlying mangling scheme, the return type may or may not be specified in the signature.- Specified by:
getSignaturein classDemangledObject- Parameters:
format- true if signature should be pretty printed- Returns:
- a complete signature for the demangled symbol
-