java.lang.Object
java.lang.Record
org.aya.intellij.MarkerNodeWrapper
- All Implemented Interfaces:
GenericNode<MarkerNodeWrapper>
public record MarkerNodeWrapper(@NotNull com.intellij.psi.builder.MarkerNode node, @NotNull kala.text.StringSlice tokenText)
extends Record
implements GenericNode<MarkerNodeWrapper>
-
Constructor Summary
ConstructorsConstructorDescriptionMarkerNodeWrapper(@NotNull com.intellij.psi.builder.MarkerNode node, @NotNull kala.text.StringSlice tokenText) Creates an instance of aMarkerNodeWrapperrecord class.MarkerNodeWrapper(@NotNull String code, @NotNull com.intellij.psi.builder.MarkerNode node) -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.collection.SeqView<MarkerNodeWrapper> @NotNull com.intellij.psi.tree.IElementTypefinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull com.intellij.psi.builder.MarkerNodenode()Returns the value of thenoderecord component.@NotNull com.intellij.openapi.util.TextRangerange()@NotNull String@NotNull kala.text.StringSliceReturns the value of thetokenTextrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.intellij.GenericNode
child, child, childrenOfType, childrenOfType, firstChild, firstChildOrNull, is, is, lastChild, peekChild, peekChild
-
Constructor Details
-
MarkerNodeWrapper
public MarkerNodeWrapper(@NotNull @NotNull String code, @NotNull @NotNull com.intellij.psi.builder.MarkerNode node) -
MarkerNodeWrapper
public MarkerNodeWrapper(@NotNull @NotNull com.intellij.psi.builder.MarkerNode node, @NotNull @NotNull kala.text.StringSlice tokenText) Creates an instance of aMarkerNodeWrapperrecord class.- Parameters:
node- the value for thenoderecord componenttokenText- the value for thetokenTextrecord component
-
-
Method Details
-
elementType
@NotNull public @NotNull com.intellij.psi.tree.IElementType elementType()- Specified by:
elementTypein interfaceGenericNode<MarkerNodeWrapper>
-
childrenView
- Specified by:
childrenViewin interfaceGenericNode<MarkerNodeWrapper>
-
range
@NotNull public @NotNull com.intellij.openapi.util.TextRange range()- Specified by:
rangein interfaceGenericNode<MarkerNodeWrapper>
-
toDebugString
- Specified by:
toDebugStringin interfaceGenericNode<MarkerNodeWrapper>
-
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. -
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). -
node
@NotNull public @NotNull com.intellij.psi.builder.MarkerNode node()Returns the value of thenoderecord component.- Returns:
- the value of the
noderecord component
-
tokenText
@NotNull public @NotNull kala.text.StringSlice tokenText()Returns the value of thetokenTextrecord component.- Specified by:
tokenTextin interfaceGenericNode<MarkerNodeWrapper>- Returns:
- the value of the
tokenTextrecord component
-