| Package | Description |
|---|---|
| com.google.template.soy.base.internal | |
| com.google.template.soy.parsepasses |
Compiler passes used in parsing.
|
| com.google.template.soy.shared |
Classes shared between multiple backends or between frontend and backend.
|
| com.google.template.soy.sharedpasses |
Compiler passes shared between multiple backends or between frontend and backend.
|
| com.google.template.soy.soyparse |
Parser for Soy files and templates.
|
| com.google.template.soy.soytree |
Soy parse tree.
|
| Modifier and Type | Class and Description |
|---|---|
class |
FixedIdGenerator
A generator of fixed ids.
|
class |
IncrementingIdGenerator
A generator of incrementing unique integer ids, starting from 0.
|
| Modifier and Type | Method and Description |
|---|---|
IdGenerator |
IdGenerator.clone()
Clones this id generator, such that the original and new generators will generate the same list
of ids going forward.
|
| Constructor and Description |
|---|
RewriteGenderMsgsVisitor(IdGenerator nodeIdGen,
ErrorReporter errorReporter)
Constructs a rewriter using the same node ID generator as the tree.
|
| Modifier and Type | Method and Description |
|---|---|
IdGenerator |
SoyAstCache.getNodeIdGenerator()
Returns an ID generator that must be used for all files in this cache.
|
| Constructor and Description |
|---|
RemoveHtmlCommentsVisitor(IdGenerator nodeIdGen,
ErrorReporter errorReporter)
Constructor when working on tree fragments that are not part of a SoyFileSet.
|
| Constructor and Description |
|---|
SoyFileParser(SoyTypeRegistry typeRegistry,
IdGenerator nodeIdGen,
Reader input,
SoyFileKind soyFileKind,
String filePath,
ErrorReporter errorReporter)
Constructor that takes a reader object providing the input.
|
SoyFileParser(SoyTypeRegistry typeRegistry,
IdGenerator nodeIdGen,
String input,
SoyFileKind soyFileKind,
String filePath)
Constructor that takes a string input.
|
SoyFileParser(SoyTypeRegistry typeRegistry,
IdGenerator nodeIdGen,
String input,
SoyFileKind soyFileKind,
String filePath,
ErrorReporter errorReporter)
Constructor that takes a string input.
|
TemplateParser(IdGenerator nodeIdGen,
Reader input,
String filePath,
int templateContentStartLine,
ErrorReporter errorReporter)
Constructor that takes a reader object providing the input.
|
TemplateParser(IdGenerator nodeIdGen,
String input,
String filePath,
int templateContentStartLine)
Constructor that takes a string input.
|
TemplateParser(IdGenerator nodeIdGen,
String input,
String filePath,
int templateContentStartLine,
ErrorReporter errorReporter)
Constructor that takes a string input.
|
| Modifier and Type | Method and Description |
|---|---|
IdGenerator |
SoyFileSetNode.getNodeIdGenerator()
Returns the node id generator for this parse tree.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends SoyNode> |
SoytreeUtils.cloneListWithNewIds(List<T> origNodes,
IdGenerator nodeIdGen)
Clones the given list of nodes and then generates and sets new ids on all the cloned nodes (by
default, SoyNode.clone() creates cloned nodes with the same ids as the original nodes).
|
static <T extends SoyNode> |
SoytreeUtils.cloneWithNewIds(T origNode,
IdGenerator nodeIdGen)
Clones the given node and then generates and sets new ids on all the cloned nodes (by default,
SoyNode.clone() creates cloned nodes with the same ids as the original nodes).
|
| Constructor and Description |
|---|
SoyFileSetNode(int id,
IdGenerator nodeIdGen) |