Record Class MarkerNode

java.lang.Object
java.lang.Record
com.intellij.psi.builder.MarkerNode

public record MarkerNode(@NotNull IElementType elementType, @NotNull TextRange range, @Nullable MarkerNode parent, @NotNull kala.collection.mutable.MutableList<MarkerNode> children) extends Record
  • Constructor Details

    • MarkerNode

      public MarkerNode(@NotNull @NotNull IElementType elementType, int startOffset, int endOffset, @Nullable @Nullable MarkerNode parent, @NotNull @NotNull kala.collection.mutable.MutableList<MarkerNode> children)
    • MarkerNode

      public MarkerNode(@NotNull @NotNull IElementType elementType, int startOffset, int endOffset, @Nullable @Nullable MarkerNode parent)
    • MarkerNode

      public MarkerNode(@NotNull @NotNull IElementType elementType, @NotNull @NotNull TextRange range, @Nullable @Nullable MarkerNode parent, @NotNull @NotNull kala.collection.mutable.MutableList<MarkerNode> children)
      Creates an instance of a MarkerNode record class.
      Parameters:
      elementType - the value for the elementType record component
      range - the value for the range record component
      parent - the value for the parent record component
      children - the value for the children record component
  • Method Details

    • toString

      @NotNull public @NotNull String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • toDebugString

      @NotNull public @NotNull String toDebugString(String indentSymbol)
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • elementType

      @NotNull public @NotNull IElementType elementType()
      Returns the value of the elementType record component.
      Returns:
      the value of the elementType record component
    • range

      @NotNull public @NotNull TextRange range()
      Returns the value of the range record component.
      Returns:
      the value of the range record component
    • parent

      @Nullable public @Nullable MarkerNode parent()
      Returns the value of the parent record component.
      Returns:
      the value of the parent record component
    • children

      @NotNull public @NotNull kala.collection.mutable.MutableList<MarkerNode> children()
      Returns the value of the children record component.
      Returns:
      the value of the children record component