Class ColumnDescriptor

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

public class ColumnDescriptor extends JSONBase
A ColumnDescriptor specifies what module attribute to show in a column of the ModulesView, how to format it, and what the column's label should be. It is only used if the underlying UI actually supports this level of customization.
  • Method Details

    • getAttributeName

      public String getAttributeName()
      Name of the attribute rendered in this column.
    • setAttributeName

      public ColumnDescriptor setAttributeName(String attributeName)
    • getLabel

      public String getLabel()
      Header UI label of column.
    • setLabel

      public ColumnDescriptor setLabel(String label)
    • getFormat

      public String getFormat()
      Format to use for the rendered values in this column. TBD how the format strings looks like.
    • setFormat

      public ColumnDescriptor setFormat(String format)
    • getType

      public String getType()
      Datatype of values in this column. Defaults to 'string' if not specified.
    • setType

      public ColumnDescriptor setType(String type)
    • getWidth

      public Integer getWidth()
      Width of this column in characters (hint only).
    • setWidth

      public ColumnDescriptor setWidth(Integer width)
    • equals

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

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

      public static ColumnDescriptor create(String attributeName, String label)