Class Scanner


  • public class Scanner
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      Scanner​(java.lang.CharSequence input)
      Create a new scanner instance with the specified input.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.util.List<org.joox.selector.Selector>> scan()
      Scan the input.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Scanner

        public Scanner​(java.lang.CharSequence input)
        Create a new scanner instance with the specified input.
    • Method Detail

      • scan

        public java.util.List<java.util.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.