
io.bit3.jsass.context.AbstractContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of io.bit3.jsass Show documentation
Show all versions of io.bit3.jsass Show documentation
SASS compiler using libsass.
package io.bit3.jsass.context;
import io.bit3.jsass.Options;
import java.net.URI;
/**
* Abstract context that contain all shared informations for each context.
*/
public class AbstractContext implements Context {
/**
* The input file path.
*/
private final URI inputPath;
/**
* The output file path.
*/
private final URI outputPath;
/**
* The compiler options.
*/
private final Options options;
/**
* Initialize the context with input path, output path and options.
*
* @param inputPath The input file path.
* @param outputPath The output file path.
* @param options The compiler options.
*/
public AbstractContext(URI inputPath, URI outputPath, Options options) {
this.inputPath = inputPath;
this.outputPath = outputPath;
this.options = options;
}
@Override
public URI getInputPath() {
return inputPath;
}
@Override
public URI getOutputPath() {
return outputPath;
}
@Override
public Options getOptions() {
return options;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy