Class AbstractDemangledFunctionDefinitionDataType

    • Field Detail

      • DEFAULT_NAME_PREFIX

        protected static final java.lang.String DEFAULT_NAME_PREFIX
        See Also:
        Constant Field Values
      • ID

        protected static int ID
      • callingConvention

        protected java.lang.String callingConvention
      • modifier

        protected java.lang.String modifier
      • isConstPointer

        protected boolean isConstPointer
      • parentName

        protected java.lang.String parentName
      • isTrailingPointer64

        protected boolean isTrailingPointer64
      • isTrailingUnaligned

        protected boolean isTrailingUnaligned
      • isTrailingRestrict

        protected boolean isTrailingRestrict
    • Method Detail

      • getTypeString

        protected abstract java.lang.String getTypeString()
        Returns the string for this type of reference (e.g., * or &)
        Returns:
        the string
      • getSignature

        public java.lang.String 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 interface Demangled
        Overrides:
        getSignature in class DemangledDataType
        Returns:
        the signature
      • setReturnType

        public void setReturnType​(DemangledDataType returnType)
        Sets the return type
        Parameters:
        returnType - the return type
      • getReturnType

        public DemangledDataType getReturnType()
        Returns the return type
        Returns:
        the return type
      • setCallingConvention

        public void setCallingConvention​(java.lang.String callingConvention)
        Sets the function calling convention. For example, "__cdecl"
        Parameters:
        callingConvention - the function calling convention
      • getCallingConvention

        public java.lang.String getCallingConvention()
        Returns the calling convention or null, if unspecified
        Returns:
        the calling convention or null, if unspecified
      • setModifier

        public void setModifier​(java.lang.String modifier)
        Sets the function __ modifier. For example, "namespace::".
        Parameters:
        modifier - the function modifier
      • isConstPointer

        public boolean isConstPointer()
      • setConstPointer

        public void setConstPointer()
      • isTrailingPointer64

        public boolean isTrailingPointer64()
      • setTrailingPointer64

        public void setTrailingPointer64()
      • isTrailingUnaligned

        public boolean isTrailingUnaligned()
      • setTrailingUnaligned

        public void setTrailingUnaligned()
      • isTrailingRestrict

        public boolean isTrailingRestrict()
      • setTrailingRestrict

        public void setTrailingRestrict()
      • addParameter

        public void addParameter​(DemangledDataType parameter)
        Adds a parameters to the end of the parameter list for this demangled function
        Parameters:
        parameter - the new parameter to add
      • getParameters

        public java.util.List<DemangledDataType> getParameters()
        Returns a list of the parameters for this demangled functions.
        Returns:
        a list of the parameters for this demangled functions
      • toSignature

        public java.lang.String toSignature​(java.lang.String name)
      • getConventionPointerNameString

        protected java.lang.String getConventionPointerNameString​(java.lang.String name)
      • addFunctionPointerParens

        protected void addFunctionPointerParens​(java.lang.StringBuilder buffer,
                                                java.lang.String s)
      • addParentName

        protected void addParentName​(java.lang.StringBuilder buffer)
      • getDataType

        public DataType getDataType​(DataTypeManager dataTypeManager)
        Description copied from class: DemangledDataType
        Converts this demangled datatype into the corresponding Ghidra datatype
        Overrides:
        getDataType in class DemangledDataType
        Parameters:
        dataTypeManager - the manager to search and whose data organization should be used
        Returns:
        the Ghidra datatype corresponding to the demangled datatype