Package org.cyberneko.html
Class HTMLScanner.LocationItem
java.lang.Object
org.cyberneko.html.HTMLScanner.LocationItem
- All Implemented Interfaces:
Cloneable,HTMLEventInfo
- Enclosing class:
- HTMLScanner
Location infoset item.
- Author:
- Andy Clark
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cyberneko.html.HTMLEventInfo
HTMLEventInfo.SynthesizedItem -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intBeginning character offset.protected intBeginning column number.protected intBeginning line number.protected intEnding character offset.protected intEnding column number.protected intEnding line number. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the character offset of the beginning of this event.intReturns the column number of the beginning of this event.intReturns the line number of the beginning of this event.intReturns the character offset of the end of this event.intReturns the column number of the end of this event.intReturns the line number of the end of this event.booleanReturns true if this corresponding event was synthesized.voidsetValues(int beginLine, int beginColumn, int beginOffset, int endLine, int endColumn, int endOffset) Sets the values of this item.toString()Returns a string representation of this object.
-
Field Details
-
fBeginLineNumber
protected int fBeginLineNumberBeginning line number. -
fBeginColumnNumber
protected int fBeginColumnNumberBeginning column number. -
fBeginCharacterOffset
protected int fBeginCharacterOffsetBeginning character offset. -
fEndLineNumber
protected int fEndLineNumberEnding line number. -
fEndColumnNumber
protected int fEndColumnNumberEnding column number. -
fEndCharacterOffset
protected int fEndCharacterOffsetEnding character offset.
-
-
Constructor Details
-
LocationItem
public LocationItem()
-
-
Method Details
-
setValues
public void setValues(int beginLine, int beginColumn, int beginOffset, int endLine, int endColumn, int endOffset) Sets the values of this item. -
getBeginLineNumber
public int getBeginLineNumber()Returns the line number of the beginning of this event.- Specified by:
getBeginLineNumberin interfaceHTMLEventInfo
-
getBeginColumnNumber
public int getBeginColumnNumber()Returns the column number of the beginning of this event.- Specified by:
getBeginColumnNumberin interfaceHTMLEventInfo
-
getBeginCharacterOffset
public int getBeginCharacterOffset()Returns the character offset of the beginning of this event.- Specified by:
getBeginCharacterOffsetin interfaceHTMLEventInfo
-
getEndLineNumber
public int getEndLineNumber()Returns the line number of the end of this event.- Specified by:
getEndLineNumberin interfaceHTMLEventInfo
-
getEndColumnNumber
public int getEndColumnNumber()Returns the column number of the end of this event.- Specified by:
getEndColumnNumberin interfaceHTMLEventInfo
-
getEndCharacterOffset
public int getEndCharacterOffset()Returns the character offset of the end of this event.- Specified by:
getEndCharacterOffsetin interfaceHTMLEventInfo
-
isSynthesized
public boolean isSynthesized()Returns true if this corresponding event was synthesized.- Specified by:
isSynthesizedin interfaceHTMLEventInfo
-
toString
Returns a string representation of this object.
-