Class StringCompiler


  • public class StringCompiler
    extends java.lang.Object
    a compiler for strings
    • Constructor Summary

      Constructors 
      Constructor Description
      StringCompiler()
      constructors
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void compile​(java.util.Set<CunitProvider> units, CompilerOptionsProvider oprov)
      do the compilation for the antlr artifacts
      MemoryTupleSet getAllCompiledObjects()
      get all compiled antlr objects (lexer, parser, etc) in source and bytecode format
      org.antlr.v4.runtime.Lexer instanciateLexer​(org.antlr.v4.runtime.CharStream input, java.lang.String lexerClassName, boolean useCached)
      instanciate new lexer
      org.antlr.v4.runtime.Parser instanciateParser​(org.antlr.v4.runtime.CommonTokenStream tstream, java.lang.String parserClassName)
      instanciate new parser
      void load​(MemoryTupleSet mset)  
      • Methods inherited from class java.lang.Object

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

      • StringCompiler

        public StringCompiler()
        constructors
    • Method Detail

      • instanciateLexer

        public org.antlr.v4.runtime.Lexer instanciateLexer​(org.antlr.v4.runtime.CharStream input,
                                                           java.lang.String lexerClassName,
                                                           boolean useCached)
        instanciate new lexer
        Parameters:
        input - lexer class content as character stream
        lexerClassName - class name
        useCached - true to used cached lexers, otherwise false
        Returns:
        antlr lexer
      • instanciateParser

        public org.antlr.v4.runtime.Parser instanciateParser​(org.antlr.v4.runtime.CommonTokenStream tstream,
                                                             java.lang.String parserClassName)
        instanciate new parser
        Parameters:
        tstream - parser class content as character stream
        parserClassName - class name
        Returns:
        antlr parser
      • getAllCompiledObjects

        public MemoryTupleSet getAllCompiledObjects()
        get all compiled antlr objects (lexer, parser, etc) in source and bytecode format
        Returns:
        memory tuple set