com.google.template.soy.javasrc
Class SoyJavaSrcOptions

java.lang.Object
  extended by com.google.template.soy.javasrc.SoyJavaSrcOptions
All Implemented Interfaces:
Cloneable

public class SoyJavaSrcOptions
extends Object
implements Cloneable

Compilation options for the Java Src output target (backend).


Nested Class Summary
static class SoyJavaSrcOptions.CodeStyle
          The two supported code styles.
 
Constructor Summary
SoyJavaSrcOptions()
           
 
Method Summary
 SoyJavaSrcOptions clone()
           
 int getBidiGlobalDir()
          Returns the static bidi global directionality, 1: ltr, -1: rtl, 0: unspecified.
 SoyJavaSrcOptions.CodeStyle getCodeStyle()
          Returns the currently set code style.
 SoyCssRenamingMap getCssRenamingHints()
          Returns the CSS renaming map that specifies at compile time how to rename CSS selectors.
 void setBidiGlobalDir(int bidiGlobalDir)
          Sets the bidi global directionality to a static value, 1: ltr, -1: rtl, 0: unspecified.
 void setCodeStyle(SoyJavaSrcOptions.CodeStyle codeStyle)
          Sets the output variable code style to use.
 void setCssRenamingHints(SoyCssRenamingMap cssRenamingHints)
          Sets the CSS renaming map that specifies at compile time how CSS selectors should be renamed.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoyJavaSrcOptions

public SoyJavaSrcOptions()
Method Detail

setCodeStyle

public void setCodeStyle(SoyJavaSrcOptions.CodeStyle codeStyle)
Sets the output variable code style to use.

Parameters:
codeStyle - The code style to set.

getCodeStyle

public SoyJavaSrcOptions.CodeStyle getCodeStyle()
Returns the currently set code style.


setBidiGlobalDir

public void setBidiGlobalDir(int bidiGlobalDir)
Sets the bidi global directionality to a static value, 1: ltr, -1: rtl, 0: unspecified. If 0, the bidi global directionality will be inferred from the message bundle locale. This is the recommended mode of operation. Thus, THERE IS USUALLY NO NEED TO USE THIS METHOD!

Parameters:
bidiGlobalDir - 1: ltr, -1: rtl, 0: unspecified. Checks that no other value is used.

getBidiGlobalDir

public int getBidiGlobalDir()
Returns the static bidi global directionality, 1: ltr, -1: rtl, 0: unspecified.


setCssRenamingHints

public void setCssRenamingHints(SoyCssRenamingMap cssRenamingHints)
Sets the CSS renaming map that specifies at compile time how CSS selectors should be renamed.

By default, no renaming is done. If you know that no renaming is needed, ever, use the identity renamer.

Parameters:
cssRenamingHints - Returns null to indicate that a given CSS selector cannot be renamed at compile time.

getCssRenamingHints

public SoyCssRenamingMap getCssRenamingHints()
Returns the CSS renaming map that specifies at compile time how to rename CSS selectors.


clone

public SoyJavaSrcOptions clone()
Overrides:
clone in class Object