Package ghidra.app.util.demangler
Class DemangledDataType
java.lang.Object
ghidra.app.util.demangler.DemangledType
ghidra.app.util.demangler.DemangledDataType
- All Implemented Interfaces:
Demangled
- Direct Known Subclasses:
AbstractDemangledFunctionDefinitionDataType
,DemangledStructure
A class to represent a demangled data type.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
protected static final CategoryPath
protected static final CategoryPath
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String[]
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final char
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class ghidra.app.util.demangler.DemangledType
mangled, namespace, template
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getDataType
(DataTypeManager dataTypeManager) Converts this demangled datatype into the corresponding Ghidra datatypeprotected static CategoryPath
getDemanglerCategoryPath
(Demangled namespace) int
Generates a complete representation of this object to include all know attributes of this objectvoid
boolean
isArray()
boolean
isClass()
boolean
boolean
boolean
boolean
isEnum()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isSigned()
boolean
isStruct()
boolean
boolean
boolean
isUnion()
boolean
boolean
boolean
isVoid()
void
setArray
(int dimensions) void
setBasedName
(String basedName) void
setClass()
void
void
void
void
setEnum()
void
setEnumType
(String enumType) void
void
setMemberScope
(String memberScope) void
void
void
void
rvalue reference; C++11void
void
void
void
void
setUnion()
void
void
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
-
Field Details
-
DEMANGLER_ROOT_CATEGORY_PATH
-
DEMANGLER_ANONYMOUS_FUNCTION_CATEGORY_PATH
-
SPACE
public static final char SPACE- See Also:
-
UNSIGNED
- See Also:
-
SIGNED
- See Also:
-
ARR_NOTATION
- See Also:
-
REF_NOTATION
- See Also:
-
RIGHT_REF_NOTATION
- See Also:
-
PTR_NOTATION
- See Also:
-
VOLATILE
- See Also:
-
COMPLEX
- See Also:
-
CLASS
- See Also:
-
ENUM
- See Also:
-
STRUCT
- See Also:
-
UNION
- See Also:
-
CONST
- See Also:
-
COCLASS
- See Also:
-
COINTERFACE
- See Also:
-
VARARGS
- See Also:
-
VOID
- See Also:
-
BOOL
- See Also:
-
CHAR
- See Also:
-
WCHAR_T
- See Also:
-
WCHAR16
- See Also:
-
WCHAR32
- See Also:
-
CHAR8_T
- See Also:
-
SHORT
- See Also:
-
INT
- See Also:
-
INT0_T
- See Also:
-
LONG
- See Also:
-
LONG_LONG
- See Also:
-
FLOAT
- See Also:
-
FLOAT2
- See Also:
-
DOUBLE
- See Also:
-
INT8
- See Also:
-
INT16
- See Also:
-
INT32
- See Also:
-
INT64
- See Also:
-
INT128
- See Also:
-
FLOAT128
- See Also:
-
LONG_DOUBLE
- See Also:
-
PTR64
- See Also:
-
STRING
- See Also:
-
UNDEFINED
- See Also:
-
UNALIGNED
- See Also:
-
RESTRICT
- See Also:
-
PRIMITIVES
-
-
Constructor Details
-
DemangledDataType
-
-
Method Details
-
getDataType
Converts this demangled datatype into the corresponding Ghidra datatype- Parameters:
dataTypeManager
- the manager to search and whose data organization should be used- Returns:
- the Ghidra datatype corresponding to the demangled datatype
-
getDemanglerCategoryPath
-
getPointerLevels
public int getPointerLevels() -
incrementPointerLevels
public void incrementPointerLevels() -
setArray
public void setArray(int dimensions) -
getArrayDimensions
public int getArrayDimensions() -
setClass
public void setClass() -
setComplex
public void setComplex() -
setEnum
public void setEnum() -
setPointer64
public void setPointer64() -
setReference
public void setReference() -
setLValueReference
public void setLValueReference() -
setRValueReference
public void setRValueReference()rvalue reference; C++11 -
setSigned
public void setSigned() -
setStruct
public void setStruct() -
setTemplate
public void setTemplate() -
setUnion
public void setUnion() -
setCoclass
public void setCoclass() -
setCointerface
public void setCointerface() -
setUnsigned
public void setUnsigned() -
setUnaligned
public void setUnaligned() -
isUnaligned
public boolean isUnaligned() -
setVarArgs
public void setVarArgs() -
setEnumType
-
setRestrict
public void setRestrict() -
isRestrict
public boolean isRestrict() -
isArray
public boolean isArray() -
isClass
public boolean isClass() -
isComplex
public boolean isComplex() -
isEnum
public boolean isEnum() -
isPointer
public boolean isPointer() -
isPointer64
public boolean isPointer64() -
isReference
public boolean isReference() -
isLValueReference
public boolean isLValueReference() -
isRValueReference
public boolean isRValueReference() -
isSigned
public boolean isSigned() -
isStruct
public boolean isStruct() -
isTemplate
public boolean isTemplate() -
isUnion
public boolean isUnion() -
isCoclass
public boolean isCoclass() -
isCointerface
public boolean isCointerface() -
isUnsigned
public boolean isUnsigned() -
isVarArgs
public boolean isVarArgs() -
isVoid
public boolean isVoid() -
setEnumType
-
getBasedName
-
setBasedName
-
getMemberScope
-
setMemberScope
-
isPrimitive
public boolean isPrimitive() -
getSignature
Description copied from interface:Demangled
Generates a complete representation of this object to include all know attributes of this object- Specified by:
getSignature
in interfaceDemangled
- Overrides:
getSignature
in classDemangledType
- Returns:
- the signature
-
toString
- Overrides:
toString
in classDemangledType
-