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.URI getInputPath()
    Return the input file path.
    Options getOptions()
    Return the compiler options.
    java.net.URI getOutputPath()
    Return the output file path.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractContext

      public AbstractContext​(java.net.URI inputPath, java.net.URI outputPath, Options options)
      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: Context
      Return the input file path.
      Specified by:
      getInputPath in interface Context
      Returns:
      The input file path or null if no path is specified.
    • getOutputPath

      public java.net.URI getOutputPath()
      Description copied from interface: Context
      Return the output file path.
      Specified by:
      getOutputPath in interface Context
      Returns:
      The output file path or null if no path is specified.
    • getOptions

      public Options getOptions()
      Description copied from interface: Context
      Return the compiler options.
      Specified by:
      getOptions in interface Context
      Returns:
      The compiler options.