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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected static final CategoryPathprotected static final CategoryPathstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String[]static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final charstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class ghidra.app.util.demangler.DemangledType
mangled, namespace, template -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetDataType(DataTypeManager dataTypeManager) Converts this demangled datatype into the corresponding Ghidra datatypeprotected static CategoryPathgetDemanglerCategoryPath(Demangled namespace) intGenerates a complete representation of this object to include all know attributes of this objectvoidbooleanisArray()booleanisClass()booleanbooleanbooleanbooleanisEnum()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisSigned()booleanisStruct()booleanbooleanbooleanisUnion()booleanbooleanbooleanisVoid()voidsetArray(int dimensions) voidsetBasedName(String basedName) voidsetClass()voidvoidvoidvoidsetEnum()voidsetEnumType(String enumType) voidvoidsetMemberScope(String memberScope) voidvoidvoidvoidrvalue reference; C++11voidvoidvoidvoidvoidsetUnion()voidvoidtoString()Methods inherited from class ghidra.app.util.demangler.DemangledType
getDemangledName, getMangledString, getName, getNamespace, getNamespaceName, getNamespaceString, getOriginalDemangled, getTemplate, isConst, isVolatile, setConst, setName, setNamespace, setTemplate, setVolatileMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ghidra.app.util.demangler.Demangled
getMangledContext, setMangledContext
-
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:DemangledGenerates a complete representation of this object to include all know attributes of this object- Specified by:
getSignaturein interfaceDemangled- Overrides:
getSignaturein classDemangledType- Returns:
- the signature
-
toString
- Overrides:
toStringin classDemangledType
-