|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.antlr.stringtemplate.StringTemplate
com.force.sdk.codegen.template.StringTemplateWrapper
public class StringTemplateWrapper
A StringTemplate implementation that conforms to the Template
interface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.antlr.stringtemplate.StringTemplate |
|---|
org.antlr.stringtemplate.StringTemplate.Aggregate, org.antlr.stringtemplate.StringTemplate.STAttributeList |
| Field Summary |
|---|
| Fields inherited from class org.antlr.stringtemplate.StringTemplate |
|---|
ANONYMOUS_ST_NAME, argumentContext, argumentsAST, attributeRenderers, attributes, chunks, defaultGroup, enclosingInstance, formalArguments, group, groupFileLine, isRegion, name, nativeGroup, numberOfDefaultArgumentValues, passThroughAttributes, pattern, referencedAttributes, REGION_EMBEDDED, REGION_EXPLICIT, REGION_IMPLICIT, regionDefType, regions, templateID, VERSION |
| Constructor Summary | |
|---|---|
StringTemplateWrapper()
Initializes a blank StringTemplateWrapper with no state. |
|
StringTemplateWrapper(String template)
Initializes an anonymous StringTemplateWrapper from
the given String. |
|
StringTemplateWrapper(org.antlr.stringtemplate.StringTemplate stringTemplate)
Copies the state from the given StringTemplate
parameter to this StringTemplateWrapper. |
|
| Method Summary | |
|---|---|
void |
injectView(String viewName,
Object viewState)
Inject view state into a Template. |
void |
write(Writer writer)
Writes a Template along with any injected view state
to the given Writer. |
| Methods inherited from class org.antlr.stringtemplate.StringTemplate |
|---|
addChunk, addRegionName, breakTemplateIntoChunks, checkForTrouble, checkNullAttributeAgainstFormalArguments, containsRegionName, defineEmptyFormalArgumentList, defineFormalArgument, defineFormalArgument, defineFormalArguments, dup, error, error, get, getArgumentContext, getArgumentsAST, getAttribute, getAttributeRenderer, getAttributes, getChunks, getDependencyGraph, getDOTForDependencyGraph, getEnclosingInstance, getEnclosingInstanceStackString, getEnclosingInstanceStackTrace, getErrorListener, getFormalArgument, getFormalArguments, getGroup, getGroupFileLine, getInstanceOf, getName, getNativeGroup, getOutermostEnclosingInstance, getOutermostName, getRegionDefType, getTemplate, getTemplateDeclaratorString, getTemplateHeaderString, getTemplateID, inLintMode, isRecursiveEnclosingInstance, isRegion, lookupFormalArgument, parseAction, parseAggregateAttributeSpec, printDebugString, putToMultiValuedMap, rawSetArgumentAttribute, rawSetAttribute, registerRenderer, removeAttribute, reset, resetTemplateCounter, setArgumentContext, setArgumentsAST, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeRenderers, setAttributes, setDefaultArgumentValues, setEnclosingInstance, setErrorListener, setFormalArguments, setGroup, setGroupFileLine, setIsRegion, setLintMode, setName, setNativeGroup, setPassThroughAttributes, setPredefinedAttributes, setRegionDefType, setTemplate, toDebugString, toString, toString, toStructureString, toStructureString, trackAttributeReference, warning, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.force.sdk.codegen.template.Template |
|---|
reset |
| Constructor Detail |
|---|
public StringTemplateWrapper()
StringTemplateWrapper with no state.
public StringTemplateWrapper(String template)
StringTemplateWrapper from
the given String.
template - a String which represents a StringTemplate
patternpublic StringTemplateWrapper(org.antlr.stringtemplate.StringTemplate stringTemplate)
StringTemplate
parameter to this StringTemplateWrapper.
stringTemplate - the StringTemplate whose state
is to be used in this StringTemplateWrapper| Method Detail |
|---|
public void injectView(String viewName,
Object viewState)
TemplateTemplate.
A Template should recognize view state
by a name. Thereforce, this method will inject
the given view state object for the given name.
injectView in interface TemplateviewName - the name of the view stateviewState - the view state object
public void write(Writer writer)
throws IOException
TemplateTemplate along with any injected view state
to the given Writer.
write in interface Templatewriter - a Java Writer to which the Template
and its view state should be written
IOException - if there is an error writing to the Java Writer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||