Class 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 Detail

      • ParsedCssUrl

        public ParsedCssUrl()
        Constructor for empty css 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:
        getTokenType in class Token
        Returns:
        TokenType.PARSED_CSS_URL