Interface Offset

All Known Implementing Classes:
CompilationUnit.ZeroOffset, Scanner.DocumentOffset

public interface Offset
An offset into Java source. This is an interface so we can wrap javax.swing.text.Position instances when parsing code in a JTextComponent, so these offsets can get tracked.
Version:
1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the offset into the source.
  • Method Details

    • getOffset

      int getOffset()
      Returns the offset into the source.
      Returns:
      The offset.