Class HTMLScanner.LocationItem

    • Field Detail

      • 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 Detail

      • LocationItem

        LocationItem()
    • Method Detail

      • 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 java.lang.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string representation of this object.