public final class ConditionalBuilder extends Object
Conditional.| Modifier and Type | Method and Description |
|---|---|
CodeChunk |
build()
Finishes building this conditional.
|
ConditionalBuilder |
else_(CodeChunk trailingElse)
Adds an
else clause encapsulating the given chunk to this conditional. |
ConditionalBuilder |
elseif_(CodeChunk.WithValue predicate,
CodeChunk consequent)
Adds an
else if clause with the given predicate and consequent to this conditional. |
public ConditionalBuilder elseif_(CodeChunk.WithValue predicate, CodeChunk consequent)
else if clause with the given predicate and consequent to this conditional.public ConditionalBuilder else_(CodeChunk trailingElse)
else clause encapsulating the given chunk to this conditional.@CheckReturnValue public CodeChunk build()