Package Torello.CSS
Class CSSTokenizer
- java.lang.Object
-
- Torello.CSS.CSSTokenizer
-
public class CSSTokenizer extends java.lang.Object
Hi-Lited Source-Code:- View Here: Torello/CSS/CSSTokenizer.java
- Open New Browser-Tab: Torello/CSS/CSSTokenizer.java
File Size: 5,719 Bytes Line Count: 162 '\n' Characters Found
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)
-
-
-
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 invokingString.codePoints().toArray()
.- Returns:
- An instance of
Ret2
as:Ret2.a: Vector<CSSToken>
(CSS-Tokens)Ret2.b: Vector<TokenizeError>
(Errors)
-
-