public class Compiler extends Object
| Modifier and Type | Field and Description |
|---|---|
static Map |
defaultOptionValues
|
static Map |
funcs
|
STGroup |
group
|
static int |
NUM_OPTIONS
|
static String |
SUBTEMPLATE_PREFIX
|
static int |
subtemplateCount
Name subtemplates
_sub1,
_sub2, ...
|
static Map |
supportedOptions
|
static int |
TEMPLATE_INITIAL_CODE_SIZE
|
| Modifier and Type | Method and Description |
|---|---|
CompiledST |
compile(String
|
CompiledST |
compile(String
Compile full template with unknown formal arguments.
|
CompiledST |
compile(String
Compile full template with respect to a list of formal arguments.
|
static CompiledST |
defineBlankRegion(CompiledST
|
static String |
getNewSubtemplateName()
|
protected void |
reportMessageAndThrowSTException(org
|
public static final StringSUBTEMPLATE_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 STGroupgroup
public Compiler()
public Compiler(STGroupgroup)
public CompiledSTcompile(String template)
public CompiledSTcompile(String name, String template)
public CompiledSTcompile(String srcName, String name, List <FormalArgument > args, String template, org .antlr .runtime .Token templateToken)
public static CompiledSTdefineBlankRegion(CompiledST outermostImpl, org .antlr .runtime .Token nameToken)
public static StringgetNewSubtemplateName()
protected void reportMessageAndThrowSTException(org.antlr .runtime .TokenStream tokens, org .antlr .runtime .Token templateToken, org .antlr .runtime .Parser parser, org .antlr .runtime .RecognitionException re)