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

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

Best Java code snippets using org.apache.batik.css.parser.Parser.parseImportRule (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

if (current == LexicalUnits.IMPORT_SYMBOL) {
  nextIgnoreSpaces();
  parseImportRule();
  nextIgnoreSpaces();
} else {
origin: org.apache.xmlgraphics/batik-css

if (current == LexicalUnits.IMPORT_SYMBOL) {
  nextIgnoreSpaces();
  parseImportRule();
  nextIgnoreSpaces();
} else {
origin: apache/batik

if (current == LexicalUnits.IMPORT_SYMBOL) {
  nextIgnoreSpaces();
  parseImportRule();
  nextIgnoreSpaces();
} else {
org.apache.batik.css.parserParserparseImportRule

Javadoc

Parses an import rule. Assumes the current token is '@import'.

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,
  • parseMediaList,
  • parseMediaRule,
  • parsePageRule,
  • parsePriorityInternal

Popular in Java

  • Creating JSON documents from java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • addToBackStack (FragmentTransaction)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Reference (javax.naming)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • 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