Package Torello.CSS

Class 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.


    • Field Detail

      • sPos

        🡇     🗕  🗗  🗖
        public final int sPos
        The last known location within the input Code-Point int[]-Array where a valid CSSToken instance was generated before the Parse-Error Occured.
      • ePos

        🡅  🡇     🗕  🗗  🗖
        public final int ePos
        The exact location of the input Code-Point int[]-Array that was being analyzed when it was ultimately decided that a Parse-Error had unequivocally occured.
      • parsingClass

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.Class<? extends CSSToken> parsingClass
        The CSSToken class whose 'consume' method was being executed which uncovered this TokenizeError. Specifically, if the Class Str Method 'consume' was running when the error was found then this public constant field would be assigned Str.class.
      • subStr

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.String subStr
        The CSS where the error occured. subStr = new String(css, sPos, ePos-sPos);
      • 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's String-text content will be saved to this public field.