Class GeneratedParserUtilBase.CompletionState

  • All Implemented Interfaces:
    com.intellij.util.Function<java.lang.Object,​java.lang.String>
    Enclosing class:
    GeneratedParserUtilBase

    public static class GeneratedParserUtilBase.CompletionState
    extends java.lang.Object
    implements com.intellij.util.Function<java.lang.Object,​java.lang.String>
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.intellij.util.Function

        com.intellij.util.Function.First<P extends java.lang.Object>, com.intellij.util.Function.FirstInCollection<P extends java.lang.Object>, com.intellij.util.Function.InstanceOf<P extends java.lang.Object,​R extends P>, com.intellij.util.Function.Mono<T extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.util.Collection<java.lang.String> items  
      int offset  
    • Constructor Summary

      Constructors 
      Constructor Description
      CompletionState​(int offset_)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addItem​(@NotNull com.intellij.lang.PsiBuilder builder, @NotNull java.lang.String text)  
      @Nullable java.lang.String convertItem​(java.lang.Object o)  
      java.lang.String fun​(java.lang.Object o)  
      boolean prefixMatches​(@NotNull com.intellij.lang.PsiBuilder builder, @NotNull java.lang.String text)  
      boolean prefixMatches​(@NotNull java.lang.String prefix, @NotNull java.lang.String variant)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • offset

        public final int offset
      • items

        public final java.util.Collection<java.lang.String> items
    • Constructor Detail

      • CompletionState

        public CompletionState​(int offset_)
    • Method Detail

      • convertItem

        @Nullable
        public @Nullable java.lang.String convertItem​(java.lang.Object o)
      • fun

        public java.lang.String fun​(java.lang.Object o)
        Specified by:
        fun in interface com.intellij.util.Function<java.lang.Object,​java.lang.String>
      • addItem

        public void addItem​(@NotNull
                            @NotNull com.intellij.lang.PsiBuilder builder,
                            @NotNull
                            @NotNull java.lang.String text)
      • prefixMatches

        public boolean prefixMatches​(@NotNull
                                     @NotNull com.intellij.lang.PsiBuilder builder,
                                     @NotNull
                                     @NotNull java.lang.String text)
      • prefixMatches

        public boolean prefixMatches​(@NotNull
                                     @NotNull java.lang.String prefix,
                                     @NotNull
                                     @NotNull java.lang.String variant)