Package org.htmlunit.cyberneko
Class HTMLScanner.LocationItem
java.lang.Object
org.htmlunit.cyberneko.HTMLScanner.LocationItem
- All Implemented Interfaces:
HTMLEventInfo
,Augmentations
- Enclosing class:
HTMLScanner
Location infoset item.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.htmlunit.cyberneko.HTMLEventInfo
HTMLEventInfo.SynthesizedItem
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
Beginning character offset.private int
Beginning column number.private int
Beginning line number.private int
Ending character offset.private int
Ending column number.private int
Ending line number. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
beginLineNumber_
private int beginLineNumber_Beginning line number. -
beginColumnNumber_
private int beginColumnNumber_Beginning column number. -
beginCharacterOffset_
private int beginCharacterOffset_Beginning character offset. -
endLineNumber_
private int endLineNumber_Ending line number. -
endColumnNumber_
private int endColumnNumber_Ending column number. -
endCharacterOffset_
private int endCharacterOffset_Ending character offset.
-
-
Constructor Details
-
LocationItem
LocationItem()
-
-
Method Details
-
setValues
public void setValues(int beginLine, int beginColumn, int beginOffset, int endLine, int endColumn, int endOffset) -
clone
We need a cloning way to keep reference. See the main interface.- Specified by:
clone
in interfaceAugmentations
- Overrides:
clone
in classObject
- Returns:
- a full copy of this augmentations holder
-
getBeginLineNumber
public int getBeginLineNumber()- Specified by:
getBeginLineNumber
in interfaceHTMLEventInfo
- Returns:
- the line number of the beginning of this event.
-
getBeginColumnNumber
public int getBeginColumnNumber()- Specified by:
getBeginColumnNumber
in interfaceHTMLEventInfo
- Returns:
- the column number of the beginning of this event.
-
getBeginCharacterOffset
public int getBeginCharacterOffset()- Specified by:
getBeginCharacterOffset
in interfaceHTMLEventInfo
- Returns:
- the character offset of the beginning of this event.
-
getEndLineNumber
public int getEndLineNumber()- Specified by:
getEndLineNumber
in interfaceHTMLEventInfo
- Returns:
- the line number of the end of this event.
-
getEndColumnNumber
public int getEndColumnNumber()- Specified by:
getEndColumnNumber
in interfaceHTMLEventInfo
- Returns:
- the column number of the end of this event.
-
getEndCharacterOffset
public int getEndCharacterOffset()- Specified by:
getEndCharacterOffset
in interfaceHTMLEventInfo
- Returns:
- the character offset of the end of this event.
-
isSynthesized
public boolean isSynthesized()- Specified by:
isSynthesized
in interfaceHTMLEventInfo
- Returns:
- true if this corresponding event was synthesized.
-
toString
-