public abstract static class SoyJbcSrcPrintDirective.Streamable.AppendableAndOptions extends Object
Expression for a LoggingAdvisingAppendable
which will apply a given print directive, as well as additional options for the behavior of
the print directive.| Constructor and Description |
|---|
AppendableAndOptions() |
| Modifier and Type | Method and Description |
|---|---|
abstract Expression |
appendable()
The
LoggingAdvisingAppendable expression. |
abstract boolean |
closeable()
Specifies whether the
appendable() implements Closeable and needs
to have it's Closeable.close() method called to function correctly. |
static SoyJbcSrcPrintDirective.Streamable.AppendableAndOptions |
create(Expression expression)
Creates an appendable that doesn't need to be closed.
|
static SoyJbcSrcPrintDirective.Streamable.AppendableAndOptions |
createCloseable(Expression expression)
Creates an appendable that needs to be closed.
|
public static SoyJbcSrcPrintDirective.Streamable.AppendableAndOptions create(Expression expression)
This means the appendable cannot buffer any content, each LoggingAdvisingAppendable.append(java.lang.CharSequence) call must be handled immediately.
public static SoyJbcSrcPrintDirective.Streamable.AppendableAndOptions createCloseable(Expression expression)
This means the appendable must implement Closeable and that the compiler
will ensure that the Closeable.close() method will be called when no more
interactions will occur. Implementations can take advantage of this to implement print
directives that use a temporary buffer.
public abstract Expression appendable()
LoggingAdvisingAppendable expression. Generates code to produce another LoggingAdvisingAppendable that when written to applies the directive logic.public abstract boolean closeable()
appendable() implements Closeable and needs
to have it's Closeable.close() method called to function correctly.