public final class RenderContext extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RenderContext.Builder
A builder for configuring the context.
|
| Modifier and Type | Method and Description |
|---|---|
BidiGlobalDir |
getBidiGlobalDir() |
boolean |
getDebugSoyTemplateInfo()
Returns a boolean that is used by other parts of the compiler.
|
CompiledTemplate |
getDelTemplate(String calleeName,
String variant,
boolean allowEmpty,
SoyRecord params,
SoyRecord ij) |
com.google.common.base.Function<String,String> |
getEscapingDirectiveAsFunction(String name) |
SoyJavaFunction |
getFunction(String name) |
com.ibm.icu.util.ULocale |
getLocale() |
SoyJavaPrintDirective |
getPrintDirective(String name) |
com.google.common.collect.ImmutableList<SoyMsgPart> |
getSoyMsgParts(long msgId,
com.google.common.collect.ImmutableList<SoyMsgPart> defaultMsgParts)
Returns the
SoyMsg associated with the msgId or the fallback (aka english)
translation if there is no such message. |
boolean |
hasLogger()
Returns a boolean indicating whether or not there is a logger configured.
|
String |
renameCssSelector(String selector) |
String |
renameXid(String id) |
RenderContext.Builder |
toBuilder() |
boolean |
usePrimaryMsg(long msgId,
long fallbackId)
Returns
true if the primary msg should be used instead of the fallback. |
@Nullable public com.ibm.icu.util.ULocale getLocale()
public BidiGlobalDir getBidiGlobalDir()
public SoyJavaFunction getFunction(String name)
public SoyJavaPrintDirective getPrintDirective(String name)
public com.google.common.base.Function<String,String> getEscapingDirectiveAsFunction(String name)
public boolean getDebugSoyTemplateInfo()
public boolean hasLogger()
public CompiledTemplate getDelTemplate(String calleeName, String variant, boolean allowEmpty, SoyRecord params, SoyRecord ij)
public boolean usePrimaryMsg(long msgId,
long fallbackId)
true if the primary msg should be used instead of the fallback.public com.google.common.collect.ImmutableList<SoyMsgPart> getSoyMsgParts(long msgId, com.google.common.collect.ImmutableList<SoyMsgPart> defaultMsgParts)
SoyMsg associated with the msgId or the fallback (aka english)
translation if there is no such message.public RenderContext.Builder toBuilder()