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 Summary
ConstructorsConstructorDescriptionMarkerNode(@NotNull IElementType elementType, int startOffset, int endOffset, @Nullable MarkerNode parent) MarkerNode(@NotNull IElementType elementType, int startOffset, int endOffset, @Nullable MarkerNode parent, @NotNull kala.collection.mutable.MutableList<MarkerNode> children) MarkerNode(@NotNull IElementType elementType, @NotNull TextRange range, @Nullable MarkerNode parent, @NotNull kala.collection.mutable.MutableList<MarkerNode> children) Creates an instance of aMarkerNoderecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.collection.mutable.MutableList<MarkerNode>children()Returns the value of thechildrenrecord component.@NotNull IElementTypeReturns the value of theelementTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable MarkerNodeparent()Returns the value of theparentrecord component.@NotNull TextRangerange()Returns the value of therangerecord component.@NotNull StringtoDebugString(String indentSymbol) @NotNull StringtoString()Returns a string representation of this record class.
-
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 aMarkerNoderecord class.- Parameters:
elementType- the value for theelementTyperecord componentrange- the value for therangerecord componentparent- the value for theparentrecord componentchildren- the value for thechildrenrecord component
-
-
Method Details
-
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. -
toDebugString
-
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. -
equals
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 withObjects::equals(Object,Object). -
elementType
Returns the value of theelementTyperecord component.- Returns:
- the value of the
elementTyperecord component
-
range
Returns the value of therangerecord component.- Returns:
- the value of the
rangerecord component
-
parent
Returns the value of theparentrecord component.- Returns:
- the value of the
parentrecord component
-
children
Returns the value of thechildrenrecord component.- Returns:
- the value of the
childrenrecord component
-