Class LexerFrame

    • Constructor Detail

      • LexerFrame

        public LexerFrame​(Class lexerClass,
                          Class tokenTypesClass)
        Constructor used when invoking as a standalone application
        Parameters:
        lexerClass - the lexer class to use
        tokenTypesClass - the lexer token types class
      • LexerFrame

        public LexerFrame​(Class lexerClass,
                          Class tokenTypesClass,
                          Reader reader)
        Constructor used when invoking for a specific file
        Parameters:
        lexerClass - the lexer class to use
        tokenTypesClass - the lexer token types class
    • Method Detail

      • groovyScriptFactory

        public static LexerFrame groovyScriptFactory​(String scriptText)
        Creates a Groovy language LexerFrame for the given script text
        Parameters:
        scriptText - the Groovy source file to parse/render
        Returns:
        the new frame rending the parsed tokens