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

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

Best Java code snippets using org.apache.batik.css.parser.Parser.parseMediaRule (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.MEDIA_SYMBOL:
  nextIgnoreSpaces();
  parseMediaRule();
  break;
case LexicalUnits.FONT_FACE_SYMBOL:
origin: org.apache.xmlgraphics/batik-css

case LexicalUnits.MEDIA_SYMBOL:
  nextIgnoreSpaces();
  parseMediaRule();
  break;
case LexicalUnits.FONT_FACE_SYMBOL:
origin: apache/batik

case LexicalUnits.MEDIA_SYMBOL:
  nextIgnoreSpaces();
  parseMediaRule();
  break;
case LexicalUnits.FONT_FACE_SYMBOL:
org.apache.batik.css.parserParserparseMediaRule

Javadoc

Parses a media 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,
  • parsePageRule,
  • parsePriorityInternal

Popular in Java

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • getSharedPreferences (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Best IntelliJ plugins
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