Package io.bit3.jsass
Class Options
java.lang.Object
io.bit3.jsass.Options
- All Implemented Interfaces:
java.io.Serializable
public class Options
extends java.lang.Object
implements java.io.Serializable
The compiler options.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description Options() -
Method Summary
Modifier and Type Method Description java.util.List<java.lang.Object>getFunctionProviders()java.util.List<Importer>getHeaderImporters()java.util.Collection<Importer>getImporters()java.util.List<java.io.File>getIncludePaths()java.lang.StringgetIndent()java.lang.StringgetLinefeed()OutputStylegetOutputStyle()Return the output style.java.lang.StringgetPluginPath()intgetPrecision()Return the fractional numbers precision.java.net.URIgetSourceMapFile()Return the source map file.java.net.URIgetSourceMapRoot()booleanisIndentedSyntaxSrc()booleanisOmitSourceMapUrl()Determine if sourceMappingUrl is omitted in css output.booleanisSourceComments()Determine if inline source comments are generated.booleanisSourceMapContents()booleanisSourceMapEmbed()Determine if source map is embedded into css output.voidsetFunctionProviders(java.util.List<java.lang.Object> functionProviders)voidsetHeaderImporters(java.util.List<Importer> headerImporters)voidsetImporters(java.util.Collection<Importer> importers)voidsetIncludePaths(java.util.List<java.io.File> includePaths)voidsetIndent(java.lang.String indent)voidsetIsIndentedSyntaxSrc(boolean isIndentedSyntaxSrc)voidsetLinefeed(java.lang.String linefeed)voidsetOmitSourceMapUrl(boolean omitSourceMapUrl)Set if sourceMappingUrl should be omitted in css output.voidsetOutputStyle(OutputStyle outputStyle)Set the output style.voidsetPluginPath(java.lang.String pluginPath)voidsetPrecision(int precision)Set the fractional numbers precision.voidsetSourceComments(boolean sourceComments)Set if inline source comments should generated.voidsetSourceMapContents(boolean sourceMapContents)voidsetSourceMapEmbed(boolean sourceMapEmbed)Set if source map is embedded into css output.voidsetSourceMapFile(java.net.URI sourceMapFile)Set the source map file.voidsetSourceMapRoot(java.net.URI sourceMapRoot)
-
Constructor Details
-
Options
public Options()
-
-
Method Details
-
getFunctionProviders
public java.util.List<java.lang.Object> getFunctionProviders() -
setFunctionProviders
public void setFunctionProviders(java.util.List<java.lang.Object> functionProviders) -
getHeaderImporters
-
setHeaderImporters
-
getImporters
-
setImporters
-
getIncludePaths
public java.util.List<java.io.File> getIncludePaths() -
setIncludePaths
public void setIncludePaths(java.util.List<java.io.File> includePaths) -
getIndent
public java.lang.String getIndent() -
setIndent
public void setIndent(java.lang.String indent) -
isIndentedSyntaxSrc
public boolean isIndentedSyntaxSrc() -
setIsIndentedSyntaxSrc
public void setIsIndentedSyntaxSrc(boolean isIndentedSyntaxSrc) -
getLinefeed
public java.lang.String getLinefeed() -
setLinefeed
public void setLinefeed(java.lang.String linefeed) -
isOmitSourceMapUrl
public boolean isOmitSourceMapUrl()Determine if sourceMappingUrl is omitted in css output.- Returns:
- true if the sourceMappingUrl is omitted in css output.
-
setOmitSourceMapUrl
public void setOmitSourceMapUrl(boolean omitSourceMapUrl)Set if sourceMappingUrl should be omitted in css output.- Parameters:
omitSourceMapUrl- Omit the sourceMappingUrl in css output.
-
getOutputStyle
Return the output style.- Returns:
- The output style.
-
setOutputStyle
Set the output style.- Parameters:
outputStyle- The output style.
-
getPluginPath
public java.lang.String getPluginPath() -
setPluginPath
public void setPluginPath(java.lang.String pluginPath) -
getPrecision
public int getPrecision()Return the fractional numbers precision.- Returns:
- The fractional numbers precision.
-
setPrecision
public void setPrecision(int precision)Set the fractional numbers precision.- Parameters:
precision- The fractional numbers precision.
-
isSourceComments
public boolean isSourceComments()Determine if inline source comments are generated.- Returns:
- true if inline source comments are generated.
-
setSourceComments
public void setSourceComments(boolean sourceComments)Set if inline source comments should generated.- Parameters:
sourceComments- true if inline source comments should generated.
-
isSourceMapContents
public boolean isSourceMapContents() -
setSourceMapContents
public void setSourceMapContents(boolean sourceMapContents) -
isSourceMapEmbed
public boolean isSourceMapEmbed()Determine if source map is embedded into css output.- Returns:
- true if the source map is embedded into css output.
-
setSourceMapEmbed
public void setSourceMapEmbed(boolean sourceMapEmbed)Set if source map is embedded into css output.- Parameters:
sourceMapEmbed- Embed source map into css output.
-
getSourceMapFile
public java.net.URI getSourceMapFile()Return the source map file.- Returns:
- The source map file or null if no source map should generated.
-
setSourceMapFile
public void setSourceMapFile(java.net.URI sourceMapFile)Set the source map file.- Parameters:
sourceMapFile- The source map file or null to disable source map generation.
-
getSourceMapRoot
public java.net.URI getSourceMapRoot() -
setSourceMapRoot
public void setSourceMapRoot(java.net.URI sourceMapRoot)
-