Class CssParser

java.lang.Object
org.apache.batik.css.parser.Parser
org.owasp.validator.css.CssParser
All Implemented Interfaces:
org.apache.batik.css.parser.ExtendedParser, org.apache.batik.i18n.Localizable, org.w3c.css.sac.Parser

public class CssParser extends org.apache.batik.css.parser.Parser
  • Field Summary

    Fields inherited from class org.apache.batik.css.parser.Parser

    BUNDLE_CLASSNAME, conditionFactory, current, documentHandler, documentURI, errorHandler, localizableSupport, pseudoElement, scanner, selectorFactory
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected CssMediaFeature
     
    protected org.apache.batik.css.parser.CSSSACMediaList
     
    protected CssMediaQuery
     
    protected void
     
    protected void
    parseStyleDeclaration(boolean inSheet)
    This implementation is a workaround to solve leading dash errors on property names.

    Methods inherited from class org.apache.batik.css.parser.Parser

    createCSSParseException, createCSSParseException, createScanner, dimension, formatMessage, getLocale, getParserVersion, hexcolor, isPseudoElement, next, nextIgnoreSpaces, number, parseAtRule, parseExpression, parseFontFaceRule, parseFunction, parseImportRule, parseMedia, parsePageRule, parsePriority, parsePriority, parsePriorityInternal, parsePropertyValue, parsePropertyValue, parsePropertyValueInternal, parseRule, parseRule, parseRule, parseRuleInternal, parseRuleSet, parseSelector, parseSelectorList, parseSelectors, parseSelectors, parseSelectorsInternal, parseSimpleSelector, parseStyleDeclaration, parseStyleDeclaration, parseStyleDeclarationInternal, parseStyleSheet, parseStyleSheet, parseTerm, reportError, reportError, reportError, setConditionFactory, setDocumentHandler, setErrorHandler, setLocale, setSelectorFactory, skipSpaces, skipSpacesAndCDOCDC

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CssParser

      public CssParser()
  • Method Details

    • parseStyleDeclaration

      protected void parseStyleDeclaration(boolean inSheet) throws org.w3c.css.sac.CSSException
      This implementation is a workaround to solve leading dash errors on property names.
      Overrides:
      parseStyleDeclaration in class org.apache.batik.css.parser.Parser
      Parameters:
      inSheet - Specifies if the style to parse is inside a sheet or the sheet itself.
      Throws:
      org.w3c.css.sac.CSSException - Thrown if there are parsing errors in CSS
      See Also:
      • https://issues.apache.org/jira/browse/BATIK-1112
    • parseMediaList

      protected org.apache.batik.css.parser.CSSSACMediaList parseMediaList()
      Overrides:
      parseMediaList in class org.apache.batik.css.parser.Parser
    • parseMediaQuery

      protected CssMediaQuery parseMediaQuery()
    • parseMediaFeature

      protected CssMediaFeature parseMediaFeature()
    • parseMediaRule

      protected void parseMediaRule()
      Overrides:
      parseMediaRule in class org.apache.batik.css.parser.Parser