Package org.htmlunit.cssparser.parser
Enum LexicalUnit.LexicalUnitType
- java.lang.Object
-
- java.lang.Enum<LexicalUnit.LexicalUnitType>
-
- org.htmlunit.cssparser.parser.LexicalUnit.LexicalUnitType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<LexicalUnit.LexicalUnitType>
- Enclosing interface:
- LexicalUnit
public static enum LexicalUnit.LexicalUnitType extends java.lang.Enum<LexicalUnit.LexicalUnitType>
Enum for the various unit types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTR
ATTR.CENTIMETER
CENTIMETER.CH
CH.COUNTER_FUNCTION
COUNTER_FUNCTION.COUNTERS_FUNCTION
COUNTERS_FUNCTION.DEGREE
DEGREE.DIMENSION
DIMENSION.EM
EM.EX
EX.FUNCTION
FUNCTION.FUNCTION_CALC
FUNCTION_CALC.GRADIAN
GRADIAN.HERTZ
HERTZ.HSLCOLOR
HSLCOLOR.IDENT
IDENT.INCH
INCH.INHERIT
INHERIT.INTEGER
INTEGER.KILOHERTZ
KILOHERTZ.MILLIMETER
MILLIMETER.MILLISECOND
MILLISECOND.OPERATOR_COMMA
OPERATOR_COMMA.OPERATOR_EXP
OPERATOR_EXP.OPERATOR_GE
OPERATOR_GE.OPERATOR_GT
OPERATOR_GT.OPERATOR_LE
OPERATOR_LE.OPERATOR_LT
OPERATOR_LT.OPERATOR_MINUS
OPERATOR_MINUS.OPERATOR_MOD
OPERATOR_MOD.OPERATOR_MULTIPLY
OPERATOR_MULTIPLY.OPERATOR_PLUS
OPERATOR_PLUS.OPERATOR_SLASH
OPERATOR_SLASH.OPERATOR_TILDE
OPERATOR_TILDE.PERCENTAGE
PERCENTAGE.PICA
PICA.PIXEL
PIXEL.POINT
POINT.QUATER
QUATER.RADIAN
RADIAN.REAL
REAL.RECT_FUNCTION
RECT_FUNCTION.REM
REM.RGBCOLOR
RGBCOLOR.SECOND
SECOND.STRING_VALUE
STRING_VALUE.TURN
TURN.UNICODERANGE
UNICODERANGE.URI
URI.VH
VH.VMAX
VMAX.VMIN
VMIN.VW
VW.
-
Constructor Summary
Constructors Modifier Constructor Description private
LexicalUnitType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LexicalUnit.LexicalUnitType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LexicalUnit.LexicalUnitType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OPERATOR_COMMA
public static final LexicalUnit.LexicalUnitType OPERATOR_COMMA
OPERATOR_COMMA.
-
OPERATOR_PLUS
public static final LexicalUnit.LexicalUnitType OPERATOR_PLUS
OPERATOR_PLUS.
-
OPERATOR_MINUS
public static final LexicalUnit.LexicalUnitType OPERATOR_MINUS
OPERATOR_MINUS.
-
OPERATOR_MULTIPLY
public static final LexicalUnit.LexicalUnitType OPERATOR_MULTIPLY
OPERATOR_MULTIPLY.
-
OPERATOR_SLASH
public static final LexicalUnit.LexicalUnitType OPERATOR_SLASH
OPERATOR_SLASH.
-
OPERATOR_MOD
public static final LexicalUnit.LexicalUnitType OPERATOR_MOD
OPERATOR_MOD.
-
OPERATOR_EXP
public static final LexicalUnit.LexicalUnitType OPERATOR_EXP
OPERATOR_EXP.
-
OPERATOR_LT
public static final LexicalUnit.LexicalUnitType OPERATOR_LT
OPERATOR_LT.
-
OPERATOR_GT
public static final LexicalUnit.LexicalUnitType OPERATOR_GT
OPERATOR_GT.
-
OPERATOR_LE
public static final LexicalUnit.LexicalUnitType OPERATOR_LE
OPERATOR_LE.
-
OPERATOR_GE
public static final LexicalUnit.LexicalUnitType OPERATOR_GE
OPERATOR_GE.
-
OPERATOR_TILDE
public static final LexicalUnit.LexicalUnitType OPERATOR_TILDE
OPERATOR_TILDE.
-
INHERIT
public static final LexicalUnit.LexicalUnitType INHERIT
INHERIT.
-
INTEGER
public static final LexicalUnit.LexicalUnitType INTEGER
INTEGER.
-
REAL
public static final LexicalUnit.LexicalUnitType REAL
REAL.
-
EM
public static final LexicalUnit.LexicalUnitType EM
EM.
-
REM
public static final LexicalUnit.LexicalUnitType REM
REM.
-
EX
public static final LexicalUnit.LexicalUnitType EX
EX.
-
CH
public static final LexicalUnit.LexicalUnitType CH
CH.
-
VW
public static final LexicalUnit.LexicalUnitType VW
VW.
-
VH
public static final LexicalUnit.LexicalUnitType VH
VH.
-
VMIN
public static final LexicalUnit.LexicalUnitType VMIN
VMIN.
-
VMAX
public static final LexicalUnit.LexicalUnitType VMAX
VMAX.
-
PIXEL
public static final LexicalUnit.LexicalUnitType PIXEL
PIXEL.
-
INCH
public static final LexicalUnit.LexicalUnitType INCH
INCH.
-
CENTIMETER
public static final LexicalUnit.LexicalUnitType CENTIMETER
CENTIMETER.
-
MILLIMETER
public static final LexicalUnit.LexicalUnitType MILLIMETER
MILLIMETER.
-
POINT
public static final LexicalUnit.LexicalUnitType POINT
POINT.
-
PICA
public static final LexicalUnit.LexicalUnitType PICA
PICA.
-
QUATER
public static final LexicalUnit.LexicalUnitType QUATER
QUATER.
-
PERCENTAGE
public static final LexicalUnit.LexicalUnitType PERCENTAGE
PERCENTAGE.
-
URI
public static final LexicalUnit.LexicalUnitType URI
URI.
-
COUNTER_FUNCTION
public static final LexicalUnit.LexicalUnitType COUNTER_FUNCTION
COUNTER_FUNCTION.
-
COUNTERS_FUNCTION
public static final LexicalUnit.LexicalUnitType COUNTERS_FUNCTION
COUNTERS_FUNCTION.
-
RGBCOLOR
public static final LexicalUnit.LexicalUnitType RGBCOLOR
RGBCOLOR.
-
HSLCOLOR
public static final LexicalUnit.LexicalUnitType HSLCOLOR
HSLCOLOR.
-
DEGREE
public static final LexicalUnit.LexicalUnitType DEGREE
DEGREE.
-
GRADIAN
public static final LexicalUnit.LexicalUnitType GRADIAN
GRADIAN.
-
RADIAN
public static final LexicalUnit.LexicalUnitType RADIAN
RADIAN.
-
TURN
public static final LexicalUnit.LexicalUnitType TURN
TURN.
-
MILLISECOND
public static final LexicalUnit.LexicalUnitType MILLISECOND
MILLISECOND.
-
SECOND
public static final LexicalUnit.LexicalUnitType SECOND
SECOND.
-
HERTZ
public static final LexicalUnit.LexicalUnitType HERTZ
HERTZ.
-
KILOHERTZ
public static final LexicalUnit.LexicalUnitType KILOHERTZ
KILOHERTZ.
-
IDENT
public static final LexicalUnit.LexicalUnitType IDENT
IDENT.
-
STRING_VALUE
public static final LexicalUnit.LexicalUnitType STRING_VALUE
STRING_VALUE.
-
ATTR
public static final LexicalUnit.LexicalUnitType ATTR
ATTR.
-
RECT_FUNCTION
public static final LexicalUnit.LexicalUnitType RECT_FUNCTION
RECT_FUNCTION.
-
UNICODERANGE
public static final LexicalUnit.LexicalUnitType UNICODERANGE
UNICODERANGE.
-
FUNCTION
public static final LexicalUnit.LexicalUnitType FUNCTION
FUNCTION.
-
FUNCTION_CALC
public static final LexicalUnit.LexicalUnitType FUNCTION_CALC
FUNCTION_CALC.
-
DIMENSION
public static final LexicalUnit.LexicalUnitType DIMENSION
DIMENSION.
-
-
Method Detail
-
values
public static LexicalUnit.LexicalUnitType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LexicalUnit.LexicalUnitType c : LexicalUnit.LexicalUnitType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LexicalUnit.LexicalUnitType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-