API / geotoolkit / css / LexicalUnit / LexicalUnit
css.LexicalUnit.LexicalUnit
Defines css Lexical unit
Constructors
Methods
Methods
▸ getClassName(): string
string
▸ getDimensionUnitText(): string
Returns string representing dimension unit
Throws
Error if dimensions are not supported
string
▸ getLexicalUnitType(type?): number
Gets an integer representing the type of CssLexeme
| Name | Type | Description |
|---|---|---|
Optional type | string | type |
number
▸ getNextLexicalUnit(): LexicalUnit
Gets the next lexical unit, if present, otherwise null
▸ getNumberValue(): number
Get number value
number
▸ getPreviousLexicalUnit(): LexicalUnit
Gets the previous lexical unit, if present, otherwise null
▸ getStringValue(): string
Gets the string representation of value If the type is CSS_URI, the return value doesn't contain uri(....) or quotes. If the type is CSS_ATTR, the return value doesn't contain attr(....).
string
▸ parseParameters(value, p?): LexicalUnit
Parses value passed into constructor
| Name | Type | Description |
|---|---|---|
value | string | Value of the parameter |
Optional p | LexicalUnit | Previous lexical unit |
▸ Static getClassName(): string
string