- All Implemented Interfaces:
Offset
- Enclosing class:
CompilationUnit
private static class CompilationUnit.ZeroOffset
extends Object
implements Offset
An offset that always returns 0.
-
Constructor Summary
Constructors
-
Method Summary
int
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 Details
-
ZeroOffset
private ZeroOffset()
-
Method Details
-
getOffset
public int getOffset()
Description copied from interface: Offset
Returns the offset into the source.
- Specified by:
getOffset in interface Offset
- Returns:
- The offset.