| Constructor and Description |
|---|
SoyJsSrcOptions() |
| Modifier and Type | Method and Description |
|---|---|
SoyJsSrcOptions |
clone() |
int |
getBidiGlobalDir()
Returns the static bidi global directionality, 1: ltr, -1: rtl, 0: unspecified.
|
boolean |
getUseGoogIsRtlForBidiGlobalDir()
Returns whether to determine the bidi global direction at template runtime by evaluating
goog.i18n.bidi.IS_RTL.
|
boolean |
googMsgsAreExternal()
Returns whether the generated Closure Library message definitions are for external messages
(only applicable if shouldGenerateGoogMsgDefs is true).
|
void |
setBidiGlobalDir(int bidiGlobalDir)
Sets the bidi global directionality to a static value, 1: ltr, -1: rtl, 0: unspecified.
|
void |
setGoogMsgsAreExternal(boolean googMsgsAreExternal)
Sets whether the generated Closure Library message definitions are for external messages (only
applicable if shouldGenerateGoogMsgDefs is true).
|
void |
setShouldAllowDeprecatedSyntax(boolean shouldAllowDeprecatedSyntax)
Sets whether to allow deprecated syntax (semi backwards compatible mode).
|
void |
setShouldDeclareTopLevelNamespaces(boolean shouldDeclareTopLevelNamespaces)
Sets whether we should generate code to declare the top level namespace.
|
void |
setShouldGenerateGoogModules(boolean shouldGenerateGoogModules)
Sets whether goog.modules should be generated.
|
void |
setShouldGenerateGoogMsgDefs(boolean shouldGenerateGoogMsgDefs)
Sets whether we should generate Closure Library message definitions (i.e.
|
void |
setShouldProvideBothSoyNamespacesAndJsFunctions(boolean shouldProvideBothSoyNamespacesAndJsFunctions)
Sets whether we should generate code to provide both Soy namespaces and JS functions.
|
void |
setShouldProvideRequireJsFunctions(boolean shouldProvideRequireJsFunctions)
Sets whether we should generate code to provide/require template JS functions.
|
void |
setShouldProvideRequireSoyNamespaces(boolean shouldProvideRequireSoyNamespaces)
Sets whether we should generate code to provide/require Soy namespaces.
|
void |
setUseGoogIsRtlForBidiGlobalDir(boolean useGoogIsRtlForBidiGlobalDir)
Sets the Javascript code snippet that will evaluate at template runtime to a boolean value
indicating whether the bidi global direction is rtl.
|
boolean |
shouldAllowDeprecatedSyntax()
Deprecated.
Use
SoyGeneralOptions.getDeclaredSyntaxVersion(). |
boolean |
shouldDeclareTopLevelNamespaces()
Returns whether we should attempt to declare the top level namespace.
|
boolean |
shouldGenerateGoogModules()
Returns whether goog.modules should be generated.
|
boolean |
shouldGenerateGoogMsgDefs()
Returns whether we should generate Closure Library message definitions (i.e.
|
boolean |
shouldProvideBothSoyNamespacesAndJsFunctions()
Returns whether we should generate code to provide both Soy namespaces and JS functions.
|
boolean |
shouldProvideRequireJsFunctions()
Returns whether we're set to generate code to provide/require template JS functions.
|
boolean |
shouldProvideRequireSoyNamespaces()
Returns whether we're set to generate code to provide/require Soy namespaces.
|
String |
toString() |
public void setShouldAllowDeprecatedSyntax(boolean shouldAllowDeprecatedSyntax)
shouldAllowDeprecatedSyntax - The value to set.@Deprecated public boolean shouldAllowDeprecatedSyntax()
SoyGeneralOptions.getDeclaredSyntaxVersion().public void setShouldProvideRequireSoyNamespaces(boolean shouldProvideRequireSoyNamespaces)
shouldProvideRequireSoyNamespaces - The value to set.public boolean shouldProvideRequireSoyNamespaces()
public void setShouldProvideRequireJsFunctions(boolean shouldProvideRequireJsFunctions)
shouldProvideRequireJsFunctions - The value to set.public boolean shouldProvideRequireJsFunctions()
public void setShouldProvideBothSoyNamespacesAndJsFunctions(boolean shouldProvideBothSoyNamespacesAndJsFunctions)
shouldProvideBothSoyNamespacesAndJsFunctions - The value to set.public boolean shouldProvideBothSoyNamespacesAndJsFunctions()
public void setShouldDeclareTopLevelNamespaces(boolean shouldDeclareTopLevelNamespaces)
shouldDeclareTopLevelNamespaces - The value to set.public boolean shouldDeclareTopLevelNamespaces()
public void setShouldGenerateGoogModules(boolean shouldGenerateGoogModules)
shouldGenerateGoogModules - The value to set.public boolean shouldGenerateGoogModules()
public void setShouldGenerateGoogMsgDefs(boolean shouldGenerateGoogMsgDefs)
shouldGenerateGoogMsgDefs - The value to set.public boolean shouldGenerateGoogMsgDefs()
public void setGoogMsgsAreExternal(boolean googMsgsAreExternal)
If this option is true, then we generate
var MSG_EXTERNAL_[soyGeneratedMsgId] = goog.getMsg(...);
If this option is false, then we generate
var MSG_UNNAMED_[uniquefier] = goog.getMsg(...);googMsgsAreExternal - The value to set.public boolean googMsgsAreExternal()
If this option is true, then we generate
var MSG_EXTERNAL_[soyGeneratedMsgId] = goog.getMsg(...);
If this option is false, then we generate
var MSG_UNNAMED_[uniquefier] = goog.getMsg(...);public void setBidiGlobalDir(int bidiGlobalDir)
bidiGlobalDir - 1: ltr, -1: rtl, 0: unspecified. Checks that no other value is used.public int getBidiGlobalDir()
public void setUseGoogIsRtlForBidiGlobalDir(boolean useGoogIsRtlForBidiGlobalDir)
useGoogIsRtlForBidiGlobalDir - Whether to determine the bidi global direction at template
runtime by evaluating goog.i18n.bidi.IS_RTL.public boolean getUseGoogIsRtlForBidiGlobalDir()
public final SoyJsSrcOptions clone()