- All Implemented Interfaces:
Serializable
,Comparable<LexicalUnit.LexicalType>
,java.lang.constant.Constable
- Enclosing interface:
LexicalUnit
The ordinal
position is not guaranteed to be kept among
releases.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAttribute:attr(...)
.Acalc()
expression.color() function, for example:color(display-p3, 0.328 0.962 0.551 / 0.6)
color-mix() function, for example:color-mix(in display-p3, #0200fa 10%, white)
Compat identifier: invalid value accepted for IE compatibility as an ident-like value.Value with invalid priority accepted for IE compatibility, but it is interpreted as being of!
AND
condition.NOT
condition.OR
condition.FundamentalPREDICATE
inside a condition.functioncounter
.functioncounters
.cubic-bezier()
easing function.A dimensional quantity (number + unit).An element reference.A property set to no value.Useful for external extensions.A function.HSL(A) colors, for example:hsl(0 0% 0% / 0)
orhsla(0, 0%, 0%, 0)
HWB colors, for example:hwb(0 0% 0% / 0)
orhwb(120 0% 49.8%)
Identifier, both predefined and custom.Keywordinherit
.Keywordinitial
.Integers.lab() colors, for example:lab(53.2% 42.4 57.76 / 0.6)
lch() colors, for example:lch(58.9% 44.4 97.21 / 0.6)
orlch(58.9% 44.4 97.21deg / 0.6)
[oklab() colors, for example:oklab(53.2% 42.4 57.76 / 0.6)
oklch() colors, for example:oklch(58.9% 44.4 97.21 / 0.6)
oroklch(58.9% 44.4 97.21deg / 0.6)
,^>=><=<-%*+;/~Percentage.Real numbers.functionrect
.Keywordrevert
.RGB colors in functional (rgb(0, 0, 0)
) and hex (#000
) notations.]steps()
easing function.A string.Sub-expressions(a)
(a + b)
A unicode range.Unicode range wildcard.Useful as initial value and for external extensions.Keywordunset
.URI:url(...)
.Custom property value:var(...)
. -
Method Summary
Modifier and TypeMethodDescriptionstatic LexicalUnit.LexicalType
Returns the enum constant of this class with the specified name.static LexicalUnit.LexicalType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OPERATOR_COMMA
, -
OPERATOR_SEMICOLON
; -
OPERATOR_PLUS
+ -
OPERATOR_MINUS
- -
OPERATOR_MULTIPLY
* -
OPERATOR_SLASH
/ -
OPERATOR_MOD
% -
OPERATOR_EXP
^ -
OPERATOR_LT
< -
OPERATOR_GT
> -
OPERATOR_LE
<= -
OPERATOR_GE
>= -
OPERATOR_TILDE
~ -
INHERIT
Keywordinherit
. -
INITIAL
Keywordinitial
. -
UNSET
Keywordunset
. -
REVERT
Keywordrevert
. -
INTEGER
Integers.Note: integers larger than 2147483647 (or smaller than -2147483648) are parsed as
REAL
.- See Also:
-
REAL
Real numbers.- See Also:
-
PERCENTAGE
Percentage.- See Also:
-
DIMENSION
A dimensional quantity (number + unit).- See Also:
-
RGBCOLOR
RGB colors in functional (rgb(0, 0, 0)
) and hex (#000
) notations.- See Also:
-
HSLCOLOR
HSL(A) colors, for example:hsl(0 0% 0% / 0)
orhsla(0, 0%, 0%, 0)
- See Also:
-
HWBCOLOR
HWB colors, for example:hwb(0 0% 0% / 0)
orhwb(120 0% 49.8%)
- See Also:
-
LABCOLOR
lab() colors, for example:lab(53.2% 42.4 57.76 / 0.6)
- See Also:
-
LCHCOLOR
lch() colors, for example:lch(58.9% 44.4 97.21 / 0.6)
orlch(58.9% 44.4 97.21deg / 0.6)
- See Also:
-
OKLABCOLOR
oklab() colors, for example:oklab(53.2% 42.4 57.76 / 0.6)
- See Also:
-
OKLCHCOLOR
oklch() colors, for example:oklch(58.9% 44.4 97.21 / 0.6)
oroklch(58.9% 44.4 97.21deg / 0.6)
- See Also:
-
COLOR_FUNCTION
color() function, for example:color(display-p3, 0.328 0.962 0.551 / 0.6)
- See Also:
-
COLOR_MIX
color-mix() function, for example:color-mix(in display-p3, #0200fa 10%, white)
- See Also:
-
IDENT
Identifier, both predefined and custom.- See Also:
-
STRING
A string.- See Also:
-
URI
URI:url(...)
. UsegetStringValue()
to retrieve the URL, orgetParameters()
if the argument is avar()
. -
UNICODE_RANGE
A unicode range.- See Also:
-
UNICODE_WILDCARD
Unicode range wildcard.For example:
U+4??
.The
LexicalUnit.getStringValue()
method returns the wildcard without the preceding "U+". -
ELEMENT_REFERENCE
An element reference.For example:
element(#someId)
.If the element Id is a string, use
getStringValue()
, otherwise usegetParameters()
if it contains avar()
orattr()
.- See Also:
-
VAR
Custom property value:var(...)
.See
LexicalUnit.getParameters()
for the custom property name and eventually the fallback. -
ATTR
Attribute:attr(...)
.- See Also:
-
CALC
Acalc()
expression.- See Also:
-
COUNTER_FUNCTION
functioncounter
.- See Also:
-
COUNTERS_FUNCTION
functioncounters
.- See Also:
-
CUBIC_BEZIER_FUNCTION
cubic-bezier()
easing function.- See Also:
-
STEPS_FUNCTION
steps()
easing function.- See Also:
-
RECT_FUNCTION
functionrect
.- See Also:
-
FUNCTION
A function.- See Also:
-
SUB_EXPRESSION
Sub-expressions(a)
(a + b)
- See Also:
-
LEFT_BRACKET
[ -
RIGHT_BRACKET
] -
COMPAT_IDENT
Compat identifier: invalid value accepted for IE compatibility as an ident-like value.- See Also:
-
COMPAT_PRIO
Value with invalid priority accepted for IE compatibility, but it is interpreted as being of!important
priority by the compatible browsers, which makes it different fromCOMPAT_IDENT
.- See Also:
-
CONDITION_AND
AND
condition.Can be cast to a
BooleanCondition
of typeAND
. -
CONDITION_OR
OR
condition.Can be cast to a
BooleanCondition
of typeOR
. -
CONDITION_NOT
NOT
condition.Can be cast to a
BooleanCondition
of typeNOT
. -
CONDITION_PREDICATE
FundamentalPREDICATE
inside a condition.Can be cast to a
BooleanCondition
of typePREDICATE
. -
EMPTY
A property set to no value.The latest CSS syntax is accepting properties being set to no value (empty value), mainly for custom properties.
-
UNKNOWN
Useful as initial value and for external extensions. -
EXT1
Useful for external extensions. -
EXT2
-
EXT3
-
EXT4
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-