java.lang.Object
org.jhotdraw8.css.parser.CssTokenType
Defines CSS 3 token types.
References:
- CSS Syntax Module Level 3, Tokenization
- w3.org
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe 'inherit' keyword is used to indicate that the property's specified and computed values are the inherited value.static final StringThe 'initial' keyword is used to indicate that the property's specified value is its initial value.static final StringThis identifier is used to denote that a value is absent or that a list is empty.static final StringThe 'unset' keyword is used to indicate that the property's specified value should be taken from the previous origin level.static final StringThe 'revert' keyword is used to indicate 'inherit' if the property is inherited, and 'initial' if not.static final intDefines the asterisk "*" delim-token.static final intDefines an at-keyword-token.static final intDefines a bad-comment-token.static final intDefines a bad-string-token.static final intDefines a bad-uri-token.static final intDefines a CDC-token.static final intDefines a CDO-token.static final intDefines the colon ":" delim-token.static final intDefines a column-token.static final intDefines the comma "," delim-token.static final intDefines a comment-token.static final intDefines a dash-match-token.static final intDefines a dimension-token.static final intDefines an EOF-token.static final intDefines the equals "=" delim-token.static final intDefines a function-token.static final intDefines the greater than ">" delim-token.static final intDefines a hash-token.static final intDefines an ident-token.static final intDefines an include-match-token.static final intDefines the left bracket ")" delim-token.static final intDefines the left curly bracket "{" delim-token.static final intDefines the left square bracket "[" delim-token.static final intDefines a number-token.static final intDefines the percent "%" delim-token.static final intDefines a percentage-token.static final intDefines the plus "+" delim-token.static final intDefines the point "." delim-token.static final intDefines a prefix-match-token.static final intDefines the right round bracket ")" delim-token.static final intDefines the right curly bracket "}" delim-token.static final intDefines the right square bracket "]" delim-token.static final intDefines a ws*-token.static final intDefines the semicolon ";" delim-token.static final intDefines the slash "/" delim-token.static final intDefines a string-token.static final intDefines a substring-match-token.static final intDefines a suffix-match-token.static final intstatic final intDefines a unicode-range-token.static final intDefines a url-token.static final intDefines the vertical line "|" delim-token. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
IDENT_NONE
This identifier is used to denote that a value is absent or that a list is empty.- See Also:
-
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
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
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
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_KEYWORDDefines an at-keyword-token.at-keyword-token = '@', ident-token ;- See Also:
-
TT_BAD_COMMENT
public static final int TT_BAD_COMMENTDefines a bad-comment-token.- See Also:
-
TT_BAD_STRING
public static final int TT_BAD_STRINGDefines a bad-string-token.- See Also:
-
TT_BAD_URI
public static final int TT_BAD_URIDefines a bad-uri-token.- See Also:
-
TT_CDC
public static final int TT_CDCDefines a CDC-token.CDC-token ="-->";
- See Also:
-
TT_CDO
public static final int TT_CDODefines a CDO-token.CDO-token ="<!--";
- See Also:
-
TT_COLUMN
public static final int TT_COLUMNDefines a column-token.column-token = "||";
- See Also:
-
TT_COMMENT
public static final int TT_COMMENTDefines a comment-token.comment-token = "/','*',comment-body,'*','/' ; comment-body = (* anything but '*' followed by '/' *);- See Also:
-
TT_DASH_MATCH
public static final int TT_DASH_MATCHDefines a dash-match-token.dash-match-token = "|=";
- See Also:
-
TT_DIMENSION
public static final int TT_DIMENSIONDefines a dimension-token.dimension-token = number-token , ident-token ;- See Also:
-
TT_EOF
public static final int TT_EOFDefines an EOF-token.- See Also:
-
TT_FUNCTION
public static final int TT_FUNCTIONDefines a function-token.function-token = ident-token , '(' ;- See Also:
-
TT_HASH
public static final int TT_HASHDefines 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_IDENTDefines 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_MATCHDefines an include-match-token.include-match-token = "~=";
- See Also:
-
TT_NUMBER
public static final int TT_NUMBERDefines 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_PERCENTAGEDefines a percentage-token.percentage-token = number-token , '%' ;- See Also:
-
TT_PREFIX_MATCH
public static final int TT_PREFIX_MATCHDefines a prefix-match-token.prefix-match-token = "^=";
- See Also:
-
TT_S
public static final int TT_SDefines 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_STRINGDefines 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_MATCHDefines a substring-match-token.substring-match-token = "*=";
- See Also:
-
TT_SUFFIX_MATCH
public static final int TT_SUFFIX_MATCHDefines a suffix-match-token.suffix-match-token = "$=";
- See Also:
-
TT_UNICODE_RANGE
public static final int TT_UNICODE_RANGEDefines 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_URLDefines 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_COMMADefines the comma "," delim-token.- See Also:
-
TT_SEMICOLON
public static final int TT_SEMICOLONDefines the semicolon ";" delim-token.- See Also:
-
TT_POINT
public static final int TT_POINTDefines the point "." delim-token.- See Also:
-
TT_COLON
public static final int TT_COLONDefines the colon ":" delim-token.- See Also:
-
TT_ASTERISK
public static final int TT_ASTERISKDefines the asterisk "*" delim-token.- See Also:
-
TT_LEFT_BRACKET
public static final int TT_LEFT_BRACKETDefines the left bracket ")" delim-token.- See Also:
-
TT_RIGHT_BRACKET
public static final int TT_RIGHT_BRACKETDefines the right round bracket ")" delim-token.- See Also:
-
TT_RIGHT_CURLY_BRACKET
public static final int TT_RIGHT_CURLY_BRACKETDefines the right curly bracket "}" delim-token.- See Also:
-
TT_LEFT_CURLY_BRACKET
public static final int TT_LEFT_CURLY_BRACKETDefines the left curly bracket "{" delim-token.- See Also:
-
TT_RIGHT_SQUARE_BRACKET
public static final int TT_RIGHT_SQUARE_BRACKETDefines the right square bracket "]" delim-token.- See Also:
-
TT_LEFT_SQUARE_BRACKET
public static final int TT_LEFT_SQUARE_BRACKETDefines the left square bracket "[" delim-token.- See Also:
-
TT_EQUALS
public static final int TT_EQUALSDefines the equals "=" delim-token.- See Also:
-
TT_SLASH
public static final int TT_SLASHDefines the slash "/" delim-token.- See Also:
-
TT_PLUS
public static final int TT_PLUSDefines the plus "+" delim-token.- See Also:
-
TT_PERCENT_DELIM
public static final int TT_PERCENT_DELIMDefines the percent "%" delim-token.- See Also:
-
TT_VERTICAL_LINE
public static final int TT_VERTICAL_LINEDefines the vertical line "|" delim-token.- See Also:
-
TT_GREATER_THAN
public static final int TT_GREATER_THANDefines the greater than ">" delim-token.- See Also:
-
TT_TILDE
public static final int TT_TILDE- See Also:
-
-
Constructor Details
-
CssTokenType
public CssTokenType()
-