|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.sass.internal.resolver.AbstractResolver
public abstract class AbstractResolver
Base class for resolvers. Implements functionality for locating paths which an import can be relative to and helpers for extracting path information from the identifier.
| Constructor Summary | |
|---|---|
AbstractResolver()
|
|
| Method Summary | |
|---|---|
protected String |
extractFullPath(String path,
String identifier)
Extracts the full path from the path combined with the identifier |
protected List<String> |
getPotentialParentPaths(ScssStylesheet parentStylesheet,
String identifier)
Retrieves the parent paths which should be used while resolving relative identifiers. |
protected String |
normalize(String path)
Normalizes "." and ".." from the path string where parent path segments can be removed. |
protected org.w3c.css.sac.InputSource |
normalizeAndResolve(String identifier)
Resolves the normalized version of the given identifier |
org.w3c.css.sac.InputSource |
resolve(ScssStylesheet parentStylesheet,
String identifier)
Called with the "identifier" of a stylesheet that the resolver should try to find. |
protected abstract org.w3c.css.sac.InputSource |
resolveNormalized(String identifier)
Resolves the identifier after it has been normalized using normalize(String). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractResolver()
| Method Detail |
|---|
public org.w3c.css.sac.InputSource resolve(ScssStylesheet parentStylesheet,
String identifier)
ScssStylesheetResolverInputSource.setURI(String) to the final location where the
stylesheet was found, e.g "runo.scss" might result in a URI like
"VAADIN/themes/runo/runo.scss".
resolve in interface ScssStylesheetResolverparentStylesheet - The parent style sheetidentifier - used fo find stylesheet
protected List<String> getPotentialParentPaths(ScssStylesheet parentStylesheet,
String identifier)
parentStylesheet - The parent stylesheet or null if there is no parentidentifier - The identifier to be resolved
protected String extractFullPath(String path,
String identifier)
path - The base pathidentifier - The identifier which may contain a path part, separated by "/"
from the real identifier
protected org.w3c.css.sac.InputSource normalizeAndResolve(String identifier)
identifier - The identifier to resolve
protected abstract org.w3c.css.sac.InputSource resolveNormalized(String identifier)
normalize(String).
identifier - The normalized identifier
protected String normalize(String path)
path - A relative or absolute file path
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||