public final class IncrementalDomCodeBuilder extends CodeBuilder<JsExpr>
JsExprs into an output buffer.| Constructor and Description |
|---|
IncrementalDomCodeBuilder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToOutput(List<? extends JsExpr> jsExprs)
Emits a series of
JsExprs at the current location in the generated code. |
void |
addToOutputVar(List<? extends JsExpr> jsExprs)
In Incremental DOM, the tags, attributes and print statements correspond to function calls
or arguments.
|
SanitizedContent.ContentKind |
getContentKind() |
void |
initOutputVarIfNecessary()
Performs no action as there is no output variable to initialize.
|
void |
setContentKind(SanitizedContent.ContentKind contentKind) |
append, appendLine, appendLineEnd, appendLineStart, appendOutputVarName, decreaseIndent, decreaseIndentTwice, getCode, getOutputVarIsInited, getOutputVarName, increaseIndent, increaseIndentTwice, popOutputVar, pushOutputVar, setOutputVarInitedpublic void initOutputVarIfNecessary()
initOutputVarIfNecessary in class CodeBuilder<JsExpr>public void addToOutputVar(List<? extends JsExpr> jsExprs)
addToOutputVar in class CodeBuilder<JsExpr>jsExprs - A list of expressions that may correspond to function calls or parameters.protected void addToOutput(List<? extends JsExpr> jsExprs)
JsExprs at the current location in the generated code.jsExprs - A list of expressions that may correspond to function calls or parameters.public void setContentKind(SanitizedContent.ContentKind contentKind)
contentKind - The current kind of content being processed.public SanitizedContent.ContentKind getContentKind()