Interface GenericNode<N extends GenericNode<N>>

All Known Implementing Classes:
MarkerNodeWrapper

public interface GenericNode<N extends GenericNode<N>>
Generalized MarkerNode for reusing psi interfaces in Producer, based on StringSlice.
  • Method Summary

    Modifier and Type
    Method
    Description
    default N
    child(@NotNull com.intellij.psi.tree.IElementType type)
     
    default N
    child(@NotNull com.intellij.psi.tree.TokenSet tokenSet)
     
    default @NotNull kala.collection.SeqView<N>
    childrenOfType(@NotNull com.intellij.psi.tree.IElementType type)
     
    default @NotNull kala.collection.SeqView<N>
    childrenOfType(@NotNull com.intellij.psi.tree.TokenSet tokenSet)
     
    @NotNull kala.collection.SeqView<N>
     
    @NotNull com.intellij.psi.tree.IElementType
     
    default N
     
    default boolean
    is(@NotNull com.intellij.psi.tree.IElementType type)
     
    default boolean
    is(@NotNull com.intellij.psi.tree.TokenSet tokenSet)
     
    default N
    peekChild(@NotNull com.intellij.psi.tree.IElementType type)
     
    default N
    peekChild(@NotNull com.intellij.psi.tree.TokenSet tokenSet)
     
    @NotNull com.intellij.openapi.util.TextRange
     
    default @NotNull @NonNls String
     
    @NotNull kala.text.StringSlice
     
  • Method Details

    • elementType

      @NotNull @NotNull com.intellij.psi.tree.IElementType elementType()
    • tokenText

      @NotNull @NotNull kala.text.StringSlice tokenText()
    • range

      @NotNull @NotNull com.intellij.openapi.util.TextRange range()
    • childrenView

      @NotNull @NotNull kala.collection.SeqView<N> childrenView()
    • toDebugString

      @NotNull @NonNls default @NotNull @NonNls String toDebugString()
    • is

      default boolean is(@NotNull @NotNull com.intellij.psi.tree.IElementType type)
    • is

      default boolean is(@NotNull @NotNull com.intellij.psi.tree.TokenSet tokenSet)
    • childrenOfType

      @NotNull default @NotNull kala.collection.SeqView<N> childrenOfType(@NotNull @NotNull com.intellij.psi.tree.IElementType type)
    • childrenOfType

      @NotNull default @NotNull kala.collection.SeqView<N> childrenOfType(@NotNull @NotNull com.intellij.psi.tree.TokenSet tokenSet)
    • firstChild

      default N firstChild()
    • peekChild

      @Nullable default N peekChild(@NotNull @NotNull com.intellij.psi.tree.IElementType type)
    • peekChild

      @Nullable default N peekChild(@NotNull @NotNull com.intellij.psi.tree.TokenSet tokenSet)
    • child

      @NotNull default N child(@NotNull @NotNull com.intellij.psi.tree.IElementType type)
    • child

      @NotNull default N child(@NotNull @NotNull com.intellij.psi.tree.TokenSet tokenSet)