Package org.htmlunit.cssparser.parser
Class Locator
java.lang.Object
org.htmlunit.cssparser.parser.Locator
- All Implemented Interfaces:
Serializable
For associating a CSS event with a document location.
- Author:
- Ronald Brill
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Return the column number where the current document event ends.int
Return the line number where the current document event ends.getUri()
getUri.int
hashCode()
void
setColumnNumber
(int column) Set the columnNumber to a new value.void
setLineNumber
(int line) Set the lineNumber to a new value.void
Set the uri to a new value.toString()
-
Constructor Details
-
Locator
Creates new LocatorImpl.- Parameters:
uri
- the uriline
- the lineNumbercolumn
- the columnNumber
-
-
Method Details
-
getUri
getUri.
- Returns:
- the uri
-
setUri
Set the uri to a new value.- Parameters:
uri
- the new uri
-
getColumnNumber
public int getColumnNumber()Return the column number where the current document event ends. Note that this is the column number of the first character after the text associated with the document event. The first column in a line is position 1.- Returns:
- The column number, or -1 if none is available.
- See Also:
-
setColumnNumber
public void setColumnNumber(int column) Set the columnNumber to a new value.- Parameters:
column
- the new columnNumber
-
getLineNumber
public int getLineNumber()Return the line number where the current document event ends. Note that this is the line position of the first character after the text associated with the document event.- Returns:
- The line number, or -1 if none is available.
- See Also:
-
setLineNumber
public void setLineNumber(int line) Set the lineNumber to a new value.- Parameters:
line
- the new lineNumber
-
equals
-
hashCode
public int hashCode() -
toString
-