Package util.demangler
Class GenericDemangledVariable
- java.lang.Object
-
- util.demangler.GenericDemangledObject
-
- util.demangler.GenericDemangledVariable
-
public class GenericDemangledVariable extends GenericDemangledObject
An interface to represent a demangled global variable.
-
-
Field Summary
-
Fields inherited from class util.demangler.GenericDemangledObject
AT, basedName, EMPTY_STRING, isConst, isPointer64, isRestrict, isStatic, isStruct, isThunk, isUnaligned, isUnsigned, isVirtual, isVolatile, memberScope, name, namespace, NAMESPACE_SEPARATOR, originalMangled, SPACE, specialMidfix, specialPrefix, specialSuffix, storageClass, visibility
-
-
Constructor Summary
Constructors Constructor Description GenericDemangledVariable(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GenericDemangledDataType
getDataType()
Returns the data type of this variable.java.lang.String
getSignature(boolean format)
Returns a complete signature for the demangled symbol.void
setDatatype(GenericDemangledDataType datatype)
-
Methods inherited from class util.demangler.GenericDemangledObject
generatePlateComment, getBasedName, getMemberScope, getName, getNamespace, getOriginalMangled, getSpecialMidfix, getSpecialPrefix, getSpecialSuffix, getStorageClass, getVisibility, isConst, isPointer64, isRestrict, isStatic, isThunk, isUnaligned, isVirtual, isVolatile, pad, setBasedName, setConst, setMemberScope, setName, setNamespace, setOriginalMangled, setPointer64, setRestrict, setSignature, setSpecialMidfix, setSpecialPrefix, setSpecialSuffix, setStatic, setStorageClass, setStruct, setThunk, setUnaligned, setUnsigned, setVirtual, setVisibilty, setVolatile, toString
-
-
-
-
Method Detail
-
setDatatype
public void setDatatype(GenericDemangledDataType datatype)
-
getDataType
public GenericDemangledDataType getDataType()
Returns the data type of this variable.- Returns:
- the data type of this variable
-
getSignature
public java.lang.String getSignature(boolean format)
Description copied from class:GenericDemangledObject
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 classGenericDemangledObject
- Parameters:
format
- true if signature should be pretty printed- Returns:
- a complete signature for the demangled symbol
-
-