Class HTMLScanner.LocationItem

java.lang.Object
org.htmlunit.cyberneko.HTMLScanner.LocationItem
All Implemented Interfaces:
HTMLEventInfo, Augmentations
Enclosing class:
HTMLScanner

static final class HTMLScanner.LocationItem extends Object implements HTMLEventInfo
Location infoset item.
  • 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

      public Augmentations clone()
      We need a cloning way to keep reference. See the main interface.
      Specified by:
      clone in interface Augmentations
      Overrides:
      clone in class Object
      Returns:
      a full copy of this augmentations holder
    • getBeginLineNumber

      public int getBeginLineNumber()
      Specified by:
      getBeginLineNumber in interface HTMLEventInfo
      Returns:
      the line number of the beginning of this event.
    • getBeginColumnNumber

      public int getBeginColumnNumber()
      Specified by:
      getBeginColumnNumber in interface HTMLEventInfo
      Returns:
      the column number of the beginning of this event.
    • getBeginCharacterOffset

      public int getBeginCharacterOffset()
      Specified by:
      getBeginCharacterOffset in interface HTMLEventInfo
      Returns:
      the character offset of the beginning of this event.
    • getEndLineNumber

      public int getEndLineNumber()
      Specified by:
      getEndLineNumber in interface HTMLEventInfo
      Returns:
      the line number of the end of this event.
    • getEndColumnNumber

      public int getEndColumnNumber()
      Specified by:
      getEndColumnNumber in interface HTMLEventInfo
      Returns:
      the column number of the end of this event.
    • getEndCharacterOffset

      public int getEndCharacterOffset()
      Specified by:
      getEndCharacterOffset in interface HTMLEventInfo
      Returns:
      the character offset of the end of this event.
    • isSynthesized

      public boolean isSynthesized()
      Specified by:
      isSynthesized in interface HTMLEventInfo
      Returns:
      true if this corresponding event was synthesized.
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      a string representation of this object.