Package Torello.CSS

Class CSSTokenizer


  • public class CSSTokenizer
    extends java.lang.Object



    Stateless Class:
    This class neither contains any program-state, nor can it be instantiated. The @StaticFunctional Annotation may also be called 'The Spaghetti Report'. Static-Functional classes are, essentially, C-Styled Files, without any constructors or non-static member fields. It is a concept very similar to the Java-Bean's @Stateless Annotation.

    • 1 Constructor(s), 1 declared private, zero-argument constructor
    • 1 Method(s), 1 declared static
    • 0 Field(s)


    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method
      static Ret2<Vector<CSSToken>,
           ​Vector<TokenizeError>>
      parse​(int[] css)
      • Methods inherited from class java.lang.Object

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

      • parse

          🗕  🗗  🗖
        public static Ret2<java.util.Vector<CSSToken>,​java.util.Vector<TokenizeError>> parse​
                    (int[] css)
        
        Converts CSS to a Token-Vector.
        Parameters:
        css - The CSS Code-Points. Code-Points can be obtained from any CSS-File as-a-String by invoking String.codePoints().toArray().
        Returns:
        An instance of Ret2 as:

        • Ret2.a: Vector<CSSToken> (CSS-Tokens)
        • Ret2.b: Vector<TokenizeError> (Errors)