Class Scanner.DocumentOffset

  • All Implemented Interfaces:
    Offset
    Enclosing class:
    Scanner

    private static class Scanner.DocumentOffset
    extends java.lang.Object
    implements Offset
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.swing.text.Position pos  
    • Constructor Summary

      Constructors 
      Constructor Description
      DocumentOffset​(javax.swing.text.Position pos)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getOffset()
      Returns the offset into the source.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • pos

        private javax.swing.text.Position pos
    • Constructor Detail

      • DocumentOffset

        DocumentOffset​(javax.swing.text.Position pos)
    • Method Detail

      • getOffset

        public int getOffset()
        Description copied from interface: Offset
        Returns the offset into the source.
        Specified by:
        getOffset in interface Offset
        Returns:
        The offset.