Package org.htmlunit.cssparser.parser
Interface LexicalUnit
-
- All Known Implementing Classes:
LexicalUnitImpl
public interface LexicalUnit
Lexical unit of css values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
LexicalUnit.LexicalUnitType
Enum for the various unit types.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getDimensionUnitText()
double
getDoubleValue()
java.lang.String
getFunctionName()
int
getIntegerValue()
LexicalUnit.LexicalUnitType
getLexicalUnitType()
Locator
getLocator()
LexicalUnit
getNextLexicalUnit()
LexicalUnit
getParameters()
LexicalUnit
getPreviousLexicalUnit()
java.lang.String
getStringValue()
LexicalUnit
getSubValues()
void
setLocator(Locator locator)
-
-
-
Method Detail
-
getLexicalUnitType
LexicalUnit.LexicalUnitType getLexicalUnitType()
- Returns:
- an integer indicating the type of
LexicalUnit
.
-
getNextLexicalUnit
LexicalUnit getNextLexicalUnit()
- Returns:
- the next value or
null
if any.
-
getPreviousLexicalUnit
LexicalUnit getPreviousLexicalUnit()
- Returns:
- the previous value or
null
if any.
-
getIntegerValue
int getIntegerValue()
- Returns:
- the integer value.
-
getDoubleValue
double getDoubleValue()
- Returns:
- the double value.
-
getDimensionUnitText
java.lang.String getDimensionUnitText()
- Returns:
- the string representation of the unit.
-
getFunctionName
java.lang.String getFunctionName()
- Returns:
- the name of the function.
-
getParameters
LexicalUnit getParameters()
- Returns:
- the function parameters including operators (like the comma).
-
getStringValue
java.lang.String getStringValue()
- Returns:
- the string value.
-
getSubValues
LexicalUnit getSubValues()
- Returns:
- a list of values inside the sub expression.
-
getLocator
Locator getLocator()
- Returns:
- the locator
-
setLocator
void setLocator(Locator locator)
- Parameters:
locator
- the new locator
-
-