Package ghidra.app.util.demangler
Class DemangledFunctionPointer
- java.lang.Object
-
- ghidra.app.util.demangler.DemangledType
-
- ghidra.app.util.demangler.DemangledDataType
-
- ghidra.app.util.demangler.AbstractDemangledFunctionDefinitionDataType
-
- ghidra.app.util.demangler.DemangledFunctionPointer
-
- All Implemented Interfaces:
Demangled
public class DemangledFunctionPointer extends AbstractDemangledFunctionDefinitionDataType
A class to represent a demangled function pointer
-
-
Field Summary
-
Fields inherited from class ghidra.app.util.demangler.AbstractDemangledFunctionDefinitionDataType
callingConvention, DEFAULT_NAME_PREFIX, EMPTY_STRING, ID, isConstPointer, isTrailingPointer64, isTrailingRestrict, isTrailingUnaligned, modifier, parameters, parentName, returnType
-
Fields inherited from class ghidra.app.util.demangler.DemangledDataType
ARR_NOTATION, BOOL, CHAR, CLASS, COCLASS, COINTERFACE, COMPLEX, CONST, DOUBLE, ENUM, FLOAT, FLOAT128, INT, INT0_T, INT128, INT16, INT32, INT64, INT8, LONG, LONG_DOUBLE, LONG_LONG, PRIMITIVES, PTR_NOTATION, PTR64, REF_NOTATION, RESTRICT, SHORT, SIGNED, SPACE, STRING, STRUCT, UNALIGNED, UNDEFINED, UNION, UNSIGNED, VARARGS, VOID, VOLATILE, WCHAR_T
-
Fields inherited from class ghidra.app.util.demangler.DemangledType
mangled, namespace, template
-
-
Constructor Summary
Constructors Constructor Description DemangledFunctionPointer(java.lang.String mangled, java.lang.String originalDemangled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddFunctionPointerParens(java.lang.StringBuilder buffer, java.lang.String s)protected java.lang.StringgetTypeString()Returns the string for this type of reference (e.g., * or &)voidsetDisplayDefaultFunctionPointerSyntax(boolean b)Signals whether to display function pointer syntax when there is no function name, which is '(*)', such as found in this example 'void (*)()'.-
Methods inherited from class ghidra.app.util.demangler.AbstractDemangledFunctionDefinitionDataType
addParameter, addParentName, getCallingConvention, getConventionPointerNameString, getDataType, getParameters, getReturnType, getSignature, isConstPointer, isTrailingPointer64, isTrailingRestrict, isTrailingUnaligned, setCallingConvention, setConstPointer, setModifier, setReturnType, setTrailingPointer64, setTrailingRestrict, setTrailingUnaligned, toSignature
-
Methods inherited from class ghidra.app.util.demangler.DemangledDataType
getArrayDimensions, getBasedName, getMemberScope, getPointerLevels, incrementPointerLevels, isArray, isClass, isCoclass, isCointerface, isComplex, isEnum, isPointer, isPointer64, isPrimitive, isReference, isRestrict, isSigned, isStruct, isTemplate, isUnaligned, isUnion, isUnsigned, isVarArgs, isVoid, setArray, setBasedName, setClass, setCoclass, setCointerface, setComplex, setEnum, setEnumType, setEnumType, setMemberScope, setPointer64, setReference, setRestrict, setRValueReference, setSigned, setStruct, setTemplate, setUnaligned, setUnion, setUnsigned, setVarArgs, toString
-
Methods inherited from class ghidra.app.util.demangler.DemangledType
getDemangledName, getMangledString, getName, getNamespace, getNamespaceName, getNamespaceString, getOriginalDemangled, getTemplate, isConst, isVolatile, setConst, setName, setNamespace, setTemplate, setVolatile
-
-
-
-
Method Detail
-
getTypeString
protected java.lang.String getTypeString()
Description copied from class:AbstractDemangledFunctionDefinitionDataTypeReturns the string for this type of reference (e.g., * or &)- Specified by:
getTypeStringin classAbstractDemangledFunctionDefinitionDataType- Returns:
- the string
-
setDisplayDefaultFunctionPointerSyntax
public void setDisplayDefaultFunctionPointerSyntax(boolean b)
Signals whether to display function pointer syntax when there is no function name, which is '(*)', such as found in this example 'void (*)()'. the default is true- Parameters:
b- true to display nameless function pointer syntax; false to not display
-
addFunctionPointerParens
protected void addFunctionPointerParens(java.lang.StringBuilder buffer, java.lang.String s)- Overrides:
addFunctionPointerParensin classAbstractDemangledFunctionDefinitionDataType
-
-