Class CompilationUnit.ZeroOffset

  • All Implemented Interfaces:
    Offset
    Enclosing class:
    CompilationUnit

    private static class CompilationUnit.ZeroOffset
    extends java.lang.Object
    implements Offset
    An offset that always returns 0.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ZeroOffset()  
    • 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
    • Constructor Detail

      • ZeroOffset

        private ZeroOffset()
    • 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.