public class Compiler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.String> |
defaultOptionValues |
static java.util.Map<java.lang.String,java.lang.Short> |
funcs |
STGroup |
group |
static int |
NUM_OPTIONS |
static java.lang.String |
SUBTEMPLATE_PREFIX |
static int |
subtemplateCount
Name subtemplates
_sub1 , _sub2 , ... |
static java.util.Map<java.lang.String,Interpreter.Option> |
supportedOptions |
static int |
TEMPLATE_INITIAL_CODE_SIZE |
Modifier and Type | Method and Description |
---|---|
CompiledST |
compile(java.lang.String template) |
CompiledST |
compile(java.lang.String name,
java.lang.String template)
Compile full template with unknown formal arguments.
|
CompiledST |
compile(java.lang.String srcName,
java.lang.String name,
java.util.List<FormalArgument> args,
java.lang.String template,
org.antlr.runtime.Token templateToken)
Compile full template with respect to a list of formal arguments.
|
static CompiledST |
defineBlankRegion(CompiledST outermostImpl,
org.antlr.runtime.Token nameToken) |
static java.lang.String |
getNewSubtemplateName() |
public static final java.lang.String SUBTEMPLATE_PREFIX
public static final int TEMPLATE_INITIAL_CODE_SIZE
public static final java.util.Map<java.lang.String,Interpreter.Option> supportedOptions
public static final int NUM_OPTIONS
public static final java.util.Map<java.lang.String,java.lang.String> defaultOptionValues
public static java.util.Map<java.lang.String,java.lang.Short> funcs
public static int subtemplateCount
_sub1
, _sub2
, ...public STGroup group
public Compiler()
public Compiler(STGroup group)
public CompiledST compile(java.lang.String template)
public CompiledST compile(java.lang.String name, java.lang.String template)
public CompiledST compile(java.lang.String srcName, java.lang.String name, java.util.List<FormalArgument> args, java.lang.String template, org.antlr.runtime.Token templateToken)
public static CompiledST defineBlankRegion(CompiledST outermostImpl, org.antlr.runtime.Token nameToken)
public static java.lang.String getNewSubtemplateName()