Package dev.amp.validator.css
Class ParsedCssUrl
- java.lang.Object
-
- com.steadystate.css.parser.Token
-
- dev.amp.validator.css.Token
-
- dev.amp.validator.css.ParsedCssUrl
-
- All Implemented Interfaces:
Serializable
public class ParsedCssUrl extends Token
Used by parse_css.ExtractUrls to return urls it has seen. This represents URLs in CSS such as url(http://foo.com/) and url("http://bar.com/"). For this token, line() and col() indicate the position information of the left-most CSS token that's part of the URL. E.g., this would be the URLToken instance or the FunctionToken instance.- Author:
- nhant01, GeorgeLuo
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParsedCssUrl()Constructor for empty css url
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAtRuleScope()Getter for rule scopeTokenTypegetTokenType()return the token typeStringgetUtf8Url()Getter for urlvoidsetAtRuleScope(String atRuleScope)setter for rule scopevoidsetUtf8Url(String utf8Url)setter for url
-
-
-
Method Detail
-
getAtRuleScope
@Nonnull public String getAtRuleScope()
Getter for rule scope- Returns:
- the atRule scope
-
getUtf8Url
@Nonnull public String getUtf8Url()
Getter for url- Returns:
- the url as utf8 string
-
setUtf8Url
public void setUtf8Url(@Nonnull String utf8Url)setter for url- Parameters:
utf8Url- the value to set utf8Url to
-
setAtRuleScope
public void setAtRuleScope(@Nonnull String atRuleScope)setter for rule scope- Parameters:
atRuleScope- at rule scope to
-
getTokenType
public TokenType getTokenType()
return the token type- Specified by:
getTokenTypein classToken- Returns:
- TokenType.PARSED_CSS_URL
-
-