Package ghidra.app.util.demangler
Class DemangledAddressTable
java.lang.Object
ghidra.app.util.demangler.DemangledObject
ghidra.app.util.demangler.DemangledAddressTable
- All Implemented Interfaces:
Demangled
-
Field Summary
Fields inherited from class ghidra.app.util.demangler.DemangledObject
basedName, EMPTY_STRING, isRestrict, isStatic, isThunk, isUnaligned, isVirtual, mangled, memberScope, namespace, NAMESPACE_SEPARATOR, originalDemangled, SPACE, SPACE_PATTERN, specialPrefix, storageClass, visibility
-
Constructor Summary
ConstructorsConstructorDescriptionDemangledAddressTable
(String mangled, String originalDemangled, String name, boolean calculateLength) Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
applyTo
(Program program, Address address, DemanglerOptions options, TaskMonitor monitor) int
Returns the length of the address table.getSignature
(boolean format) Returns a complete signature for the demangled symbol.Methods inherited from class ghidra.app.util.demangler.DemangledObject
applyDemangledName, applyDemangledName, applyPlateCommentOnly, createNamespace, demangledNameSuccessfully, ensureNameLength, generatePlateComment, getBasedName, getDemangledName, getErrorMessage, getMangledString, getMemberScope, getName, getNamespace, getNamespaceName, getNamespaceString, getOriginalDemangled, getSignature, getSpecialPrefix, getStorageClass, getVisibility, isAlreadyDemangled, isConst, isPointer64, isRestrict, isStatic, isThunk, isUnaligned, isVirtual, isVolatile, setBackupPlateComment, setBasedName, setConst, setErrorMessage, setMemberScope, setName, setNamespace, setPointer64, setRestrict, setSpecialPrefix, setStatic, setStorageClass, setThunk, setUnaligned, setVirtual, setVisibilty, setVolatile, toString
-
Constructor Details
-
DemangledAddressTable
public DemangledAddressTable(String mangled, String originalDemangled, String name, boolean calculateLength) Constructor- Parameters:
mangled
- the source mangled stringoriginalDemangled
- the original demangled stringname
- the name of the address tablecalculateLength
- true if the length of this address table should be calculdated at analysis time
-
-
Method Details
-
getLength
public int getLength()Returns the length of the address table. -1 indicates the length is unknown.- Returns:
- the length of the address table
-
getSignature
Description copied from class:DemangledObject
Returns 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:
getSignature
in classDemangledObject
- Parameters:
format
- true if signature should be pretty printed- Returns:
- a complete signature for the demangled symbol
-
applyTo
public boolean applyTo(Program program, Address address, DemanglerOptions options, TaskMonitor monitor) throws Exception - Overrides:
applyTo
in classDemangledObject
- Throws:
Exception
-