Class Import


  • public class Import
    extends java.lang.Object
    The result of a custom importer, can be used to import files and strings.
    • Constructor Summary

      Constructors 
      Constructor Description
      Import​(java.lang.String importUri, java.lang.String absoluteUri)
      Create a file import.
      Import​(java.lang.String importUri, java.lang.String absoluteUri, java.lang.String contents)
      Create a string import.
      Import​(java.lang.String importUri, java.lang.String absoluteUri, java.lang.String contents, java.lang.String sourceMap)
      Create a string import.
      Import​(java.net.URI importUri, java.net.URI absoluteUri)
      Create a file import.
      Import​(java.net.URI importUri, java.net.URI absoluteUri, java.lang.String contents)
      Create a string import.
      Import​(java.net.URI importUri, java.net.URI absoluteUri, java.lang.String contents, java.lang.String sourceMap)
      Create a string import.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.net.URI getAbsoluteUri()
      Get the absolute uri.
      java.lang.String getContents()
      Return the in-memory sass code.
      java.net.URI getImportUri()
      Get the import uri.
      java.lang.String getSourceMap()
      Return the in-memory source map.
      • Methods inherited from class java.lang.Object

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

      • Import

        public Import​(java.net.URI importUri,
                      java.net.URI absoluteUri)
        Create a file import.
        Parameters:
        importUri - The file uri relative to the base uri.
        absoluteUri - The base uri for this import.
      • Import

        public Import​(java.net.URI importUri,
                      java.net.URI absoluteUri,
                      java.lang.String contents)
        Create a string import.
        Parameters:
        importUri - The file uri relative to the base uri.
        absoluteUri - The base uri for this import.
        contents - The in-memory sass code.
      • Import

        public Import​(java.net.URI importUri,
                      java.net.URI absoluteUri,
                      java.lang.String contents,
                      java.lang.String sourceMap)
        Create a string import.
        Parameters:
        importUri - The file uri relative to the base uri.
        absoluteUri - The base uri for this import.
        contents - The in-memory sass code.
        sourceMap - The in-memory source map.
      • Import

        public Import​(java.lang.String importUri,
                      java.lang.String absoluteUri)
               throws java.net.URISyntaxException
        Create a file import.
        Parameters:
        importUri - The file uri relative to the base uri.
        absoluteUri - The base uri for this import.
        Throws:
        java.net.URISyntaxException
      • Import

        public Import​(java.lang.String importUri,
                      java.lang.String absoluteUri,
                      java.lang.String contents)
               throws java.net.URISyntaxException
        Create a string import.
        Parameters:
        importUri - The file uri relative to the base uri.
        absoluteUri - The base uri for this import.
        contents - The in-memory sass code.
        Throws:
        java.net.URISyntaxException
      • Import

        public Import​(java.lang.String importUri,
                      java.lang.String absoluteUri,
                      java.lang.String contents,
                      java.lang.String sourceMap)
               throws java.net.URISyntaxException
        Create a string import.
        Parameters:
        importUri - The file uri relative to the base uri.
        absoluteUri - The base uri for this import.
        contents - The in-memory sass code.
        sourceMap - The in-memory source map.
        Throws:
        java.net.URISyntaxException
    • Method Detail

      • getImportUri

        public java.net.URI getImportUri()
        Get the import uri.
        Returns:
        The file uri relative to the base uri.
      • getAbsoluteUri

        public java.net.URI getAbsoluteUri()
        Get the absolute uri.
        Returns:
        The base uri for this import.
      • getContents

        public java.lang.String getContents()
        Return the in-memory sass code.
        Returns:
        The in-memory sass code or null when importing a file.
      • getSourceMap

        public java.lang.String getSourceMap()
        Return the in-memory source map.
        Returns:
        The in-memory source map or null.