Class DemanglerOptions


  • public class DemanglerOptions
    extends java.lang.Object
    A simple class to contain the various settings for demangling
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean applySignature()
      Checks if the apply signature option is currently set
      boolean demangleOnlyKnownPatterns()
      Checks if the option to only demangle known mangled patterns is set
      boolean doDisassembly()
      Checks if the option to perform disassembly for known data structures (like functions) when demangling is set
      void setApplySignature​(boolean applySignature)
      Set the option to apply function signatures that are demangled
      void setDemangleOnlyKnownPatterns​(boolean demangleOnlyKnownPatterns)
      Sets the option to only demangle known mangled patterns.
      void setDoDisassembly​(boolean doDisassembly)
      Sets the option to perform disassembly for known data structures (like functions) when demangling
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DemanglerOptions

        public DemanglerOptions()
    • Method Detail

      • applySignature

        public boolean applySignature()
        Checks if the apply signature option is currently set
        Returns:
        true if set to apply function signatures that are demangled
      • setApplySignature

        public void setApplySignature​(boolean applySignature)
        Set the option to apply function signatures that are demangled
        Parameters:
        applySignature - true to apply function signatures that are demangled
      • doDisassembly

        public boolean doDisassembly()
        Checks if the option to perform disassembly for known data structures (like functions) when demangling is set
        Returns:
        true if the option is set
      • setDoDisassembly

        public void setDoDisassembly​(boolean doDisassembly)
        Sets the option to perform disassembly for known data structures (like functions) when demangling
        Parameters:
        doDisassembly - true to perform disassembly when demangling
      • demangleOnlyKnownPatterns

        public boolean demangleOnlyKnownPatterns()
        Checks if the option to only demangle known mangled patterns is set
        Returns:
        true if only known mangled patterns will be demangled
      • setDemangleOnlyKnownPatterns

        public void setDemangleOnlyKnownPatterns​(boolean demangleOnlyKnownPatterns)
        Sets the option to only demangle known mangled patterns. Setting this to false causes most symbols to be demangled, which may result in some symbols getting demangled that were not actually mangled symbols.

        Generally, a demangler will report an error if a symbol fails to demangle. Hence, clients can use this flag to prevent such errors, signalling to the demangler to only attempt those symbols that have a known start pattern. If the known start pattern list becomes comprehensive, then this flag can go away.

        Parameters:
        demangleOnlyKnownPatterns - true to only demangle known mangled patterns
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object