com.google.template.soy.parsepasses
Class HandleCssCommandVisitor
java.lang.Object
com.google.template.soy.basetree.AbstractNodeVisitor<SoyNode,R>
com.google.template.soy.soytree.AbstractSoyNodeVisitor<Void>
com.google.template.soy.parsepasses.HandleCssCommandVisitor
- All Implemented Interfaces:
- NodeVisitor<SoyNode,Void>
public class HandleCssCommandVisitor
- extends AbstractSoyNodeVisitor<Void>
Visitor for handling 'css' commands.
Important: Do not use outside of Soy code (treat as superpackage-private).
exec(com.google.template.soy.soytree.SoyNode) must be called on a full parse tree.
Each scheme is handled as follows:
(a) LITERAL: Turn each CssNode into a RawTextNode.
(b) REFERENCE: Turn each CssNode into a PrintNode.
(c) BACKEND_SPECIFIC: Don't change anything. Let backend handle 'css' commands.
| Methods inherited from class com.google.template.soy.soytree.AbstractSoyNodeVisitor |
visit, visitCallBasicNode, visitCallDelegateNode, visitCallNode, visitCallParamContentNode, visitCallParamNode, visitCallParamValueNode, visitChildren, visitChildrenAllowingConcurrentModification, visitDebuggerNode, visitForeachIfemptyNode, visitForeachNode, visitForeachNonemptyNode, visitForNode, visitGoogMsgNode, visitGoogMsgRefNode, visitIfCondNode, visitIfElseNode, visitIfNode, visitLetContentNode, visitLetNode, visitLetValueNode, visitLogNode, visitLoopNode, visitMsgHtmlTagNode, visitMsgNode, visitMsgPlaceholderNode, visitMsgPluralCaseNode, visitMsgPluralDefaultNode, visitMsgPluralNode, visitMsgPluralRemainderNode, visitMsgSelectCaseNode, visitMsgSelectDefaultNode, visitMsgSelectNode, visitPrintDirectiveNode, visitPrintNode, visitRawTextNode, visitSoyFileNode, visitSwitchCaseNode, visitSwitchDefaultNode, visitSwitchNode, visitTemplateBasicNode, visitTemplateDelegateNode, visitTemplateNode |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HandleCssCommandVisitor
public HandleCssCommandVisitor(SoyGeneralOptions.CssHandlingScheme cssHandlingScheme)
- Parameters:
cssHandlingScheme - Scheme for handling 'css' commands.
exec
public Void exec(SoyNode node)
- Description copied from interface:
NodeVisitor
- Executes the function defined by this visitor.
- Specified by:
exec in interface NodeVisitor<SoyNode,Void>- Overrides:
exec in class AbstractNodeVisitor<SoyNode,Void>
- Parameters:
node - The node to execute the function on.
visitSoyFileSetNode
protected void visitSoyFileSetNode(SoyFileSetNode node)
- Overrides:
visitSoyFileSetNode in class AbstractSoyNodeVisitor<Void>
visitCssNode
protected void visitCssNode(CssNode node)
- Overrides:
visitCssNode in class AbstractSoyNodeVisitor<Void>
visitSoyNode
protected void visitSoyNode(SoyNode node)
- Overrides:
visitSoyNode in class AbstractSoyNodeVisitor<Void>
- Parameters:
node - the visited node.