Package org.codelibs.nekohtml
Class HTMLScanner.LocationItem
- java.lang.Object
-
- org.codelibs.nekohtml.HTMLScanner.LocationItem
-
- All Implemented Interfaces:
java.lang.Cloneable,HTMLEventInfo
- Enclosing class:
- HTMLScanner
protected static class HTMLScanner.LocationItem extends java.lang.Object implements HTMLEventInfo, java.lang.Cloneable
Location infoset item.- Author:
- Andy Clark
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.codelibs.nekohtml.HTMLEventInfo
HTMLEventInfo.SynthesizedItem
-
-
Field Summary
Fields Modifier and Type Field Description protected intfBeginCharacterOffsetBeginning character offset.protected intfBeginColumnNumberBeginning column number.protected intfBeginLineNumberBeginning line number.protected intfEndCharacterOffsetEnding character offset.protected intfEndColumnNumberEnding column number.protected intfEndLineNumberEnding line number.
-
Constructor Summary
Constructors Constructor Description LocationItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBeginCharacterOffset()Returns the character offset of the beginning of this event.intgetBeginColumnNumber()Returns the column number of the beginning of this event.intgetBeginLineNumber()Returns the line number of the beginning of this event.intgetEndCharacterOffset()Returns the character offset of the end of this event.intgetEndColumnNumber()Returns the column number of the end of this event.intgetEndLineNumber()Returns the line number of the end of this event.booleanisSynthesized()Returns 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.java.lang.StringtoString()Returns a string representation of this object.
-
-
-
Field Detail
-
fBeginLineNumber
protected int fBeginLineNumber
Beginning line number.
-
fBeginColumnNumber
protected int fBeginColumnNumber
Beginning column number.
-
fBeginCharacterOffset
protected int fBeginCharacterOffset
Beginning character offset.
-
fEndLineNumber
protected int fEndLineNumber
Ending line number.
-
fEndColumnNumber
protected int fEndColumnNumber
Ending column number.
-
fEndCharacterOffset
protected int fEndCharacterOffset
Ending character offset.
-
-
Method Detail
-
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
public java.lang.String toString()
Returns a string representation of this object.- Overrides:
toStringin classjava.lang.Object
-
-