Tabnine Logo
Parser.parseStyleDeclaration
Code IndexAdd Tabnine to your IDE (free)

How to use
parseStyleDeclaration
method
in
org.apache.batik.css.parser.Parser

Best Java code snippets using org.apache.batik.css.parser.Parser.parseStyleDeclaration (Showing top 13 results out of 315)

origin: apache/batik

/**
 * Parses a style declaration using the current scanner.
 */
protected void parseStyleDeclarationInternal()
  throws CSSException, IOException {
  nextIgnoreSpaces();
  try {
    parseStyleDeclaration(false);
  } catch (CSSParseException e) {
    reportError(e);
  } finally {
    scanner.close();
    scanner = null;
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Parses a style declaration using the current scanner.
 */
protected void parseStyleDeclarationInternal()
  throws CSSException, IOException {
  nextIgnoreSpaces();
  try {
    parseStyleDeclaration(false);
  } catch (CSSParseException e) {
    reportError(e);
  } finally {
    scanner.close();
    scanner = null;
  }
}
origin: org.apache.xmlgraphics/batik-css

/**
 * Parses a style declaration using the current scanner.
 */
protected void parseStyleDeclarationInternal()
  throws CSSException, IOException {
  nextIgnoreSpaces();
  try {
    parseStyleDeclaration(false);
  } catch (CSSParseException e) {
    reportError(e);
  } finally {
    scanner.close();
    scanner = null;
  }
}
origin: org.owasp/antisamy

  parser.parseStyleDeclaration(taintedCss);
} catch (IOException ioe) {
  throw new ScanException(ioe);
origin: org.apache.xmlgraphics/batik-css

/**
 * Parses a font-face rule.
 */
protected void parseFontFaceRule() {
  try {
    documentHandler.startFontFace();
    if (current != LexicalUnits.LEFT_CURLY_BRACE) {
      reportError("left.curly.brace");
    } else {
      nextIgnoreSpaces();
      try {
        parseStyleDeclaration(true);
      } catch (CSSParseException e) {
        reportError(e);
      }
    }
  } finally {
    documentHandler.endFontFace();
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Parses a font-face rule.
 */
protected void parseFontFaceRule() {
  try {
    documentHandler.startFontFace();
    if (current != LexicalUnits.LEFT_CURLY_BRACE) {
      reportError("left.curly.brace");
    } else {
      nextIgnoreSpaces();
      try {
        parseStyleDeclaration(true);
      } catch (CSSParseException e) {
        reportError(e);
      }
    }
  } finally {
    documentHandler.endFontFace();
  }
}
origin: apache/batik

/**
 * Parses a font-face rule.
 */
protected void parseFontFaceRule() {
  try {
    documentHandler.startFontFace();
    if (current != LexicalUnits.LEFT_CURLY_BRACE) {
      reportError("left.curly.brace");
    } else {
      nextIgnoreSpaces();
      try {
        parseStyleDeclaration(true);
      } catch (CSSParseException e) {
        reportError(e);
      }
    }
  } finally {
    documentHandler.endFontFace();
  }
}
origin: org.apache.xmlgraphics/batik-css

/**
 * Parses a ruleset.
 */
protected void parseRuleSet() {
  SelectorList sl = null;
  try {
    sl = parseSelectorList();
  } catch (CSSParseException e) {
    reportError(e);
    return;
  }
  try {
    documentHandler.startSelector(sl);
    if (current != LexicalUnits.LEFT_CURLY_BRACE) {
      reportError("left.curly.brace");
      if (current == LexicalUnits.RIGHT_CURLY_BRACE) {
        nextIgnoreSpaces();
      }
    } else {
      nextIgnoreSpaces();
      try {
        parseStyleDeclaration(true);
      } catch (CSSParseException e) {
        reportError(e);
      }
    }
  } finally {
    documentHandler.endSelector(sl);
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Parses a ruleset.
 */
protected void parseRuleSet() {
  SelectorList sl = null;
  try {
    sl = parseSelectorList();
  } catch (CSSParseException e) {
    reportError(e);
    return;
  }
  try {
    documentHandler.startSelector(sl);
    if (current != LexicalUnits.LEFT_CURLY_BRACE) {
      reportError("left.curly.brace");
      if (current == LexicalUnits.RIGHT_CURLY_BRACE) {
        nextIgnoreSpaces();
      }
    } else {
      nextIgnoreSpaces();
      try {
        parseStyleDeclaration(true);
      } catch (CSSParseException e) {
        reportError(e);
      }
    }
  } finally {
    documentHandler.endSelector(sl);
  }
}
origin: apache/batik

/**
 * Parses a ruleset.
 */
protected void parseRuleSet() {
  SelectorList sl = null;
  try {
    sl = parseSelectorList();
  } catch (CSSParseException e) {
    reportError(e);
    return;
  }
  try {
    documentHandler.startSelector(sl);
    if (current != LexicalUnits.LEFT_CURLY_BRACE) {
      reportError("left.curly.brace");
      if (current == LexicalUnits.RIGHT_CURLY_BRACE) {
        nextIgnoreSpaces();
      }
    } else {
      nextIgnoreSpaces();
      try {
        parseStyleDeclaration(true);
      } catch (CSSParseException e) {
        reportError(e);
      }
    }
  } finally {
    documentHandler.endSelector(sl);
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

  parseStyleDeclaration(true);
} catch (CSSParseException e) {
  reportError(e);
origin: org.apache.xmlgraphics/batik-css

  parseStyleDeclaration(true);
} catch (CSSParseException e) {
  reportError(e);
origin: apache/batik

  parseStyleDeclaration(true);
} catch (CSSParseException e) {
  reportError(e);
org.apache.batik.css.parserParserparseStyleDeclaration

Javadoc

Implements ExtendedParser#parseStyleDeclaration(String).

Popular methods of Parser

  • parseStyleSheet
    SAC: Implements org.w3c.css.sac.Parser#parseStyleSheet(InputSource).
  • createCSSParseException
    Creates a parse exception.
  • createScanner
    Creates a scanner, given an InputSource.
  • dimension
    Converts the current lexical unit to a dimension.
  • formatMessage
    Implements org.apache.batik.i18n.Localizable#formatMessage(String,Object[]).
  • hexcolor
    Converts a hash unit to a RGB color.
  • isPseudoElement
    Tells whether or not the given string represents a pseudo-element.
  • next
    Advances to the next token, ignoring comments.
  • nextIgnoreSpaces
    Advances to the next token and skip the spaces, ignoring comments.
  • number
    Converts the current lexical unit to a float.
  • parseAtRule
    Parses an unknown rule.
  • parseExpression
    Parses a CSS2 expression.
  • parseAtRule,
  • parseExpression,
  • parseFontFaceRule,
  • parseFunction,
  • parseImportRule,
  • parseMediaList,
  • parseMediaRule,
  • parsePageRule,
  • parsePriorityInternal

Popular in Java

  • Updating database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • setScale (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Notification (javax.management)
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now