Class NameShortener

java.lang.Object
org.intellij.grammar.generator.NameShortener

public class NameShortener extends Object
  • Field Details

  • Constructor Details

    • NameShortener

      public NameShortener(String packageName, boolean enabled)
  • Method Details

    • getImports

      public Set<String> getImports()
    • addImports

      public void addImports(Collection<String> initialImports, Collection<String> includedClasses)
    • shorten

      @NotNull public @NotNull String shorten(String s)
    • addTypeToImports

      public static void addTypeToImports(@Nullable @Nullable String type, @NotNull @NotNull List<String> typeAnnotations, @NotNull @NotNull Collection<String> result)
    • getRawClassName

      @NotNull public static @NotNull String getRawClassName(@NotNull @NotNull String name)