Package ghidra.app.util.demangler
Class DemangledString
- java.lang.Object
- 
- ghidra.app.util.demangler.DemangledObject
- 
- ghidra.app.util.demangler.DemangledString
 
 
- 
- All Implemented Interfaces:
- Demangled
 
 public class DemangledString extends DemangledObject 
- 
- 
Field Summary- 
Fields inherited from class ghidra.app.util.demangler.DemangledObjectbasedName, EMPTY_STRING, isRestrict, isStatic, isThunk, isUnaligned, isVirtual, mangled, memberScope, namespace, NAMESPACE_SEPARATOR, originalDemangled, SPACE, SPACE_PATTERN, specialPrefix, storageClass, visibility
 
- 
 - 
Constructor SummaryConstructors Constructor Description DemangledString(java.lang.String mangled, java.lang.String originalDemangled, java.lang.String name, java.lang.String string, int length, boolean unicode)Construct demangled string.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapplyTo(Program program, Address address, DemanglerOptions options, TaskMonitor monitor)intgetLength()Returns the length in bytes of the demangled string.java.lang.StringgetSignature(boolean format)Returns a complete signature for the demangled symbol.java.lang.StringgetString()Returns the demangled string.booleanisUnicode()Returns true if the demangled string is unicode.- 
Methods inherited from class ghidra.app.util.demangler.DemangledObjectapplyDemangledName, applyDemangledName, applyPlateCommentOnly, createNamespace, demangledNameSuccessfully, ensureNameLength, generatePlateComment, getBasedName, getDemangledName, getMangledString, getMemberScope, getName, getNamespace, getNamespaceName, getNamespaceString, getOriginalDemangled, getSignature, getSpecialPrefix, getStorageClass, getVisibility, isAlreadyDemangled, isConst, isPointer64, isRestrict, isStatic, isThunk, isUnaligned, isVirtual, isVolatile, setBackupPlateComment, setBasedName, setConst, setMemberScope, setName, setNamespace, setPointer64, setRestrict, setSpecialPrefix, setStatic, setStorageClass, setThunk, setUnaligned, setVirtual, setVisibilty, setVolatile, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
DemangledStringpublic DemangledString(java.lang.String mangled, java.lang.String originalDemangled, java.lang.String name, java.lang.String string, int length, boolean unicode)Construct demangled string.- Parameters:
- mangled- the source mangled string
- originalDemangled- the original demangled string
- name- name associated with this object
- string- string text associated with this object or null. This is used to establish label and plate comment if specified. If null, name will be used as symbol name.
- length- length of string or -1. Actual string data type applied currently assumes null terminated string.
- unicode- true if string is a Unicode string.
 
 
- 
 - 
Method Detail- 
getSignaturepublic java.lang.String getSignature(boolean format) 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 class- DemangledObject
- Parameters:
- format- true if signature should be pretty printed
- Returns:
- a complete signature for the demangled symbol
 
 - 
applyTopublic boolean applyTo(Program program, Address address, DemanglerOptions options, TaskMonitor monitor) throws java.lang.Exception - Overrides:
- applyToin class- DemangledObject
- Throws:
- java.lang.Exception
 
 - 
getStringpublic java.lang.String getString() Returns the demangled string.- Returns:
- the demangled string
 
 - 
getLengthpublic int getLength() Returns the length in bytes of the demangled string.- Returns:
- the length in bytes of the demangled string
 
 - 
isUnicodepublic boolean isUnicode() Returns true if the demangled string is unicode.- Returns:
- true if the demangled string is unicode
 
 
- 
 
-