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.
        Code:
        Exact Field Declaration Expression:
         public final int sPos;
        
      • 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.
        Code:
        Exact Field Declaration Expression:
         public final int ePos;
        
      • 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.
        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's String-text content will be saved to this public field.
        Code:
        Exact Field Declaration Expression:
         public final String message;