Class SelectionRange

java.lang.Object
org.graalvm.tools.lsp.server.types.JSONBase
org.graalvm.tools.lsp.server.types.SelectionRange

public class SelectionRange extends JSONBase
A selection range represents a part of a selection hierarchy. A selection range may have a parent selection range that contains it.
  • Method Details

    • getRange

      public Range getRange()
      The [range](#Range) of this selection range.
    • setRange

      public SelectionRange setRange(Range range)
    • getParent

      public SelectionRange getParent()
      The parent selection range containing this range. Therefore `parent.range` must contain `this.range`.
    • setParent

      public SelectionRange setParent(SelectionRange parent)
    • equals

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

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

      public static SelectionRange create(Range range, SelectionRange parent)
      Creates a new SelectionRange.
      Parameters:
      range - the range.
      parent - an optional parent.