| Package | Description |
|---|---|
| com.google.template.soy.incrementaldomsrc | |
| com.google.template.soy.jssrc.internal |
| Modifier and Type | Method and Description |
|---|---|
protected JsCodeBuilder |
GenIncrementalDomCodeVisitor.createCodeBuilder() |
| Modifier and Type | Method and Description |
|---|---|
JsCodeBuilder |
JsCodeBuilder.addChunksToOutputVar(List<? extends CodeChunk.WithValue> codeChunks)
Appends one or more lines representing the concatenation of the values of the given code chunks
saved to the current output variable.
|
JsCodeBuilder |
JsCodeBuilder.addChunkToOutputVar(CodeChunk.WithValue chunk)
Appends the given code chunk to the current output variable.
|
JsCodeBuilder |
JsCodeBuilder.append(CodeChunk codeChunk)
Serializes the given
CodeChunk into the code builder, respecting the code builder's
current indentation level. |
JsCodeBuilder |
JsCodeBuilder.append(String... codeFragments)
Appends one or more strings to the generated code.
|
JsCodeBuilder |
JsCodeBuilder.appendLine(String... codeFragments)
Appends the current indent, then the given strings, then a newline.
|
JsCodeBuilder |
JsCodeBuilder.appendLineEnd(String... codeFragments)
Appends the given strings, then a newline.
|
JsCodeBuilder |
JsCodeBuilder.appendLineStart(String... codeFragments)
Appends the current indent, then the given strings.
|
protected JsCodeBuilder |
GenJsCodeVisitor.createChildJsCodeBuilder() |
protected JsCodeBuilder |
GenJsCodeVisitor.createCodeBuilder() |
JsCodeBuilder |
JsCodeBuilder.decreaseIndent()
Decreases the current indent.
|
JsCodeBuilder |
JsCodeBuilder.decreaseIndentTwice()
Decreases the current indent twice.
|
protected JsCodeBuilder |
GenJsCodeVisitor.getJsCodeBuilder() |
JsCodeBuilder |
JsCodeBuilder.increaseIndent()
Increases the current indent.
|
JsCodeBuilder |
JsCodeBuilder.increaseIndentTwice()
Increases the current indent twice.
|
JsCodeBuilder |
JsCodeBuilder.popOutputVar()
Pops off the current output variable.
|
JsCodeBuilder |
JsCodeBuilder.pushOutputVar(String outputVarName)
Pushes on a new current output variable.
|
JsCodeBuilder |
JsCodeBuilder.setOutputVarInited()
Tells this CodeBuilder that the current output variable has already been initialized.
|
| Constructor and Description |
|---|
JsCodeBuilder(JsCodeBuilder parent) |