Class Scanner

java.lang.Object
org.joox.selector.Scanner

public class Scanner extends Object
A selectors scanner as defined by Selectors Level 3 specification.

This implementation uses the Ragel State Machine Compiler.

Use the following command to generate the Java code for the scanner:

 ragel -J Scanner.java.rl -o ../java/se/fishtank/css/selectors/scanner/Scanner.java
 
Author:
Christer Sandberg
  • Constructor Details

    • Scanner

      public Scanner(CharSequence input)
      Create a new scanner instance with the specified input.
  • Method Details

    • scan

      public List<List<org.joox.selector.Selector>> scan() throws org.joox.selector.ScannerException
      Scan the input.
      Returns:
      A list of selector groups that contain a list of Selectors scanned.
      Throws:
      org.joox.selector.ScannerException - If the input is invalid.