Record Class GenericNode.MarkerNodeWrapper

java.lang.Object
java.lang.Record
com.intellij.psi.builder.GenericNode.MarkerNodeWrapper
All Implemented Interfaces:
GenericNode<GenericNode.MarkerNodeWrapper>
Enclosing interface:
GenericNode<N extends GenericNode<N>>

public static record GenericNode.MarkerNodeWrapper(@NotNull MarkerNode node, @NotNull kala.text.StringSlice tokenText) extends Record implements GenericNode<GenericNode.MarkerNodeWrapper>
  • Constructor Details

    • MarkerNodeWrapper

      public MarkerNodeWrapper(@NotNull @NotNull String code, @NotNull @NotNull MarkerNode node)
    • MarkerNodeWrapper

      public MarkerNodeWrapper(@NotNull @NotNull MarkerNode node, @NotNull @NotNull kala.text.StringSlice tokenText)
      Creates an instance of a MarkerNodeWrapper record class.
      Parameters:
      node - the value for the node record component
      tokenText - the value for the tokenText record component
  • Method Details

    • elementType

      @NotNull public @NotNull IElementType elementType()
      Specified by:
      elementType in interface GenericNode<GenericNode.MarkerNodeWrapper>
    • childrenView

      @NotNull public @NotNull kala.collection.SeqView<GenericNode.MarkerNodeWrapper> childrenView()
      Specified by:
      childrenView in interface GenericNode<GenericNode.MarkerNodeWrapper>
    • range

      @NotNull public @NotNull com.intellij.openapi.util.TextRange range()
      Specified by:
      range in interface GenericNode<GenericNode.MarkerNodeWrapper>
    • toDebugString

      @NotNull public @NotNull String toDebugString()
      Specified by:
      toDebugString in interface GenericNode<GenericNode.MarkerNodeWrapper>
    • toString

      public final 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
    • 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.
    • node

      @NotNull public @NotNull MarkerNode node()
      Returns the value of the node record component.
      Returns:
      the value of the node record component
    • tokenText

      @NotNull public @NotNull kala.text.StringSlice tokenText()
      Returns the value of the tokenText record component.
      Specified by:
      tokenText in interface GenericNode<GenericNode.MarkerNodeWrapper>
      Returns:
      the value of the tokenText record component