Class SnippetsBuilder


  • public class SnippetsBuilder
    extends Object
    Snippet syntax utilities.
    • Method Detail

      • tabstops

        public static void tabstops​(int index,
                                    StringBuilder snippets)
      • tabstops

        public static String tabstops​(int index)
      • placeholders

        public static void placeholders​(int index,
                                        String text,
                                        StringBuilder snippets)
      • choice

        public static String choice​(int index,
                                    Collection<String> values)
        Returns the LSP choices snippets content.
        Parameters:
        index - the snippet index.
        values - the values for the choice.
        Returns:
        the LSP choices snippets content.
      • choice

        public static void choice​(int index,
                                  Collection<String> values,
                                  StringBuilder snippets)
        Add LSP choices snippets in the given snippets content.
        Parameters:
        index - the snippet index.
        values - the values for the choice.