com.google.clearsilver.jsilver.syntax
Class DataCommandConsolidator
java.lang.Object
com.google.clearsilver.jsilver.syntax.analysis.AnalysisAdapter
com.google.clearsilver.jsilver.syntax.analysis.DepthFirstAdapter
com.google.clearsilver.jsilver.syntax.DataCommandConsolidator
- All Implemented Interfaces:
- Analysis, Switch
public class DataCommandConsolidator
- extends DepthFirstAdapter
Consolidates runs of (unescaped literal output) data commands, deferring output until another
output command (var, call, etc) is encountered.
Methods inherited from class com.google.clearsilver.jsilver.syntax.analysis.DepthFirstAdapter |
caseAAddExpression, caseAAltCommand, caseAAndExpression, caseAAutoescapeCommand, caseACallCommand, caseACommaExpression, caseACommentCommand, caseAContentTypeCommand, caseACsOpenPosition, caseADecimalExpression, caseADecNumberVariable, caseADescendVariable, caseADivideExpression, caseAEachCommand, caseAEqExpression, caseAEscapeCommand, caseAEvarCommand, caseAExistsExpression, caseAExpandVariable, caseAFunctionExpression, caseAGteExpression, caseAGtExpression, caseAHexExpression, caseAHexNumberVariable, caseAInlineCommand, caseALoopCommand, caseALoopIncCommand, caseALoopToCommand, caseALteExpression, caseALtExpression, caseALvarCommand, caseAModuloExpression, caseAMultipleCommand, caseAMultiplyExpression, caseANameCommand, caseANameVariable, caseANeExpression, caseANegativeExpression, caseANoopCommand, caseANoopExpression, caseANotExpression, caseANumericAddExpression, caseANumericEqExpression, caseANumericExpression, caseANumericNeExpression, caseAOrExpression, caseASequenceExpression, caseASetCommand, caseAStringExpression, caseASubtractExpression, caseAUvarCommand, caseAVarCommand, caseAVariableExpression, caseAWithCommand, caseStart, defaultIn, defaultOut, inAAddExpression, inAAndExpression, inAAutoescapeCommand, inACommaExpression, inACommentCommand, inAContentTypeCommand, inACsOpenPosition, inADataCommand, inADecimalExpression, inADecNumberVariable, inADefCommand, inADescendVariable, inADivideExpression, inAEqExpression, inAEscapeCommand, inAExistsExpression, inAExpandVariable, inAFunctionExpression, inAGteExpression, inAGtExpression, inAHardIncludeCommand, inAHardLincludeCommand, inAHexExpression, inAHexNumberVariable, inAIfCommand, inAIncludeCommand, inAInlineCommand, inALincludeCommand, inALteExpression, inALtExpression, inAModuloExpression, inAMultipleCommand, inAMultiplyExpression, inANameVariable, inANeExpression, inANegativeExpression, inANoopCommand, inANoopExpression, inANotExpression, inANumericAddExpression, inANumericEqExpression, inANumericExpression, inANumericNeExpression, inAOrExpression, inASequenceExpression, inASetCommand, inAStringExpression, inASubtractExpression, inAVariableExpression, inStart, outAAddExpression, outAAndExpression, outAAutoescapeCommand, outACallCommand, outACommaExpression, outACommentCommand, outAContentTypeCommand, outACsOpenPosition, outADataCommand, outADecimalExpression, outADecNumberVariable, outADefCommand, outADescendVariable, outADivideExpression, outAEqExpression, outAEscapeCommand, outAEvarCommand, outAExistsExpression, outAExpandVariable, outAFunctionExpression, outAGteExpression, outAGtExpression, outAHardIncludeCommand, outAHardLincludeCommand, outAHexExpression, outAHexNumberVariable, outAIfCommand, outAIncludeCommand, outAInlineCommand, outALincludeCommand, 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, outStart |
Methods inherited from class com.google.clearsilver.jsilver.syntax.analysis.AnalysisAdapter |
caseTAlt, caseTAnd, caseTArgWhitespace, caseTAssignment, caseTAutoescape, caseTBang, caseTBracketClose, caseTBracketOpen, caseTCall, caseTComma, caseTCommandDelimiter, caseTComment, caseTCommentStart, caseTContentType, caseTCsClose, caseTCsOpen, 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, setOut |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataCommandConsolidator
public DataCommandConsolidator()
caseADataCommand
public void caseADataCommand(ADataCommand node)
- Specified by:
caseADataCommand
in interface Analysis
- Overrides:
caseADataCommand
in class DepthFirstAdapter
inAVarCommand
public void inAVarCommand(AVarCommand node)
- Overrides:
inAVarCommand
in class DepthFirstAdapter
inALvarCommand
public void inALvarCommand(ALvarCommand node)
- Overrides:
inALvarCommand
in class DepthFirstAdapter
inAUvarCommand
public void inAUvarCommand(AUvarCommand node)
- Overrides:
inAUvarCommand
in class DepthFirstAdapter
inAEvarCommand
public void inAEvarCommand(AEvarCommand node)
- Overrides:
inAEvarCommand
in class DepthFirstAdapter
inANameCommand
public void inANameCommand(ANameCommand node)
- Overrides:
inANameCommand
in class DepthFirstAdapter
inALoopCommand
public void inALoopCommand(ALoopCommand node)
- Overrides:
inALoopCommand
in class DepthFirstAdapter
inALoopIncCommand
public void inALoopIncCommand(ALoopIncCommand node)
- Overrides:
inALoopIncCommand
in class DepthFirstAdapter
inALoopToCommand
public void inALoopToCommand(ALoopToCommand node)
- Overrides:
inALoopToCommand
in class DepthFirstAdapter
inAEachCommand
public void inAEachCommand(AEachCommand node)
- Overrides:
inAEachCommand
in class DepthFirstAdapter
inAWithCommand
public void inAWithCommand(AWithCommand node)
- Overrides:
inAWithCommand
in class DepthFirstAdapter
outALoopCommand
public void outALoopCommand(ALoopCommand node)
- Overrides:
outALoopCommand
in class DepthFirstAdapter
outALoopIncCommand
public void outALoopIncCommand(ALoopIncCommand node)
- Overrides:
outALoopIncCommand
in class DepthFirstAdapter
outALoopToCommand
public void outALoopToCommand(ALoopToCommand node)
- Overrides:
outALoopToCommand
in class DepthFirstAdapter
outAEachCommand
public void outAEachCommand(AEachCommand node)
- Overrides:
outAEachCommand
in class DepthFirstAdapter
outAWithCommand
public void outAWithCommand(AWithCommand node)
- Overrides:
outAWithCommand
in class DepthFirstAdapter
caseADefCommand
public void caseADefCommand(ADefCommand node)
- Specified by:
caseADefCommand
in interface Analysis
- Overrides:
caseADefCommand
in class DepthFirstAdapter
inACallCommand
public void inACallCommand(ACallCommand node)
- Overrides:
inACallCommand
in class DepthFirstAdapter
caseAIfCommand
public void caseAIfCommand(AIfCommand node)
- Specified by:
caseAIfCommand
in interface Analysis
- Overrides:
caseAIfCommand
in class DepthFirstAdapter
inAAltCommand
public void inAAltCommand(AAltCommand node)
- Overrides:
inAAltCommand
in class DepthFirstAdapter
outAAltCommand
public void outAAltCommand(AAltCommand node)
- Overrides:
outAAltCommand
in class DepthFirstAdapter
caseAIncludeCommand
public void caseAIncludeCommand(AIncludeCommand node)
- Specified by:
caseAIncludeCommand
in interface Analysis
- Overrides:
caseAIncludeCommand
in class DepthFirstAdapter
caseAHardIncludeCommand
public void caseAHardIncludeCommand(AHardIncludeCommand node)
- Specified by:
caseAHardIncludeCommand
in interface Analysis
- Overrides:
caseAHardIncludeCommand
in class DepthFirstAdapter
caseALincludeCommand
public void caseALincludeCommand(ALincludeCommand node)
- Specified by:
caseALincludeCommand
in interface Analysis
- Overrides:
caseALincludeCommand
in class DepthFirstAdapter
caseAHardLincludeCommand
public void caseAHardLincludeCommand(AHardLincludeCommand node)
- Specified by:
caseAHardLincludeCommand
in interface Analysis
- Overrides:
caseAHardLincludeCommand
in class DepthFirstAdapter
caseEOF
public void caseEOF(EOF node)
- Specified by:
caseEOF
in interface Analysis
- Overrides:
caseEOF
in class AnalysisAdapter
Copyright © 2010-2012 Google. All Rights Reserved.