Package Torello.CSS
Class TokenizeError
- java.lang.Object
-
- Torello.CSS.TokenizeError
-
public class TokenizeError extends java.lang.Object
This class may be instantiated by both the Tokenizer and the individual Static-Build Methods offered by each of the individual Token-Classes. This class is used to relay that a Parse-Error has occred during part of the Tokenization Process.
Hi-Lited Source-Code:- View Here: Torello/CSS/TokenizeError.java
- Open New Browser-Tab: Torello/CSS/TokenizeError.java
File Size: 2,544 Bytes Line Count: 68 '\n' Characters Found
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method StringtoString()
-
-
-
Field Detail
-
sPos
-
ePos
public final int ePos
The exact location of the input Code-Pointint[]-Array that was being analyzed when it was ultimately decided that a Parse-Error had unequivocally occured.- Code:
- Exact Field Declaration Expression:
public final int ePos;
-
parsingClass
public final java.lang.Class<? extends CSSToken> parsingClass
TheCSSTokenclass whose'consume'method was being executed which uncovered thisTokenizeError. Specifically, if the ClassStrMethod'consume'was running when the error was found then thispublicconstant field would be assignedStr.class.- Code:
- Exact Field Declaration Expression:
public final Class<? extends CSSToken> parsingClass;
-
subStr
public final java.lang.String subStr
The CSS where the error occured.subStr = new String(css, sPos, ePos-sPos);- Code:
- Exact Field Declaration Expression:
public final String subStr;
-
message
public final java.lang.String message
The Tokenizer's various'cosnume'methods will attempt to provide a thoughtfully worded Error-Message depicting what has gone wrong. Those message'sString-text content will be saved to thispublicfield.- Code:
- Exact Field Declaration Expression:
public final String message;
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-