public class Compiler extends Object
Modifier and Type | Field and Description |
---|---|
static Map<String,String> |
defaultOptionValues |
static Map<String,Short> |
funcs |
STGroup |
group |
static int |
NUM_OPTIONS |
static String |
SUBTEMPLATE_PREFIX |
static int |
subtemplateCount
Name subtemplates
_sub1 , _sub2 , ... |
static Map<String,Interpreter.Option> |
supportedOptions |
static int |
TEMPLATE_INITIAL_CODE_SIZE |
Modifier and Type | Method and Description |
---|---|
CompiledST |
compile(String template) |
CompiledST |
compile(String name,
String template)
Compile full template with unknown formal arguments.
|
CompiledST |
compile(String srcName,
String name,
List<FormalArgument> args,
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 String |
getNewSubtemplateName() |
protected void |
reportMessageAndThrowSTException(org.antlr.runtime.TokenStream tokens,
org.antlr.runtime.Token templateToken,
org.antlr.runtime.Parser parser,
org.antlr.runtime.RecognitionException re) |
public static final String SUBTEMPLATE_PREFIX
public static final int TEMPLATE_INITIAL_CODE_SIZE
public static final Map<String,Interpreter.Option> supportedOptions
public static final int NUM_OPTIONS
public static int subtemplateCount
_sub1
, _sub2
, ...public STGroup group
public Compiler()
public Compiler(STGroup group)
public CompiledST compile(String template)
public CompiledST compile(String name, String template)
public CompiledST compile(String srcName, String name, List<FormalArgument> args, String template, org.antlr.runtime.Token templateToken)
public static CompiledST defineBlankRegion(CompiledST outermostImpl, org.antlr.runtime.Token nameToken)
public static String getNewSubtemplateName()
protected void reportMessageAndThrowSTException(org.antlr.runtime.TokenStream tokens, org.antlr.runtime.Token templateToken, org.antlr.runtime.Parser parser, org.antlr.runtime.RecognitionException re)
Copyright © 2024. All rights reserved.