Class DemangledVariable


  • public class DemangledVariable
    extends DemangledObject
    An interface to represent a demangled global variable.
    • Constructor Detail

      • DemangledVariable

        public DemangledVariable​(java.lang.String name)
    • Method Detail

      • getDataType

        public DemangledDataType 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: DemangledObject
        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 class DemangledObject
        Parameters:
        format - true if signature should be pretty printed
        Returns:
        a complete signature for the demangled symbol
      • isAlreadyDemangled

        protected boolean isAlreadyDemangled​(Program program,
                                             Address address)
        Description copied from class: DemangledObject
        Determine if the symbol at address has already been demangled. While memory symbols check for presence of demangledName, external symbols simply check if demangled/alternate name has already been assigned.
        Overrides:
        isAlreadyDemangled in class DemangledObject
        Parameters:
        program - the program being modified
        address - address of demangled symbol
        Returns:
        true if symbol at address has already been demangled
      • getName

        public java.lang.String getName()
        Description copied from class: DemangledObject
        Returns the demangled name of this object. NOTE: unsupported symbol characters, like whitespace, will be converted to an underscore.
        Overrides:
        getName in class DemangledObject
        Returns:
        name of this DemangledObject with unsupported characters converted to underscore