Package io.bit3.jsass.context
Class StringContext
java.lang.Object
io.bit3.jsass.context.AbstractContext
io.bit3.jsass.context.StringContext
- All Implemented Interfaces:
Context,java.io.Serializable
public class StringContext extends AbstractContext
A context to compile a string in memory.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description StringContext(java.lang.String string, java.net.URI inputPath, java.net.URI outputPath, Options options)Create a new string context. -
Method Summary
Modifier and Type Method Description java.lang.StringgetString()Return the in-memory sass code.Methods inherited from class io.bit3.jsass.context.AbstractContext
getInputPath, getOptions, getOutputPath
-
Constructor Details
-
StringContext
public StringContext(java.lang.String string, java.net.URI inputPath, java.net.URI outputPath, Options options)Create a new string context.- Parameters:
string- The in-memory sass code.inputPath- The input path used for calculation path changes, or null.outputPath- The output path used for calculation path changes, or null.options- The compiler options.
-
-
Method Details
-
getString
public java.lang.String getString()Return the in-memory sass code.- Returns:
- The in-memory sass code.
-