类 CssLinkResourceTransformer.AbstractLinkParser
java.lang.Object
cn.taketoday.web.resource.CssLinkResourceTransformer.AbstractLinkParser
- 所有已实现的接口:
CssLinkResourceTransformer.LinkParser
- 直接已知子类:
CssLinkResourceTransformer.ImportStatementLinkParser,CssLinkResourceTransformer.UrlFunctionLinkParser
protected abstract static class CssLinkResourceTransformer.AbstractLinkParser
extends Object
implements CssLinkResourceTransformer.LinkParser
Abstract base class for
CssLinkResourceTransformer.LinkParser implementations.-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected intextractLink(int index, String endKey, String content, SortedSet<CssLinkResourceTransformer.ContentChunkInfo> linksToAdd) protected abstract intextractLink(int index, String content, SortedSet<CssLinkResourceTransformer.ContentChunkInfo> linksToAdd) Invoked after a keyword match, after whitespace has been removed, and when the next char is neither a single nor double quote.protected abstract StringReturn the keyword to use to search for links, e.g.voidparse(String content, SortedSet<CssLinkResourceTransformer.ContentChunkInfo> result)
-
构造器详细资料
-
AbstractLinkParser
protected AbstractLinkParser()
-
-
方法详细资料
-
getKeyword
Return the keyword to use to search for links, e.g. "@import", "url(" -
parse
- 指定者:
parse在接口中CssLinkResourceTransformer.LinkParser
-
extractLink
protected int extractLink(int index, String endKey, String content, SortedSet<CssLinkResourceTransformer.ContentChunkInfo> linksToAdd) -
extractLink
protected abstract int extractLink(int index, String content, SortedSet<CssLinkResourceTransformer.ContentChunkInfo> linksToAdd) Invoked after a keyword match, after whitespace has been removed, and when the next char is neither a single nor double quote.
-