public final class GenerateParseInfoVisitor extends AbstractSoyNodeVisitor<com.google.common.collect.ImmutableMap<String,String>>
Important: Do not use outside of Soy code (treat as superpackage-private).
exec(com.google.template.soy.soytree.SoyNode) should be called on a full parse tree.
For an example Soy file and its corresponding generated code, see
[tests_dir]/com/google/template/soy/test_data/AaaBbbCcc.soy
[tests_dir]/com/google/template/soy/test_data/AaaBbbCccSoyInfo.java
| Constructor and Description |
|---|
GenerateParseInfoVisitor(String javaPackage,
String javaClassNameSource,
TemplateRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableMap<String,String> |
exec(SoyNode node)
Executes the function defined by this visitor.
|
protected void |
visitSoyFileNode(SoyFileNode node) |
protected void |
visitSoyFileSetNode(SoyFileSetNode node) |
protected void |
visitTemplateNode(TemplateNode node) |
visit, visitCallBasicNode, visitCallDelegateNode, visitCallNode, visitCallParamContentNode, visitCallParamNode, visitCallParamValueNode, visitChildren, visitChildrenAllowingConcurrentModification, visitDebuggerNode, visitForIfemptyNode, visitForNode, visitForNonemptyNode, visitHtmlAttributeNode, visitHtmlAttributeValueNode, visitHtmlCloseTagNode, visitHtmlCommentNode, visitHtmlOpenTagNode, visitIfCondNode, visitIfElseNode, visitIfNode, visitLetContentNode, visitLetNode, visitLetValueNode, visitLogNode, visitMsgFallbackGroupNode, visitMsgHtmlTagNode, visitMsgNode, visitMsgPlaceholderNode, visitMsgPluralCaseNode, visitMsgPluralDefaultNode, visitMsgPluralNode, visitMsgSelectCaseNode, visitMsgSelectDefaultNode, visitMsgSelectNode, visitMsgSubstUnitNode, visitPrintDirectiveNode, visitPrintNode, visitRawTextNode, visitSoyNode, visitSwitchCaseNode, visitSwitchDefaultNode, visitSwitchNode, visitTemplateBasicNode, visitTemplateDelegateNode, visitVeLogNodevisitChildren, visitChildrenAllowingConcurrentModificationpublic GenerateParseInfoVisitor(String javaPackage, String javaClassNameSource, TemplateRegistry registry)
javaPackage - The Java package for the generated classes.javaClassNameSource - Source of the generated class names. Must be one of "filename",
"namespace", or "generic".public com.google.common.collect.ImmutableMap<String,String> exec(SoyNode node)
NodeVisitorexec in interface NodeVisitor<SoyNode,com.google.common.collect.ImmutableMap<String,String>>exec in class AbstractNodeVisitor<SoyNode,com.google.common.collect.ImmutableMap<String,String>>node - The node to execute the function on.protected void visitSoyFileSetNode(SoyFileSetNode node)
visitSoyFileSetNode in class AbstractSoyNodeVisitor<com.google.common.collect.ImmutableMap<String,String>>protected void visitSoyFileNode(SoyFileNode node)
visitSoyFileNode in class AbstractSoyNodeVisitor<com.google.common.collect.ImmutableMap<String,String>>protected void visitTemplateNode(TemplateNode node)
visitTemplateNode in class AbstractSoyNodeVisitor<com.google.common.collect.ImmutableMap<String,String>>