Codota Logo
Parser.parseSelectorList
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: org.apache.xmlgraphics/batik-css

/**
 * Parses selectors using the current scanner.
 */
protected SelectorList parseSelectorsInternal()
  throws CSSException, IOException {
  nextIgnoreSpaces();
  SelectorList ret = parseSelectorList();
  scanner.close();
  scanner = null;
  return ret;
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Parses selectors using the current scanner.
 */
protected SelectorList parseSelectorsInternal()
  throws CSSException, IOException {
  nextIgnoreSpaces();
  SelectorList ret = parseSelectorList();
  scanner.close();
  scanner = null;
  return ret;
}
origin: apache/batik

/**
 * Parses selectors using the current scanner.
 */
protected SelectorList parseSelectorsInternal()
  throws CSSException, IOException {
  nextIgnoreSpaces();
  SelectorList ret = parseSelectorList();
  scanner.close();
  scanner = null;
  return ret;
}
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: 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);
  }
}
org.apache.batik.css.parserParserparseSelectorList

Javadoc

Parses a selector list

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

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JFileChooser (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now