Class CssTokenType

java.lang.Object
org.jhotdraw8.css.parser.CssTokenType

public class CssTokenType extends Object
Defines CSS 3 token types.

References:

CSS Syntax Module Level 3, Tokenization
w3.org
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The 'inherit' keyword is used to indicate that the property's specified and computed values are the inherited value.
    static final String
    The 'initial' keyword is used to indicate that the property's specified value is its initial value.
    static final String
    This identifier is used to denote that a value is absent or that a list is empty.
    static final String
    The 'unset' keyword is used to indicate that the property's specified value should be taken from the previous origin level.
    static final String
    The 'revert' keyword is used to indicate 'inherit' if the property is inherited, and 'initial' if not.
    static final int
    Defines the asterisk "*" delim-token.
    static final int
    Defines an at-keyword-token.
    static final int
    Defines a bad-comment-token.
    static final int
    Defines a bad-string-token.
    static final int
    Defines a bad-uri-token.
    static final int
    Defines a CDC-token.
    static final int
    Defines a CDO-token.
    static final int
    Defines the colon ":" delim-token.
    static final int
    Defines a column-token.
    static final int
    Defines the comma "," delim-token.
    static final int
    Defines a comment-token.
    static final int
    Defines a dash-match-token.
    static final int
    Defines a dimension-token.
    static final int
    Defines an EOF-token.
    static final int
    Defines the equals "=" delim-token.
    static final int
    Defines a function-token.
    static final int
    Defines the greater than ">" delim-token.
    static final int
    Defines a hash-token.
    static final int
    Defines an ident-token.
    static final int
    Defines an include-match-token.
    static final int
    Defines the left bracket ")" delim-token.
    static final int
    Defines the left curly bracket "{" delim-token.
    static final int
    Defines the left square bracket "[" delim-token.
    static final int
    Defines a number-token.
    static final int
    Defines the percent "%" delim-token.
    static final int
    Defines a percentage-token.
    static final int
    Defines the plus "+" delim-token.
    static final int
    Defines the point "." delim-token.
    static final int
    Defines a prefix-match-token.
    static final int
    Defines the right round bracket ")" delim-token.
    static final int
    Defines the right curly bracket "}" delim-token.
    static final int
    Defines the right square bracket "]" delim-token.
    static final int
    Defines a ws*-token.
    static final int
    Defines the semicolon ";" delim-token.
    static final int
    Defines the slash "/" delim-token.
    static final int
    Defines a string-token.
    static final int
    Defines a substring-match-token.
    static final int
    Defines a suffix-match-token.
    static final int
     
    static final int
    Defines a unicode-range-token.
    static final int
    Defines a url-token.
    static final int
    Defines the vertical line "|" delim-token.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • IDENT_NONE

      public static final String IDENT_NONE
      This identifier is used to denote that a value is absent or that a list is empty.
      See Also:
    • IDENT_INITIAL

      public static final String IDENT_INITIAL
      The 'initial' keyword is used to indicate that the property's specified value is its initial value. Resetting a Property: the 'initial' keyword.
      See Also:
    • IDENT_INHERIT

      public static final String IDENT_INHERIT
      The 'inherit' keyword is used to indicate that the property's specified and computed values are the inherited value. Resetting a Property: the 'initial' keyword.
      See Also:
    • IDENT_REVERT

      public static final String IDENT_REVERT
      The 'unset' keyword is used to indicate that the property's specified value should be taken from the previous origin level. Resetting a Property: the 'initial' keyword.
      See Also:
    • IDENT_UNSET

      public static final String IDENT_UNSET
      The 'revert' keyword is used to indicate 'inherit' if the property is inherited, and 'initial' if not. Resetting a Property: the 'initial' keyword.
      See Also:
    • TT_AT_KEYWORD

      public static final int TT_AT_KEYWORD
      Defines an at-keyword-token.
           at-keyword-token = '@', ident-token ;
       
      See Also:
    • TT_BAD_COMMENT

      public static final int TT_BAD_COMMENT
      Defines a bad-comment-token.
      See Also:
    • TT_BAD_STRING

      public static final int TT_BAD_STRING
      Defines a bad-string-token.
      See Also:
    • TT_BAD_URI

      public static final int TT_BAD_URI
      Defines a bad-uri-token.
      See Also:
    • TT_CDC

      public static final int TT_CDC
      Defines a CDC-token.
        CDC-token ="-->";
       
      See Also:
    • TT_CDO

      public static final int TT_CDO
      Defines a CDO-token.
        CDO-token ="<!--";
       
      See Also:
    • TT_COLUMN

      public static final int TT_COLUMN
      Defines a column-token.
        column-token = "||";
       
      See Also:
    • TT_COMMENT

      public static final int TT_COMMENT
      Defines a comment-token.
           comment-token = "/','*',comment-body,'*','/' ;
           comment-body = (* anything but '*' followed by '/' *);
       
      See Also:
    • TT_DASH_MATCH

      public static final int TT_DASH_MATCH
      Defines a dash-match-token.
        dash-match-token = "|=";
       
      See Also:
    • TT_DIMENSION

      public static final int TT_DIMENSION
      Defines a dimension-token.
           dimension-token = number-token , ident-token ;
       
      See Also:
    • TT_EOF

      public static final int TT_EOF
      Defines an EOF-token.
      See Also:
    • TT_FUNCTION

      public static final int TT_FUNCTION
      Defines a function-token.
           function-token = ident-token , '(' ;
       
      See Also:
    • TT_HASH

      public static final int TT_HASH
      Defines a hash-token.
           hash-token = '#' , ident-char , { ident-char } ;
      
           ident-char = ( letter | '_' | digit )
                      | non-ASCII
                      | escape ;
      
           letter = (* a letter from 'a' to 'z' and 'A' to 'Z' *) ;
      
           digit = "0" | "1"  | "2"  | "3"  | "4"  | "5"  | "6"  | "7"  | "8"  | "9" ;
      
           escape = '\' , char - (newline | hex-digit)
                  | '\' , 6 * hex-digit
                  | '\', hex-digit , 4 * {hex-digit}, whitespace ;
      
           non-ASCII = (* a unicode code-point between U+80 and U+10FFFF )
      
       
      See Also:
    • TT_IDENT

      public static final int TT_IDENT
      Defines an ident-token.
           ident-token = { '-' } , first-ident-char , { ident-char } ;
      
           first-ident-char = ('a'-'z'|'A'-'Z'|'_')
                            | non-ASCII
                            | escape ;
      
           ident-char = ( 'a'-'z' | 'A'-'Z' | '_' | '-' | '0'-'9' )
                      | non-ASCII
                      | escape ;
      
           escape = '\' , (* not newline or hex-digit *)
                  | '\' , 6 * hex-digit
                  | '\', hex-digit , 4 * {hex-digit}, whitespace ;
      
           hex-digit = digit
                     | 'a' | 'b' | 'c' | 'd' | 'e' | 'f'
                     | 'A' | 'B' | 'C' | 'D' | 'E' | 'F'
       
      See Also:
    • TT_INCLUDE_MATCH

      public static final int TT_INCLUDE_MATCH
      Defines an include-match-token.
        include-match-token = "~=";
       
      See Also:
    • TT_NUMBER

      public static final int TT_NUMBER
      Defines a number-token.
       number-token      ::= decimal-number | scientific-number ;
       integer           ::= [ "+" | "-" ] , digit, {digit} ;
       decimal-number    ::= integer
                           | [ "+" | "-" ] , {digit} , "." , digit, {digit} ;
       scientific-number ::= decimal-number , ( "E" | "e" ) , integer ;
       
      See Also:
    • TT_PERCENTAGE

      public static final int TT_PERCENTAGE
      Defines a percentage-token.
           percentage-token = number-token , '%' ;
       
      See Also:
    • TT_PREFIX_MATCH

      public static final int TT_PREFIX_MATCH
      Defines a prefix-match-token.
        prefix-match-token = "^=";
       
      See Also:
    • TT_S

      public static final int TT_S
      Defines a ws*-token.
           ws* = { whitespace-token } ;
      
           whitespace-token = { whitespace } ;
      
           whitespace = ' ' | '\' | newline ;
      
           newline = '\n' | "\r\n" | '\r' | '\f' ;
       
      See Also:
    • TT_STRING

      public static final int TT_STRING
      Defines a string-token.
           string-token = quote-string
                        | apostrophe-string ;
      
           quote-string = '"', {quote-string-body}, '"' ;
      
           apostrophe-string = "'", {apostrophe-string-body}, "'" ;
      
           quote-string-body = (* not " \ or newline | escape | '\' newline *);
      
           apostrophe-string-body = (* not ' \ or newline | escape | '\' newline *);
      
           escape = '\' , char - (newline | hex-digit)
                  | '\' , 6 * hex-digit
                  | '\', hex-digit , 4 * {hex-digit}, whitespace ;
      
           newline = '\n' | "\r\n" | '\r' | '\f' ;
       
      See Also:
    • TT_SUBSTRING_MATCH

      public static final int TT_SUBSTRING_MATCH
      Defines a substring-match-token.
        substring-match-token = "*=";
       
      See Also:
    • TT_SUFFIX_MATCH

      public static final int TT_SUFFIX_MATCH
      Defines a suffix-match-token.
        suffix-match-token = "$=";
       
      See Also:
    • TT_UNICODE_RANGE

      public static final int TT_UNICODE_RANGE
      Defines a unicode-range-token.
           unicode-range = ('U'|'u'),'+',( mask-range, from-to-range );
           mask-range = 1 * hex-digit , 5 * { '?' }
                      | 2 * hex-digit , 4 * { '?' }
                      | 3 * hex-digit , 3 * { '?' }
                      | 4 * hex-digit , 2 * { '?' }
                      | 5 * hex-digit , 1 * { '?' }
                      | 6 * hex-digit
           from-to-range = hex-digit, 5 * { hex-digit } , '-' , hex-digit, 5 * { hex-digit } ;
       
      See Also:
    • TT_URL

      public static final int TT_URL
      Defines a url-token.
           url-token = "url(" , ws* , url-unquoted | string-token , ws*, ')' ;
           url-unquoted = ur-unquoted-char , {url-unquoted-char} ;
           url-unquoted-char = not " ' ( ) \ whitespace or non-printable | escape ;
       
      See Also:
    • TT_COMMA

      public static final int TT_COMMA
      Defines the comma "," delim-token.
      See Also:
    • TT_SEMICOLON

      public static final int TT_SEMICOLON
      Defines the semicolon ";" delim-token.
      See Also:
    • TT_POINT

      public static final int TT_POINT
      Defines the point "." delim-token.
      See Also:
    • TT_COLON

      public static final int TT_COLON
      Defines the colon ":" delim-token.
      See Also:
    • TT_ASTERISK

      public static final int TT_ASTERISK
      Defines the asterisk "*" delim-token.
      See Also:
    • TT_LEFT_BRACKET

      public static final int TT_LEFT_BRACKET
      Defines the left bracket ")" delim-token.
      See Also:
    • TT_RIGHT_BRACKET

      public static final int TT_RIGHT_BRACKET
      Defines the right round bracket ")" delim-token.
      See Also:
    • TT_RIGHT_CURLY_BRACKET

      public static final int TT_RIGHT_CURLY_BRACKET
      Defines the right curly bracket "}" delim-token.
      See Also:
    • TT_LEFT_CURLY_BRACKET

      public static final int TT_LEFT_CURLY_BRACKET
      Defines the left curly bracket "{" delim-token.
      See Also:
    • TT_RIGHT_SQUARE_BRACKET

      public static final int TT_RIGHT_SQUARE_BRACKET
      Defines the right square bracket "]" delim-token.
      See Also:
    • TT_LEFT_SQUARE_BRACKET

      public static final int TT_LEFT_SQUARE_BRACKET
      Defines the left square bracket "[" delim-token.
      See Also:
    • TT_EQUALS

      public static final int TT_EQUALS
      Defines the equals "=" delim-token.
      See Also:
    • TT_SLASH

      public static final int TT_SLASH
      Defines the slash "/" delim-token.
      See Also:
    • TT_PLUS

      public static final int TT_PLUS
      Defines the plus "+" delim-token.
      See Also:
    • TT_PERCENT_DELIM

      public static final int TT_PERCENT_DELIM
      Defines the percent "%" delim-token.
      See Also:
    • TT_VERTICAL_LINE

      public static final int TT_VERTICAL_LINE
      Defines the vertical line "|" delim-token.
      See Also:
    • TT_GREATER_THAN

      public static final int TT_GREATER_THAN
      Defines the greater than ">" delim-token.
      See Also:
    • TT_TILDE

      public static final int TT_TILDE
      See Also:
  • Constructor Details

    • CssTokenType

      public CssTokenType()