public class StringCompiler extends Object
Constructor and Description |
---|
StringCompiler()
constructors
|
Modifier and Type | Method and Description |
---|---|
boolean |
compile(Set<CunitProvider> units)
do the compilation for the antlr artifacts
|
MemoryTupleSet |
getAllCompiledObjects()
get all compiled antlr objects (lexer, parser, etc) in source and bytecode format
|
List |
getClassPath() |
org.antlr.v4.runtime.Lexer |
instanciateLexer(org.antlr.v4.runtime.CharStream input,
String cname)
instanciate new lexer
|
org.antlr.v4.runtime.Lexer |
instanciateLexer(org.antlr.v4.runtime.CharStream input,
String lexerClassName,
boolean useCached)
instanciate new lexer
|
org.antlr.v4.runtime.Parser |
instanciateParser(org.antlr.v4.runtime.CommonTokenStream tstream,
String parserClassName)
instanciate new parser
|
void |
load(MemoryTupleSet mset) |
void |
setClassPath(List cp) |
public List getClassPath()
public void setClassPath(List cp)
public void load(MemoryTupleSet mset)
public boolean compile(Set<CunitProvider> units)
units
- string code generation pipelinepublic org.antlr.v4.runtime.Lexer instanciateLexer(org.antlr.v4.runtime.CharStream input, String cname)
input
- lexer class content as character streamcname
- class namepublic org.antlr.v4.runtime.Lexer instanciateLexer(org.antlr.v4.runtime.CharStream input, String lexerClassName, boolean useCached)
input
- lexer class content as character streamlexerClassName
- class nameuseCached
- true to used cached lexers, otherwise falsepublic org.antlr.v4.runtime.Parser instanciateParser(org.antlr.v4.runtime.CommonTokenStream tstream, String parserClassName)
tstream
- parser class content as character streamparserClassName
- class namepublic MemoryTupleSet getAllCompiledObjects()
Copyright © 2017. All rights reserved.