Class TextInterval


  • class TextInterval
    extends java.lang.Object

    The TextInterval class is a utility class, the instances of which are used to record backpointers to associated nodes over sub-intervals of a delimited text range.

    This work was originally authored by Glenn Adams (gadams@apache.org).

    • Field Detail

      • textStart

        private int textStart
      • start

        private int start
      • end

        private int end
      • level

        private int level
    • Constructor Detail

      • TextInterval

        TextInterval​(FONode fn,
                     int start,
                     int end)
      • TextInterval

        TextInterval​(FONode fn,
                     int textStart,
                     int start,
                     int end,
                     int level)
    • Method Detail

      • getTextStart

        int getTextStart()
      • getStart

        int getStart()
      • getEnd

        int getEnd()
      • getLevel

        int getLevel()
      • setLevel

        void setLevel​(int level)
      • length

        public int length()
      • getText

        public java.lang.String getText()
      • assignTextLevels

        public void assignTextLevels()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object