| Package | Description |
|---|---|
| com.google.template.soy.jssrc.dsl |
| Modifier and Type | Method and Description |
|---|---|
SwitchBuilder |
SwitchBuilder.case_(CodeChunk.WithValue caseLabel,
CodeChunk body)
Adds a case clause to this switch statement.
|
SwitchBuilder |
SwitchBuilder.case_(com.google.common.collect.ImmutableList<CodeChunk.WithValue> caseLabels,
CodeChunk body)
Adds a case clause (one or more
case labels followed by a body) to this switch
statement. |
SwitchBuilder |
SwitchBuilder.default_(CodeChunk body)
Adds a
default clause to this switch statement. |
static SwitchBuilder |
CodeChunk.switch_(CodeChunk.WithValue switchOn)
Starts a
switch statement dispatching on the given chunk. |