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

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

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

origin: org.apache.xmlgraphics/batik-css

/**
 * Parses a rule.
 */
protected void parseRule() {
  switch (scanner.getType()) {
  case LexicalUnits.IMPORT_SYMBOL:
    nextIgnoreSpaces();
    parseImportRule();
    break;
  case LexicalUnits.AT_KEYWORD:
    nextIgnoreSpaces();
    parseAtRule();
    break;
  case LexicalUnits.FONT_FACE_SYMBOL:
    nextIgnoreSpaces();
    parseFontFaceRule();
    break;
  case LexicalUnits.MEDIA_SYMBOL:
    nextIgnoreSpaces();
    parseMediaRule();
    break;
  case LexicalUnits.PAGE_SYMBOL:
    nextIgnoreSpaces();
    parsePageRule();
    break;
  default:
    parseRuleSet();
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Parses a rule.
 */
protected void parseRule() {
  switch (scanner.getType()) {
  case LexicalUnits.IMPORT_SYMBOL:
    nextIgnoreSpaces();
    parseImportRule();
    break;
  case LexicalUnits.AT_KEYWORD:
    nextIgnoreSpaces();
    parseAtRule();
    break;
  case LexicalUnits.FONT_FACE_SYMBOL:
    nextIgnoreSpaces();
    parseFontFaceRule();
    break;
  case LexicalUnits.MEDIA_SYMBOL:
    nextIgnoreSpaces();
    parseMediaRule();
    break;
  case LexicalUnits.PAGE_SYMBOL:
    nextIgnoreSpaces();
    parsePageRule();
    break;
  default:
    parseRuleSet();
  }
}
origin: apache/batik

/**
 * Parses a rule.
 */
protected void parseRule() {
  switch (scanner.getType()) {
  case LexicalUnits.IMPORT_SYMBOL:
    nextIgnoreSpaces();
    parseImportRule();
    break;
  case LexicalUnits.AT_KEYWORD:
    nextIgnoreSpaces();
    parseAtRule();
    break;
  case LexicalUnits.FONT_FACE_SYMBOL:
    nextIgnoreSpaces();
    parseFontFaceRule();
    break;
  case LexicalUnits.MEDIA_SYMBOL:
    nextIgnoreSpaces();
    parseMediaRule();
    break;
  case LexicalUnits.PAGE_SYMBOL:
    nextIgnoreSpaces();
    parsePageRule();
    break;
  default:
    parseRuleSet();
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

case LexicalUnits.PAGE_SYMBOL:
  nextIgnoreSpaces();
  parsePageRule();
  break;
case LexicalUnits.MEDIA_SYMBOL:
origin: org.apache.xmlgraphics/batik-css

case LexicalUnits.PAGE_SYMBOL:
  nextIgnoreSpaces();
  parsePageRule();
  break;
case LexicalUnits.MEDIA_SYMBOL:
origin: apache/batik

case LexicalUnits.PAGE_SYMBOL:
  nextIgnoreSpaces();
  parsePageRule();
  break;
case LexicalUnits.MEDIA_SYMBOL:
org.apache.batik.css.parserParserparsePageRule

Javadoc

Parses a page rule.

Popular methods of Parser

  • parseStyleDeclaration
    Parses the given reader.
  • 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.
  • number,
  • parseAtRule,
  • parseExpression,
  • parseFontFaceRule,
  • parseFunction,
  • parseImportRule,
  • parseMediaList,
  • parseMediaRule,
  • parsePriorityInternal

Popular in Java

  • Making http post requests using okhttp
  • compareTo (BigDecimal)
  • putExtra (Intent)
  • getResourceAsStream (ClassLoader)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • CodeWhisperer alternatives
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