Class Module

java.lang.Object
com.oracle.truffle.tools.dap.types.JSONBase
com.oracle.truffle.tools.dap.types.Module

public class Module extends JSONBase
A Module object represents a row in the modules view. Two attributes are mandatory: an id identifies a module in the modules view and is used in a ModuleEvent for identifying a module for adding, updating or deleting. The name is used to minimally render the module in the UI. Additional attributes can be added to the module. They will show up in the module View if they have a corresponding ColumnDescriptor. To avoid an unnecessary proliferation of additional attributes with similar semantics but different names we recommend to re-use attributes from the 'recommended' list below first, and only introduce new attributes if nothing appropriate could be found.
  • Method Details

    • getId

      public Object getId()
      Unique identifier for the module.
    • setId

      public Module setId(Object id)
    • getName

      public String getName()
      A name of the module.
    • setName

      public Module setName(String name)
    • getPath

      public String getPath()
      optional but recommended attributes. always try to use these first before introducing additional attributes. Logical full path to the module. The exact definition is implementation defined, but usually this would be a full path to the on-disk file for the module.
    • setPath

      public Module setPath(String path)
    • getIsOptimized

      public Boolean getIsOptimized()
      True if the module is optimized.
    • setIsOptimized

      public Module setIsOptimized(Boolean isOptimized)
    • getIsUserCode

      public Boolean getIsUserCode()
      True if the module is considered 'user code' by a debugger that supports 'Just My Code'.
    • setIsUserCode

      public Module setIsUserCode(Boolean isUserCode)
    • getVersion

      public String getVersion()
      Version of Module.
    • setVersion

      public Module setVersion(String version)
    • getSymbolStatus

      public String getSymbolStatus()
      User understandable description of if symbols were found for the module (ex: 'Symbols Loaded', 'Symbols not found', etc.
    • setSymbolStatus

      public Module setSymbolStatus(String symbolStatus)
    • getSymbolFilePath

      public String getSymbolFilePath()
      Logical full path to the symbol file. The exact definition is implementation defined.
    • setSymbolFilePath

      public Module setSymbolFilePath(String symbolFilePath)
    • getDateTimeStamp

      public String getDateTimeStamp()
      Module created or modified.
    • setDateTimeStamp

      public Module setDateTimeStamp(String dateTimeStamp)
    • getAddressRange

      public String getAddressRange()
      Address range covered by this module.
    • setAddressRange

      public Module setAddressRange(String addressRange)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • create

      public static Module create(Object id, String name)