com.vaadin.sass.internal.resolver
Class FilesystemResolver

java.lang.Object
  extended by com.vaadin.sass.internal.resolver.AbstractResolver
      extended by com.vaadin.sass.internal.resolver.FilesystemResolver
All Implemented Interfaces:
ScssStylesheetResolver, Serializable

public class FilesystemResolver
extends AbstractResolver

See Also:
Serialized Form

Constructor Summary
FilesystemResolver(String... customPaths)
           
 
Method Summary
protected  List<String> getPotentialParentPaths(ScssStylesheet parentStyleSheet, String identifier)
          Retrieves the parent paths which should be used while resolving relative identifiers.
 org.w3c.css.sac.InputSource resolveNormalized(String identifier)
          Resolves the identifier after it has been normalized using AbstractResolver.normalize(String).
 
Methods inherited from class com.vaadin.sass.internal.resolver.AbstractResolver
extractFullPath, normalize, normalizeAndResolve, resolve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilesystemResolver

public FilesystemResolver(String... customPaths)
Method Detail

getPotentialParentPaths

protected List<String> getPotentialParentPaths(ScssStylesheet parentStyleSheet,
                                               String identifier)
Description copied from class: AbstractResolver
Retrieves the parent paths which should be used while resolving relative identifiers. By default uses the parent stylesheet location and a possible absolute path in the identifier.

Overrides:
getPotentialParentPaths in class AbstractResolver
Parameters:
parentStyleSheet - The parent stylesheet or null if there is no parent
identifier - The identifier to be resolved
Returns:
a list of paths in which to look for the relative import

resolveNormalized

public org.w3c.css.sac.InputSource resolveNormalized(String identifier)
Description copied from class: AbstractResolver
Resolves the identifier after it has been normalized using AbstractResolver.normalize(String).

Specified by:
resolveNormalized in class AbstractResolver
Parameters:
identifier - The normalized identifier
Returns:
an InputSource if the resolver found a source or null otherwise


Copyright © 2013–2014 Vaadin. All rights reserved.