Package io.bit3.jsass.context
Class AbstractContext
java.lang.Object
io.bit3.jsass.context.AbstractContext
- All Implemented Interfaces:
Context,java.io.Serializable
- Direct Known Subclasses:
FileContext,StringContext
public abstract class AbstractContext extends java.lang.Object implements Context
Abstract context that contain all shared informations for each context.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description AbstractContext(java.net.URI inputPath, java.net.URI outputPath, Options options)Initialize the context with input path, output path and options. -
Method Summary
Modifier and Type Method Description java.net.URIgetInputPath()Return the input file path.OptionsgetOptions()Return the compiler options.java.net.URIgetOutputPath()Return the output file path.
-
Constructor Details
-
AbstractContext
Initialize the context with input path, output path and options.- Parameters:
inputPath- The input file path.outputPath- The output file path.options- The compiler options.
-
-
Method Details
-
getInputPath
public java.net.URI getInputPath()Description copied from interface:ContextReturn the input file path.- Specified by:
getInputPathin interfaceContext- Returns:
- The input file path or null if no path is specified.
-
getOutputPath
public java.net.URI getOutputPath()Description copied from interface:ContextReturn the output file path.- Specified by:
getOutputPathin interfaceContext- Returns:
- The output file path or null if no path is specified.
-
getOptions
Description copied from interface:ContextReturn the compiler options.- Specified by:
getOptionsin interfaceContext- Returns:
- The compiler options.
-