public class TemplateInterpreter extends DepthFirstAdapter
| Constructor and Description |
|---|
TemplateInterpreter(Template template,
TemplateLoader templateLoader,
RenderingContext context,
FunctionExecutor functionExecutor) |
| Modifier and Type | Method and Description |
|---|---|
void |
caseAAltCommand(AAltCommand node)
<?cs alt:someValue > ...
|
void |
caseAAutoescapeCommand(AAutoescapeCommand node)
A fake command injected by AutoEscaper.
|
void |
caseACallCommand(ACallCommand node)
<?cs call:someMacro(x,y) command.
|
void |
caseADataCommand(ADataCommand node)
Chunk of data (i.e.
|
void |
caseADefCommand(ADefCommand node)
<?cs def:someMacro(x,y) > ...
|
void |
caseAEachCommand(AEachCommand node)
<?cs each:x=Stuff > ...
|
void |
caseAEscapeCommand(AEscapeCommand node)
<?cs escape:'html' > command.
|
void |
caseAEvarCommand(AEvarCommand node)
<?cs evar:blah > command.
|
void |
caseAHardIncludeCommand(AHardIncludeCommand node)
<?cs include!'somefile.cs' > command.
|
void |
caseAHardLincludeCommand(AHardLincludeCommand node)
<?cs linclude!'somefile.cs' > command.
|
void |
caseAIfCommand(AIfCommand node)
<?cs if:blah > ...
|
void |
caseAIncludeCommand(AIncludeCommand node)
<?cs include:'somefile.cs' > command.
|
void |
caseALincludeCommand(ALincludeCommand node)
<?cs linclude:'somefile.cs' > command.
|
void |
caseALoopCommand(ALoopCommand node)
<?cs loop:0,10 > ...
|
void |
caseALoopIncCommand(ALoopIncCommand node)
<?cs loop:0,10,2 > ...
|
void |
caseALoopToCommand(ALoopToCommand node)
<?cs loop:10 > ...
|
void |
caseALvarCommand(ALvarCommand node)
<?cs lvar:blah > command.
|
void |
caseANameCommand(ANameCommand node)
<?cs name:blah > command.
|
void |
caseASetCommand(ASetCommand node)
<?cs set:x='y' > command.
|
void |
caseAUvarCommand(AUvarCommand node)
<?cs uvar:blah > expression.
|
void |
caseAVarCommand(AVarCommand node)
<?cs var:blah > expression.
|
void |
caseAWithCommand(AWithCommand node)
<?cs with:x=Something > ...
|
void |
caseTCsOpen(TCsOpen node)
Every time a <cs token is found, grab the line and position (for helpful error messages).
|
caseAAddExpression, caseAAndExpression, caseACommaExpression, caseACommentCommand, caseAContentTypeCommand, caseACsOpenPosition, caseADecimalExpression, caseADecNumberVariable, caseADescendVariable, caseADivideExpression, caseAEqExpression, caseAExistsExpression, caseAExpandVariable, caseAFunctionExpression, caseAGteExpression, caseAGtExpression, caseAHexExpression, caseAHexNumberVariable, caseAInlineCommand, caseALteExpression, caseALtExpression, caseAModuloExpression, caseAMultipleCommand, caseAMultiplyExpression, caseANameVariable, caseANeExpression, caseANegativeExpression, caseANoopCommand, caseANoopExpression, caseANotExpression, caseANumericAddExpression, caseANumericEqExpression, caseANumericExpression, caseANumericNeExpression, caseAOrExpression, caseASequenceExpression, caseAStringExpression, caseASubtractExpression, caseAVariableExpression, caseStart, defaultIn, defaultOut, inAAddExpression, inAAltCommand, inAAndExpression, inAAutoescapeCommand, inACallCommand, inACommaExpression, inACommentCommand, inAContentTypeCommand, inACsOpenPosition, inADataCommand, inADecimalExpression, inADecNumberVariable, inADefCommand, inADescendVariable, inADivideExpression, inAEachCommand, inAEqExpression, inAEscapeCommand, inAEvarCommand, inAExistsExpression, inAExpandVariable, inAFunctionExpression, inAGteExpression, inAGtExpression, inAHardIncludeCommand, inAHardLincludeCommand, inAHexExpression, inAHexNumberVariable, inAIfCommand, inAIncludeCommand, inAInlineCommand, inALincludeCommand, inALoopCommand, inALoopIncCommand, inALoopToCommand, inALteExpression, inALtExpression, inALvarCommand, inAModuloExpression, inAMultipleCommand, inAMultiplyExpression, inANameCommand, inANameVariable, inANeExpression, inANegativeExpression, inANoopCommand, inANoopExpression, inANotExpression, inANumericAddExpression, inANumericEqExpression, inANumericExpression, inANumericNeExpression, inAOrExpression, inASequenceExpression, inASetCommand, inAStringExpression, inASubtractExpression, inAUvarCommand, inAVarCommand, inAVariableExpression, inAWithCommand, inStart, outAAddExpression, outAAltCommand, outAAndExpression, outAAutoescapeCommand, outACallCommand, outACommaExpression, outACommentCommand, outAContentTypeCommand, outACsOpenPosition, outADataCommand, outADecimalExpression, outADecNumberVariable, outADefCommand, outADescendVariable, outADivideExpression, outAEachCommand, outAEqExpression, outAEscapeCommand, outAEvarCommand, outAExistsExpression, outAExpandVariable, outAFunctionExpression, outAGteExpression, outAGtExpression, outAHardIncludeCommand, outAHardLincludeCommand, outAHexExpression, outAHexNumberVariable, outAIfCommand, outAIncludeCommand, outAInlineCommand, outALincludeCommand, outALoopCommand, outALoopIncCommand, outALoopToCommand, outALteExpression, outALtExpression, outALvarCommand, outAModuloExpression, outAMultipleCommand, outAMultiplyExpression, outANameCommand, outANameVariable, outANeExpression, outANegativeExpression, outANoopCommand, outANoopExpression, outANotExpression, outANumericAddExpression, outANumericEqExpression, outANumericExpression, outANumericNeExpression, outAOrExpression, outASequenceExpression, outASetCommand, outAStringExpression, outASubtractExpression, outAUvarCommand, outAVarCommand, outAVariableExpression, outAWithCommand, outStartcaseEOF, caseTAlt, caseTAnd, caseTArgWhitespace, caseTAssignment, caseTAutoescape, caseTBang, caseTBracketClose, caseTBracketOpen, caseTCall, caseTComma, caseTCommandDelimiter, caseTComment, caseTCommentStart, caseTContentType, caseTCsClose, caseTData, caseTDecNumber, caseTDef, caseTDollar, caseTDot, caseTEach, caseTElse, caseTElseIf, caseTEq, caseTEscape, caseTEvar, caseTGt, caseTGte, caseTHardDelimiter, caseTHash, caseTHexNumber, caseTIf, caseTInclude, caseTInline, caseTLinclude, caseTLoop, caseTLt, caseTLte, caseTLvar, caseTMinus, caseTName, caseTNe, caseTOr, caseTParenClose, caseTParenOpen, caseTPercent, caseTPlus, caseTQuestion, caseTSet, caseTSlash, caseTStar, caseTString, caseTUvar, caseTVar, caseTWith, caseTWord, defaultCase, getIn, getOut, setIn, setOutpublic TemplateInterpreter(Template template, TemplateLoader templateLoader, RenderingContext context, FunctionExecutor functionExecutor)
public void caseADataCommand(ADataCommand node)
caseADataCommand in interface AnalysiscaseADataCommand in class DepthFirstAdapterpublic void caseAVarCommand(AVarCommand node)
caseAVarCommand in interface AnalysiscaseAVarCommand in class DepthFirstAdapterpublic void caseAUvarCommand(AUvarCommand node)
caseAUvarCommand in interface AnalysiscaseAUvarCommand in class DepthFirstAdapterpublic void caseALvarCommand(ALvarCommand node)
caseALvarCommand in interface AnalysiscaseALvarCommand in class DepthFirstAdapterpublic void caseAEvarCommand(AEvarCommand node)
caseAEvarCommand in interface AnalysiscaseAEvarCommand in class DepthFirstAdapterpublic void caseAHardLincludeCommand(AHardLincludeCommand node)
caseAHardLincludeCommand in interface AnalysiscaseAHardLincludeCommand in class DepthFirstAdapterpublic void caseALincludeCommand(ALincludeCommand node)
caseALincludeCommand in interface AnalysiscaseALincludeCommand in class DepthFirstAdapterpublic void caseAHardIncludeCommand(AHardIncludeCommand node)
caseAHardIncludeCommand in interface AnalysiscaseAHardIncludeCommand in class DepthFirstAdapterpublic void caseAIncludeCommand(AIncludeCommand node)
caseAIncludeCommand in interface AnalysiscaseAIncludeCommand in class DepthFirstAdapterpublic void caseASetCommand(ASetCommand node)
caseASetCommand in interface AnalysiscaseASetCommand in class DepthFirstAdapterpublic void caseANameCommand(ANameCommand node)
caseANameCommand in interface AnalysiscaseANameCommand in class DepthFirstAdapterpublic void caseAIfCommand(AIfCommand node)
caseAIfCommand in interface AnalysiscaseAIfCommand in class DepthFirstAdapterpublic void caseAEscapeCommand(AEscapeCommand node)
caseAEscapeCommand in interface AnalysiscaseAEscapeCommand in class DepthFirstAdapterpublic void caseAAutoescapeCommand(AAutoescapeCommand node)
caseAAutoescapeCommand in interface AnalysiscaseAAutoescapeCommand in class DepthFirstAdapterpublic void caseAWithCommand(AWithCommand node)
caseAWithCommand in interface AnalysiscaseAWithCommand in class DepthFirstAdapterpublic void caseALoopToCommand(ALoopToCommand node)
caseALoopToCommand in interface AnalysiscaseALoopToCommand in class DepthFirstAdapterpublic void caseALoopCommand(ALoopCommand node)
caseALoopCommand in interface AnalysiscaseALoopCommand in class DepthFirstAdapterpublic void caseALoopIncCommand(ALoopIncCommand node)
caseALoopIncCommand in interface AnalysiscaseALoopIncCommand in class DepthFirstAdapterpublic void caseAEachCommand(AEachCommand node)
caseAEachCommand in interface AnalysiscaseAEachCommand in class DepthFirstAdapterpublic void caseAAltCommand(AAltCommand node)
caseAAltCommand in interface AnalysiscaseAAltCommand in class DepthFirstAdapterpublic void caseADefCommand(ADefCommand node)
caseADefCommand in interface AnalysiscaseADefCommand in class DepthFirstAdapterpublic void caseACallCommand(ACallCommand node)
caseACallCommand in interface AnalysiscaseACallCommand in class DepthFirstAdapterpublic void caseTCsOpen(TCsOpen node)
caseTCsOpen in interface AnalysiscaseTCsOpen in class AnalysisAdapterCopyright © 2010-2012 Google. All Rights Reserved.