|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.template.soy.jssrc.SoyJsSrcOptions
public class SoyJsSrcOptions
Compilation options for the JS Src output target (backend).
| Nested Class Summary | |
|---|---|
static class |
SoyJsSrcOptions.CodeStyle
The two supported code styles. |
| Constructor Summary | |
|---|---|
SoyJsSrcOptions()
|
|
| Method Summary | |
|---|---|
SoyJsSrcOptions |
clone()
|
int |
getBidiGlobalDir()
Returns the static bidi global directionality, 1: ltr, -1: rtl, 0: unspecified. |
SoyJsSrcOptions.CodeStyle |
getCodeStyle()
Returns the currently set code style. |
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). |
boolean |
isUsingIjData()
Returns whether use of injected data is currently enabled. |
void |
setBidiGlobalDir(int bidiGlobalDir)
Sets the bidi global directionality to a static value, 1: ltr, -1: rtl, 0: unspecified. |
void |
setCodeStyle(SoyJsSrcOptions.CodeStyle codeStyle)
Sets the output variable code style to use. |
void |
setGoogMsgsAreExternal(boolean googMsgsAreExternal)
Sets whether the generated Closure Library message definitions are for external messages (only applicable if shouldGenerateGoogMsgDefs is true). |
void |
setIsUsingIjData(boolean isUsingIjData)
Sets whether to enable use of injected data (syntax is '$ij.*'). |
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 |
setShouldGenerateGoogMsgDefs(boolean shouldGenerateGoogMsgDefs)
Sets whether we should generate Closure Library message definitions (i.e. |
void |
setShouldGenerateJsdoc(boolean shouldGenerateJsdoc)
Sets whether we should generate JSDoc with type info for the Closure Compiler. |
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()
Returns whether we're set to allow deprecated syntax (semi backwards compatible mode). |
boolean |
shouldDeclareTopLevelNamespaces()
Returns whether we should attempt to declare the top level namespace. |
boolean |
shouldGenerateGoogMsgDefs()
Returns whether we should generate Closure Library message definitions (i.e. |
boolean |
shouldGenerateJsdoc()
Returns whether we should generate JSDoc with type info for the Closure Compiler. |
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SoyJsSrcOptions()
| Method Detail |
|---|
public void setShouldAllowDeprecatedSyntax(boolean shouldAllowDeprecatedSyntax)
shouldAllowDeprecatedSyntax - The value to set.public boolean shouldAllowDeprecatedSyntax()
public void setIsUsingIjData(boolean isUsingIjData)
isUsingIjData - The code style to set.public boolean isUsingIjData()
public void setCodeStyle(SoyJsSrcOptions.CodeStyle codeStyle)
codeStyle - The code style to set.public SoyJsSrcOptions.CodeStyle getCodeStyle()
public void setShouldGenerateJsdoc(boolean shouldGenerateJsdoc)
shouldGenerateJsdoc - The value to set.public boolean shouldGenerateJsdoc()
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 setShouldGenerateGoogMsgDefs(boolean shouldGenerateGoogMsgDefs)
shouldGenerateGoogMsgDefs - The value to set.public boolean shouldGenerateGoogMsgDefs()
public void setGoogMsgsAreExternal(boolean googMsgsAreExternal)
googMsgsAreExternal - The value to set.public boolean googMsgsAreExternal()
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 SoyJsSrcOptions clone()
clone in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||