Interface ASTMarkers<T>

All Known Implementing Classes:
ASTMarkersImpl

public interface ASTMarkers<T>
rewrite of ASTMarkers.kt
  • Method Details

    • getSize

      int getSize()
    • kind

      byte kind(int i)
    • errorMessage

      @Nullable @Nullable String errorMessage(int i)
    • lexemeCount

      int lexemeCount(int i)
    • lexemeRelOffset

      int lexemeRelOffset(int i)
    • collapsed

      boolean collapsed(int i)
    • markersCount

      int markersCount(int i)
    • elementType

      @NotNull @NotNull IElementType elementType(int i)
    • chameleonAt

      @NotNull @NotNull AtomicReference<T> chameleonAt(int lexemeIndex)
    • chameleons

      @NotNull @NotNull List<com.intellij.openapi.util.Pair<Integer,AtomicReference<T>>> chameleons()
    • mutate

      @NotNull @NotNull ASTMarkers<T> mutate(@NotNull @NotNull Function<ASTMarkers.MutableContext<T>,kala.tuple.Unit> mutator)
    • prevSibling

      default int prevSibling(int markerIndex)
    • nextSibling

      default int nextSibling(int markerIndex)
    • lastChild

      default int lastChild(int markerIndex)
    • firstChild

      default int firstChild(int markerIndex)
    • require

      static void require(boolean cond, @NotNull @NotNull String msg)
      mimic require() function in kotlin
    • check

      static void check(boolean cond, @NotNull @NotNull String msg)
      mimic check() function in kotlin
    • repeat

      static void repeat(int times, @NotNull @NotNull IntConsumer consumer)
      mimic repeat() function in kotlin
    • downTo

      static void downTo(int upper, int lower, @NotNull @NotNull IntConsumer consumer)
      mimic downTo() function in kotlin
    • error

      static <T> T error(@NotNull @NotNull String error)
      mimic error() function in kotlin