Javadocs from <a href="http://www.stringtemplate.org/api3"> http://www.stringtemplate.org/api3</a><br> 2009-05-24. StringTemplate presumably version 3.2 and current, but no date or version number shown<br> See annotations by GW in <font color="#CC0000">red</font>, or search for [GW] to find them.<hr> <h2><font size="-1">org.antlr.stringtemplate</font> <br> Class StringTemplate</h2> <pre>java.lang.Object <b>org.antlr.stringtemplate.StringTemplate</b></pre> <hr> <dl> <dt>public class <b>StringTemplate</b></dt> <dt>extends java.lang.Object</dt> </dl> <h2>Overview</h2> <table border="1" cellpadding="4" style="border-collapse: collapse" width="100%" cellspacing="0" bordercolor="#C0C0C0" id="table8"> <tr> <td valign="top" bgcolor="#DDDDDD"><b>Java doc says...</b></td> <td valign="top" bgcolor="#DDDDDD"><font color="#CC0000"><b>[GW] Comments</b></font></td> </tr> <tr> <td valign="top">A <tt>StringTemplate</tt> is a "document" with holes in it where you can stick values.</td> <td valign="top"><font color="#CC0000">A StringTemplate is a java object which produces output text based upon an input text ("template") which contains literal text to be copied to the output, alternating with expressions that StringTemplate fills in with values supplied by the calling program or more elaborately derived text. The template text may be provided to StringTemplate directly by the calling program, or from file or stream.</font></td> </tr> <tr> <td valign="top"> <tt> StringTemplate</tt> breaks up your template into chunks of text and attribute expressions. </td> <td valign="top"><font color="#CC0000">Upon reading a template text, a StringTemplate distinguishes the literal text portions of the text from the expression portions. (I suggest not describing this as "breaking up the template into chunks". To the extent that StringTemplate's internal implementation derives collections of literal text and expressions, these are not usually exposed to or of interest to the calling program.)</font></td> </tr> <tr> <td valign="top"> <tt>StringTemplate</tt> ignores everything outside of attribute expressions, </td> <td valign="top"><font color="#CC0000">StringTemplate does not ignore the text outside of the expressions. StringTemplate stores the literal text portions of the template text verbatim, to be combined with the processed expressions when it produces output (via toString( ) ).</font></td> </tr> <tr> <td valign="top">treating it as just text to spit out when you call <tt>StringTemplate.toString()</tt>.</td> <td valign="top">.. right.</td> </tr> </table> <hr> <h2>Constructors</h2> <p><font color="#CC0000">If a program creates and uses individual StringTemplate objects, then usually the caller would supply the template text when calling the constructor. There are variants to allow also making the StringTemplate a member of a group, and/or choosing which characters will be recognized as expression delimiters.</font></p> <table width="100%" border="1" cellpadding="3" cellspacing="0" id="table9" style="border-collapse: collapse" bordercolor="#C0C0C0"> <tr class="TableHeadingColor" bgcolor="#ccccff"> <td><b>Constructor Summary javadoc</b></td> <td> </td> <td><font color="#CC0000"><b>[GW Comments]</b></font></td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#StringTemplate%28%29"> StringTemplate</a></b>()</code> <br> Create a blank template with no pattern and no attributes</td> <td valign="top" bgcolor="#EEEEFF">1</td> <td valign="top" bgcolor="#EEEEFF"><font color="#CC0000">Is this actually useful for any use cases, or is this for internal use only?</font></td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#StringTemplate%28java.lang.String%29"> StringTemplate</a></b>(java.lang.String template)</code> <br> Create an anonymous template.</td> <td valign="top">2</td> <td valign="top"><font color="#CC0000">StringTemplate which doesn't invoke or get invoked by other templates. Expects text to use $...$ as expression delimiters.</font></td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#StringTemplate%28java.lang.String,%20java.lang.Class%29"> StringTemplate</a></b>(java.lang.String template, java.lang.Class lexer)</code> </td> <td valign="top">3</td> <td valign="top"><font color="#CC0000">Like 2, but caller must specify a lexer to use. To use <...> expression delimiters, use <code>AngleBracketTemplateLexer.class</code> for the lexer argument.</font></td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#StringTemplate%28org.antlr.stringtemplate.StringTemplateGroup,%20java.lang.String%29"> StringTemplate</a></b>(<a title="class in org.antlr.stringtemplate" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplateGroup.html">StringTemplateGroup</a> group, java.lang.String template)</code> <br> Create an anonymous template with no name, but with a group</td> <td valign="top">4</td> <td valign="top"><font color="#CC0000">StringTemplate made part of a StringTemplateGroup. This StringTemplate may invoke other templates in the group, but can't be invoked by others as this one has no name. The choice of which expression delimiter this StringTemplate will recognize is set by the StringTemplateGroup.</font></td> </tr> <tr> <td valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#StringTemplate%28org.antlr.stringtemplate.StringTemplateGroup,%20java.lang.String,%20java.util.HashMap%29"> StringTemplate</a></b>(<a title="class in org.antlr.stringtemplate" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplateGroup.html">StringTemplateGroup</a> group, java.lang.String template, java.util.HashMap attributes)</code> <br> </td> <td valign="top">5</td> <td valign="top"><font color="#CC0000">Like 4, but with attributes supplied at the same time. (Other constructors expect the caller to supply attributes in a separate step, for example with setAttribute.)</font></td> </tr> </table> <hr> <h2>Methods</h2> <p>Only a small subset of methods would normally be used by the calling program. I have rearranged these to the top of the table, and grouped them under a few functional areas. Many more methods are exposed, but are primarily for internal use by StringTemplate. I have shaded these less-used methods.</p> <table width="100%" border="1" cellpadding="3" cellspacing="0" id="table6" style="border-collapse: collapse" bordercolor="#C0C0C0"> <tr class="TableHeadingColor" bgcolor="#ccccff"> <td valign="top" align="left"><font color="#CC0000"><b>Functional area</b></font></td> <td valign="top"><b>Method Summary</b></td> <td valign="top"><b>Description</b></td> <td valign="top"><font color="#CC0000"><b>[GW Comments]</b></font></td> </tr> <tr> <td valign="top" width="1%" align="left"><font color="#CC0000"><b>Copy</b></font></td> <td valign="top" width="1%" align="right"><font size="-1"><code> <a title="class in org.antlr.stringtemplate" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html">StringTemplate</a></code></font></td> <td valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#getInstanceOf%28%29"> getInstanceOf</a></b>()</code> <br> Make an instance of this template; it contains an exact copy of everything (except the attributes and enclosing instance pointer).</td> <td valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left" bgcolor="#DDDDDD"><font color="#CC0000"><b>Attributes</b></font></td> <td valign="top" width="1%" align="right" bgcolor="#DDDDDD"> </td> <td valign="top" bgcolor="#DDDDDD"> </td> <td valign="top" bgcolor="#DDDDDD"> </td> </tr> <tr> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right"><font size="-1"><code> void</code></font></td> <td valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#setAttribute%28java.lang.String,%20int%29"> setAttribute</a></b>(java.lang.String name, int value)</code> <br> Convenience method to box ints</td> <td valign="top"> </td> </tr> <tr> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right"><font size="-1"><code> void</code></font></td> <td valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#setAttribute%28java.lang.String,%20java.lang.Object%29"> setAttribute</a></b>(java.lang.String name, java.lang.Object value)</code> <br> Set an attribute for this template.</td> <td valign="top"> </td> </tr> <tr> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right"><font size="-1"><code>protected void</code></font></td> <td valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#setAttribute%28java.lang.String,%20java.lang.Object%5B%5D%29"> setAttribute</a></b>(java.lang.String aggrSpec, java.lang.Object[] values)</code> <br> Create an aggregate from the list of properties in aggrSpec and fill with values from values array.</td> <td valign="top"> </td> </tr> <tr> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right"><font size="-1"><code> void</code></font></td> <td valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#setAttribute%28java.lang.String,%20java.lang.Object,%20java.lang.Object%29"> setAttribute</a></b>(java.lang.String aggrSpec, java.lang.Object v1, java.lang.Object v2)</code> <br> Set an aggregate attribute with two values.</td> <td valign="top"> </td> </tr> <tr> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right"><font size="-1"><code> void</code></font></td> <td valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#setAttribute%28java.lang.String,%20java.lang.Object,%20java.lang.Object,%20java.lang.Object%29"> setAttribute</a></b>(java.lang.String aggrSpec, java.lang.Object v1, java.lang.Object v2, java.lang.Object v3)</code> <br> </td> <td valign="top"> </td> </tr> <tr> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right"><font size="-1"><code> void</code></font></td> <td valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#setAttribute%28java.lang.String,%20java.lang.Object,%20java.lang.Object,%20java.lang.Object,%20java.lang.Object%29"> setAttribute</a></b>(java.lang.String aggrSpec, java.lang.Object v1, java.lang.Object v2, java.lang.Object v3, java.lang.Object v4)</code> <br> </td> <td valign="top"> </td> </tr> <tr> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right"><font size="-1"><code> void</code></font></td> <td valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#setAttribute%28java.lang.String,%20java.lang.Object,%20java.lang.Object,%20java.lang.Object,%20java.lang.Object,%20java.lang.Object%29"> setAttribute</a></b>(java.lang.String aggrSpec, java.lang.Object v1, java.lang.Object v2, java.lang.Object v3, java.lang.Object v4, java.lang.Object v5)</code> <br> </td> <td valign="top"> </td> </tr> <tr> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right"><font size="-1"><code> void</code></font></td> <td valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#setAttributes%28java.util.Map%29"> setAttributes</a></b>(java.util.Map attributes)</code></td> <td valign="top"> </td> </tr> <tr> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right"><font size="-1"><code> void</code></font></td> <td valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#removeAttribute%28java.lang.String%29"> removeAttribute</a></b>(java.lang.String name)</code> </td> <td valign="top"> </td> </tr> <tr> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right"><font size="-1"><code> void</code></font></td> <td valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#reset%28%29"> reset</a></b>()</code> </td> <td valign="top"><font color="#CC0000">Discard existing attributes (ie: Prepare to reuse this StringTemplate with new attributes.)</font></td> </tr> <tr> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> java.lang.Object</code></font></td> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#getAttribute%28java.lang.String%29"> getAttribute</a></b>(java.lang.String name)</code> <br> </td> <td valign="top" bgcolor="#EEEEFF"> </td> </tr> <tr> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> java.util.Map</code></font></td> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#getAttributes%28%29"> getAttributes</a></b>()</code> <br> </td> <td valign="top" bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right"> </td> <td valign="top"> </td> <td valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left" bgcolor="#DDDDDD"><font color="#CC0000"><b>Renderer</b></font></td> <td valign="top" width="1%" align="right" bgcolor="#DDDDDD"> </td> <td valign="top" bgcolor="#DDDDDD"> </td> <td valign="top" bgcolor="#DDDDDD"> </td> </tr> <tr> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right"><font size="-1"><code> void</code></font></td> <td valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#registerRenderer%28java.lang.Class,%20org.antlr.stringtemplate.AttributeRenderer%29"> registerRenderer</a></b>(java.lang.Class attributeClassType, <a title="interface in org.antlr.stringtemplate" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/AttributeRenderer.html"> AttributeRenderer</a> renderer)</code> <br> Register a renderer for all objects of a particular type.</td> <td valign="top"><font color="#CC0000">Ie: This is the way to add the capability to format the strings produced when StringTemplate renders expressions. Also used with the "format" feature of expressions.</font></td> </tr> <tr> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right"><font size="-1"><code> void</code></font></td> <td valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#setAttributeRenderers%28java.util.Map%29"> setAttributeRenderers</a></b>(java.util.Map renderers)</code> <br> Specify a complete map of what object classes should map to which renderer objects.</td> <td valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left" bgcolor="#DDDDDD"><font color="#CC0000"><b>Output</b></font></td> <td valign="top" width="1%" align="right" bgcolor="#DDDDDD"> </td> <td valign="top" bgcolor="#DDDDDD"> </td> <td valign="top" bgcolor="#DDDDDD"> </td> </tr> <tr> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right"><font size="-1"><code> java.lang.String</code></font></td> <td valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#toString%28%29"> toString</a></b>()</code></td> <td valign="top"><b><font color="#CC0000">Main output method!</font></b></td> </tr> <tr> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right"><font size="-1"><code> java.lang.String</code></font></td> <td valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#toString%28int%29"> toString</a></b>(int lineWidth)</code></td> <td valign="top"><b><font color="#CC0000">Alternative main output method!</font></b></td> </tr> <tr> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right"><font size="-1"><code> java.lang.String</code></font></td> <td valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#toStructureString%28%29"> toStructureString</a></b>()</code> <br> Don't print values, just report the nested structure with attribute names.</td> <td valign="top"><font color="#CC0000">"print" = put result into the String return value.</font></td> </tr> <tr> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right"><font size="-1"><code> java.lang.String</code></font></td> <td valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#toStructureString%28int%29"> toStructureString</a></b>(int indent)</code> </td> <td valign="top"> </td> </tr> <tr> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right"><font size="-1"><code> java.lang.String</code></font></td> <td valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#toDebugString%28%29"> toDebugString</a></b>()</code></td> <td valign="top"><font color="#CC0000">toDebugString and printDebugString produce different output, see source code.</font></td> </tr> <tr> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right"><font size="-1"><code> void</code></font></td> <td valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#printDebugString%28%29"> printDebugString</a></b>()</code></td> <td valign="top"><font color="#CC0000">Here "print" means send output to standard output, probably the java console.</font></td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left" bgcolor="#DDDDDD"><font color="#CC0000"><b>Settings</b></font></td> <td valign="top" width="1%" align="right" bgcolor="#DDDDDD"> </td> <td valign="top" bgcolor="#DDDDDD"> </td> <td valign="top" bgcolor="#DDDDDD"> </td> </tr> <tr> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right"><font size="-1"><code> void</code></font></td> <td valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#setErrorListener%28org.antlr.stringtemplate.StringTemplateErrorListener%29"> setErrorListener</a></b>(<a title="interface in org.antlr.stringtemplate" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplateErrorListener.html">StringTemplateErrorListener</a> listener)</code></td> <td valign="top"><font color="#CC0000">Without an error listener, warnings go to standard output, and error messages go to standard error output (and usually both of those go to the console window).</font></td> </tr> <tr> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right"><font size="-1"><code> void</code></font></td> <td valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#setPassThroughAttributes%28boolean%29"> setPassThroughAttributes</a></b>(boolean passThroughAttributes)</code> <br> Normally if you call template y from x, y cannot see any attributes of x that are defined as formal parameters of y.</td> <td valign="top"><font color="#CC0000">And so what this setting does is.... </font></td> </tr> <tr> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right"><font size="-1"><code>static void</code></font></td> <td valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#setLintMode%28boolean%29"> setLintMode</a></b>(boolean lint)</code> <br> Make StringTemplate check your work as it evaluates templates.</td> <td valign="top"><font color="#CC0000">Reports problems via warning( ), which will go to the (error) listener if set, else console.</font></td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left" bgcolor="#DDDDDD"><font color="#CC0000"><b>Internal</b></font></td> <td valign="top" width="1%" align="right" bgcolor="#DDDDDD"> </td> <td valign="top" bgcolor="#DDDDDD"> </td> <td valign="top" bgcolor="#DDDDDD"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> void</code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#addChunk%28org.antlr.stringtemplate.language.Expr%29"> addChunk</a></b>(<a title="class in org.antlr.stringtemplate.language" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/language/Expr.html">Expr</a> e)</code> </td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> void</code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#addRegionName%28java.lang.String%29"> addRegionName</a></b>(java.lang.String name)</code></td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>protected void</code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#breakTemplateIntoChunks%28%29"> breakTemplateIntoChunks</a></b>()</code> <br> Walk a template, breaking it into a list of chunks: Strings and actions/expressions.</td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>protected void</code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#checkForTrouble%28%29"> checkForTrouble</a></b>()</code> <br> Executed after evaluating a template.</td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>protected void</code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#checkNullAttributeAgainstFormalArguments%28org.antlr.stringtemplate.StringTemplate,%20java.lang.String%29"> checkNullAttributeAgainstFormalArguments</a></b>(<a title="class in org.antlr.stringtemplate" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html">StringTemplate</a> self, java.lang.String attribute)</code> <br> A reference to an attribute with no value, must be compared against the formal parameter to see if it exists; if it exists all is well, but if not, throw an exception.</td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> boolean</code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#containsRegionName%28java.lang.String%29"> containsRegionName</a></b>(java.lang.String name)</code> <br> Does this template ref or embed region name?</td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> void</code></font></td> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#defineEmptyFormalArgumentList%28%29"> defineEmptyFormalArgumentList</a></b>()</code></td> <td valign="top" bgcolor="#EEEEFF"><font color="#CC0000">Pretty sure internal only</font></td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> void</code></font></td> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#defineFormalArgument%28java.lang.String%29"> defineFormalArgument</a></b>(java.lang.String name)</code></td> <td valign="top" bgcolor="#EEEEFF"><font color="#CC0000">Pretty sure internal only</font></td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> void</code></font></td> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#defineFormalArgument%28java.lang.String,%20org.antlr.stringtemplate.StringTemplate%29"> defineFormalArgument</a></b>(java.lang.String name, <a title="class in org.antlr.stringtemplate" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html"> StringTemplate</a> defaultValue)</code></td> <td valign="top" bgcolor="#EEEEFF"><font color="#CC0000">Pretty sure internal only</font></td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> void</code></font></td> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#defineFormalArguments%28java.util.List%29"> defineFormalArguments</a></b>(java.util.List names)</code> </td> <td valign="top" bgcolor="#EEEEFF"><font color="#CC0000">Pretty sure internal only</font></td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>protected void</code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#dup%28org.antlr.stringtemplate.StringTemplate,%20org.antlr.stringtemplate.StringTemplate%29"> dup</a></b>(<a title="class in org.antlr.stringtemplate" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html">StringTemplate</a> from, <a title="class in org.antlr.stringtemplate" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html"> StringTemplate</a> to)</code> <br> Make the 'to' template look exactly like the 'from' template except for the attributes.</td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> void</code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#error%28java.lang.String%29"> error</a></b>(java.lang.String msg)</code></td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> void</code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#error%28java.lang.String,%20java.lang.Throwable%29"> error</a></b>(java.lang.String msg, java.lang.Throwable e)</code></td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> java.lang.Object</code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#get%28org.antlr.stringtemplate.StringTemplate,%20java.lang.String%29"> get</a></b>(<a title="class in org.antlr.stringtemplate" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html">StringTemplate</a> self, java.lang.String attribute)</code> <br> Resolve an attribute reference.</td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> java.util.Map</code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#getArgumentContext%28%29"> getArgumentContext</a></b>()</code> </td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> <a title="class in org.antlr.stringtemplate.language" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/language/StringTemplateAST.html">StringTemplateAST</a></code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#getArgumentsAST%28%29"> getArgumentsAST</a></b>()</code></td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> <a title="interface in org.antlr.stringtemplate" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/AttributeRenderer.html">AttributeRenderer</a></code></font></td> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#getAttributeRenderer%28java.lang.Class%29"> getAttributeRenderer</a></b>(java.lang.Class attributeClassType)</code> <br> What renderer is registered for this attributeClassType for this template.</td> <td valign="top" bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> java.util.List</code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#getChunks%28%29"> getChunks</a></b>()</code> <br> Get a list of the strings and subtemplates and attribute refs in a template.</td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> void</code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#getDependencyGraph%28java.util.Map,%20boolean%29"> getDependencyGraph</a></b>(java.util.Map edges, boolean showAttributes)</code> <br> Get a list of n->m edges where template n contains template m.</td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> <a title="class in org.antlr.stringtemplate" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html">StringTemplate</a></code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#getDOTForDependencyGraph%28boolean%29"> getDOTForDependencyGraph</a></b>(boolean showAttributes)</code> <br> Generate a DOT file for displaying the template enclosure graph; e.g., digraph prof { "t1" -> "t2" "t1" -> "t3" "t4" -> "t5" }</td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> <a title="class in org.antlr.stringtemplate" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html">StringTemplate</a></code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#getEnclosingInstance%28%29"> getEnclosingInstance</a></b>()</code></td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> java.lang.String</code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#getEnclosingInstanceStackString%28%29"> getEnclosingInstanceStackString</a></b>()</code> <br> If an instance of x is enclosed in a y which is in a z, return a String of these instance names in order from topmost to lowest; here that would be "[z y x]".</td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> java.lang.String</code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#getEnclosingInstanceStackTrace%28%29"> getEnclosingInstanceStackTrace</a></b>()</code> </td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> <a title="interface in org.antlr.stringtemplate" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplateErrorListener.html">StringTemplateErrorListener</a></code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#getErrorListener%28%29"> getErrorListener</a></b>()</code> </td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> <a title="class in org.antlr.stringtemplate.language" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/language/FormalArgument.html">FormalArgument</a></code></font></td> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#getFormalArgument%28java.lang.String%29"> getFormalArgument</a></b>(java.lang.String name)</code></td> <td valign="top" bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> java.util.Map</code></font></td> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#getFormalArguments%28%29"> getFormalArguments</a></b>()</code></td> <td valign="top" bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> <a title="class in org.antlr.stringtemplate" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplateGroup.html">StringTemplateGroup</a></code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#getGroup%28%29"> getGroup</a></b>()</code></td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> int</code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#getGroupFileLine%28%29"> getGroupFileLine</a></b>()</code> <br> Return the outermost template's group file line number</td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> java.lang.String</code></font></td> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#getName%28%29"> getName</a></b>()</code> </td> <td valign="top" bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> <a title="class in org.antlr.stringtemplate" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplateGroup.html">StringTemplateGroup</a></code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#getNativeGroup%28%29"> getNativeGroup</a></b>()</code> </td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> <a title="class in org.antlr.stringtemplate" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html">StringTemplate</a></code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#getOutermostEnclosingInstance%28%29"> getOutermostEnclosingInstance</a></b>()</code> </td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> java.lang.String</code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#getOutermostName%28%29"> getOutermostName</a></b>()</code> </td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> int</code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#getRegionDefType%28%29"> getRegionDefType</a></b>()</code> </td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> java.lang.String</code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#getTemplate%28%29"> getTemplate</a></b>()</code></td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> java.lang.String</code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#getTemplateDeclaratorString%28%29"> getTemplateDeclaratorString</a></b>()</code></td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>protected java.lang.String</code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#getTemplateHeaderString%28boolean%29"> getTemplateHeaderString</a></b>(boolean showAttributes)</code></td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> int</code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#getTemplateID%28%29"> getTemplateID</a></b>()</code> </td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>static boolean</code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#inLintMode%28%29"> inLintMode</a></b>()</code> </td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>static boolean</code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#isRecursiveEnclosingInstance%28org.antlr.stringtemplate.StringTemplate%29"> isRecursiveEnclosingInstance</a></b>(<a title="class in org.antlr.stringtemplate" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html">StringTemplate</a> st)</code> <br> Look up the enclosing instance chain (and include this) to see if st is a template already in the enclosing instance chain.</td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> boolean</code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#isRegion%28%29"> isRegion</a></b>()</code></td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> <a title="class in org.antlr.stringtemplate.language" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/language/FormalArgument.html">FormalArgument</a></code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#lookupFormalArgument%28java.lang.String%29"> lookupFormalArgument</a></b>(java.lang.String name)</code> <br> From this template upward in the enclosing template tree, recursively look for the formal parameter.</td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> <a title="class in org.antlr.stringtemplate.language" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/language/ASTExpr.html">ASTExpr</a></code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#parseAction%28java.lang.String%29"> parseAction</a></b>(java.lang.String action)</code></td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>protected java.lang.String</code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#parseAggregateAttributeSpec%28java.lang.String,%20java.util.List%29"> parseAggregateAttributeSpec</a></b>(java.lang.String aggrSpec, java.util.List properties)</code> <br> Split "aggrName.{propName1,propName2}" into list [propName1,propName2] and the aggrName.</td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>protected void</code></font></td> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#putToMultiValuedMap%28java.util.Map,%20java.lang.Object,%20java.lang.Object%29"> putToMultiValuedMap</a></b>(java.util.Map map, java.lang.Object key, java.lang.Object value)</code> <br> Manage a hash table like it has multiple unique values.</td> <td valign="top" bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> void</code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#rawSetArgumentAttribute%28org.antlr.stringtemplate.StringTemplate,%20java.util.Map,%20java.lang.String,%20java.lang.Object%29"> rawSetArgumentAttribute</a></b>(<a title="class in org.antlr.stringtemplate" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html">StringTemplate</a> embedded, java.util.Map attributes, java.lang.String name, java.lang.Object value)</code> <br> Argument evaluation such as foo(x=y), x must be checked against foo's argument list not this's (which is the enclosing context).</td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>protected void</code></font></td> <td bgcolor="#EEEEFF" valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#rawSetAttribute%28java.util.Map,%20java.lang.String,%20java.lang.Object%29"> rawSetAttribute</a></b>(java.util.Map attributes, java.lang.String name, java.lang.Object value)</code> <br> Map a value to a named attribute.</td> <td bgcolor="#EEEEFF" valign="top"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>static void</code></font></td> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#resetTemplateCounter%28%29"> resetTemplateCounter</a></b>()</code> <br> reset the template ID counter to 0; public so that testing routine can access but not really of interest to the user.</td> <td valign="top" bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> void</code></font></td> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#setArgumentContext%28java.util.Map%29"> setArgumentContext</a></b>(java.util.Map ac)</code></td> <td valign="top" bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> void</code></font></td> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#setArgumentsAST%28org.antlr.stringtemplate.language.StringTemplateAST%29"> setArgumentsAST</a></b>(<a title="class in org.antlr.stringtemplate.language" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/language/StringTemplateAST.html">StringTemplateAST</a> argumentsAST)</code></td> <td valign="top" bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> void</code></font></td> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#setDefaultArgumentValues%28%29"> setDefaultArgumentValues</a></b>()</code> <br> Set any default argument values that were not set by the invoking template or by setAttribute directly.</td> <td valign="top" bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> void</code></font></td> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#setEnclosingInstance%28org.antlr.stringtemplate.StringTemplate%29"> setEnclosingInstance</a></b>(<a title="class in org.antlr.stringtemplate" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html">StringTemplate</a> enclosingInstance)</code></td> <td valign="top" bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> void</code></font></td> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#setFormalArguments%28java.util.LinkedHashMap%29"> setFormalArguments</a></b>(java.util.LinkedHashMap args)</code></td> <td valign="top" bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> void</code></font></td> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#setGroup%28org.antlr.stringtemplate.StringTemplateGroup%29"> setGroup</a></b>(<a title="class in org.antlr.stringtemplate" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplateGroup.html">StringTemplateGroup</a> group)</code></td> <td valign="top" bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> void</code></font></td> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#setGroupFileLine%28int%29"> setGroupFileLine</a></b>(int groupFileLine)</code></td> <td valign="top" bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> void</code></font></td> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#setIsRegion%28boolean%29"> setIsRegion</a></b>(boolean isRegion)</code> </td> <td valign="top" bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> void</code></font></td> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#setName%28java.lang.String%29"> setName</a></b>(java.lang.String name)</code></td> <td valign="top" bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> void</code></font></td> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#setNativeGroup%28org.antlr.stringtemplate.StringTemplateGroup%29"> setNativeGroup</a></b>(<a title="class in org.antlr.stringtemplate" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplateGroup.html">StringTemplateGroup</a> nativeGroup)</code></td> <td valign="top" bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> void</code></font></td> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#setPredefinedAttributes%28%29"> setPredefinedAttributes</a></b>()</code> </td> <td valign="top" bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> void</code></font></td> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#setRegionDefType%28int%29"> setRegionDefType</a></b>(int regionDefType)</code></td> <td valign="top" bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> void</code></font></td> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#setTemplate%28java.lang.String%29"> setTemplate</a></b>(java.lang.String template)</code> <br> </td> <td valign="top" bgcolor="#EEEEFF"><font color="#CC0000">Is there a use case for this, as opposed to setting the template in the constructor or via StringTemplateGroup?</font></td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>protected void</code></font></td> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#trackAttributeReference%28java.lang.String%29"> trackAttributeReference</a></b>(java.lang.String name)</code> <br> Indicates that 'name' has been referenced in this template.</td> <td valign="top" bgcolor="#EEEEFF"><font color="#CC0000">Contrary to the javadoc, this method does not indicate anything. It prepares the StringTemplate to track references to the attribute named 'name'. Part of diagnostics during write if setLintMode is enabled.</font></td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> void</code></font></td> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#warning%28java.lang.String%29"> warning</a></b>(java.lang.String msg)</code></td> <td valign="top" bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="left"> </td> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code> int</code></font></td> <td valign="top" bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#write%28org.antlr.stringtemplate.StringTemplateWriter%29"> write</a></b>(<a title="interface in org.antlr.stringtemplate" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplateWriter.html">StringTemplateWriter</a> out)</code> <br> Walk the chunks, asking them to write themselves out according to attribute values of 'this.attributes'.</td> <td valign="top" bgcolor="#EEEEFF"> </td> </tr> </table> <hr> <h2>Field Summary</h2> <p><font color="#CC0000">So far as I can see, in normal operation a calling program does not interact with any fields directly. Consequently, I have not refined the Field Summary, much: I have <i>not</i> reordered the rows. I have shaded out most of the rows, but left unshaded those which constitute core concepts for understanding StringTemplate. These mostly correspond to the unshaded methods above.</font></p> <table width="100%" border="1" cellpadding="3" cellspacing="0" id="table7" style="border-collapse: collapse" bordercolor="#C0C0C0"> <tr class="TableHeadingColor" bgcolor="#ccccff"> <td><b>Field Summary</b></td> <td> </td> <td><font color="#CC0000"><b>[GW Comments]</b></font></td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>static java.lang.String</code></font></td> <td bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#ANONYMOUS_ST_NAME"> ANONYMOUS_ST_NAME</a></b></code> </td> <td bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>protected java.util.Map</code></font></td> <td bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#argumentContext"> argumentContext</a></b></code> <br> If this template is an embedded template such as when you apply a template to an attribute, then the arguments passed to this template represent the argument context--a set of values computed by walking the argument assignment list.</td> <td bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>protected <a title="class in org.antlr.stringtemplate.language" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/language/StringTemplateAST.html">StringTemplateAST</a></code></font></td> <td bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#argumentsAST"> argumentsAST</a></b></code> <br> If this template is embedded in another template, the arguments must be evaluated just before each application when applying template to a list of values.</td> <td bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="right"><font size="-1"><code>protected java.util.Map</code></font></td> <td><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#attributeRenderers"> attributeRenderers</a></b></code> <br> A Map<class,object> that allows people to register a renderer for a particular kind of object to be displayed in this template.</class,object></td> <td> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="right"><font size="-1"><code>protected java.util.Map</code></font></td> <td><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#attributes"> attributes</a></b></code> <br> Map an attribute name to its value(s).</td> <td> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>protected java.util.List</code></font></td> <td bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#chunks"> chunks</a></b></code> <br> A list of alternating string and ASTExpr references.</td> <td bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>static <a title="class in org.antlr.stringtemplate" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplateGroup.html">StringTemplateGroup</a></code></font></td> <td bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#defaultGroup"> defaultGroup</a></b></code> <br> </td> <td bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>protected <a title="class in org.antlr.stringtemplate" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html">StringTemplate</a></code></font></td> <td bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#enclosingInstance"> enclosingInstance</a></b></code> <br> Enclosing instance if I'm embedded within another template.</td> <td bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>protected java.util.LinkedHashMap</code></font></td> <td bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#formalArguments"> formalArguments</a></b></code> <br> When templates are defined in a group file format, the attribute list is provided including information about attribute cardinality such as present, optional, ...</td> <td bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="right"><font size="-1"><code>protected <a title="class in org.antlr.stringtemplate" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplateGroup.html">StringTemplateGroup</a></code></font></td> <td><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#group"> group</a></b></code> <br> This template was created as part of what group? Even if this template was created from a prototype in a supergroup, its group will be the subgroup.</td> <td> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>protected int</code></font></td> <td bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#groupFileLine"> groupFileLine</a></b></code> <br> If this template is defined within a group file, what line number?</td> <td bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>protected boolean</code></font></td> <td bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#isRegion"> isRegion</a></b></code> <br> Does this template come from a <@region>...<@end> embedded in another template?</td> <td bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="right"><font size="-1"><code>(package private) static boolean</code></font></td> <td><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#lintMode"> lintMode</a></b></code> <br> track probable issues like setting attribute that is not referenced.</td> <td> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="right"><font size="-1"><code>(package private) <a title="interface in org.antlr.stringtemplate" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplateErrorListener.html">StringTemplateErrorListener</a></code></font></td> <td><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#listener"> listener</a></b></code> <br> Where to report errors</td> <td> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="right"><font size="-1"><code>protected java.lang.String</code></font></td> <td><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#name"> name</a></b></code> <br> What's the name of this template?</td> <td> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>protected <a title="class in org.antlr.stringtemplate" href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplateGroup.html">StringTemplateGroup</a></code></font></td> <td bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#nativeGroup"> nativeGroup</a></b></code> <br> What group originally defined the prototype for this template? This affects the set of templates I can refer to.</td> <td bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>protected int</code></font></td> <td bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#numberOfDefaultArgumentValues"> numberOfDefaultArgumentValues</a></b></code> <br> How many formal arguments to this template have default values specified?</td> <td bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="right"><font size="-1"><code>protected boolean</code></font></td> <td><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#passThroughAttributes"> passThroughAttributes</a></b></code> <br> Normally, formal parameters hide any attributes inherited from the enclosing template with the same name.</td> <td> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="right"><font size="-1"><code>protected java.lang.String</code></font></td> <td valign="top"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#pattern"> pattern</a></b></code> <br> The original, immutable pattern/language (not really used again after initial "compilation", setup/parsing).</td> <td><font color="#CC0000">Ie: Should be called "patternText" or somesuch. This is where the original template text gets stored.</font></td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>protected java.util.List</code></font></td> <td bgcolor="#EEEEFF"> <p align="left"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#referencedAttributes"> referencedAttributes</a></b></code> </td> <td bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>static int</code></font></td> <td bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#REGION_EMBEDDED"> REGION_EMBEDDED</a></b></code> <br> <@r>...<@end></td> <td bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>static int</code></font></td> <td bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#REGION_EXPLICIT"> REGION_EXPLICIT</a></b></code> <br> </td> <td bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>static int</code></font></td> <td bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#REGION_IMPLICIT"> REGION_IMPLICIT</a></b></code> <br> <@r()></td> <td bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>protected int</code></font></td> <td bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#regionDefType"> regionDefType</a></b></code> <br> If someone refs <@r()> in template t, an implicit</td> <td bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>protected java.util.Set</code></font></td> <td bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#regions"> regions</a></b></code> <br> Set of implicit and embedded regions for this template</td> <td bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>protected int</code></font></td> <td bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#templateID"> templateID</a></b></code></td> <td bgcolor="#EEEEFF"> </td> </tr> <tr class="TableRowColor" bgcolor="white"> <td valign="top" width="1%" align="right" bgcolor="#EEEEFF"><font size="-1"><code>static java.lang.String</code></font></td> <td bgcolor="#EEEEFF"><code><b> <a href="http://www.stringtemplate.org/api/org/antlr/stringtemplate/StringTemplate.html#VERSION"> VERSION</a></b></code> </td> <td bgcolor="#EEEEFF"> </td> </tr> </table> |