| Package | Description |
|---|---|
| com.google.template.soy.base.internal | |
| com.google.template.soy.jssrc.internal | |
| com.google.template.soy.passes | |
| com.google.template.soy.shared |
Classes 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.copy()
Clones this id generator, such that the original and new generators will generate the same list
of ids going forward.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ExtractMsgVariablesVisitor.wrapMsgFallbackGroupNodeHelper(MsgFallbackGroupNode msgFbGrpNode,
IdGenerator nodeIdGen) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
CompilerFilePass.run(SoyFileNode file,
IdGenerator nodeIdGen) |
void |
PassManager.runSingleFilePasses(SoyFileNode file,
IdGenerator nodeIdGen) |
| 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 |
|---|
SoyFileParser(SoyTypeRegistry typeRegistry,
IdGenerator nodeIdGen,
Reader input,
SoyFileKind soyFileKind,
String filePath,
ErrorReporter errorReporter)
Constructor that takes a reader object providing the 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.copy(copyState) 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.copy(copyState) creates cloned nodes with the same ids as the original nodes).
|
PrintNode |
MsgFallbackGroupNode.makePrintNode(IdGenerator nodeIdGen,
VarDefn var)
Creates a print node that corresponds to this node, for tree rewriting.
|
| Constructor and Description |
|---|
SoyFileSetNode(int id,
IdGenerator nodeIdGen) |