org.jostraca.unit
Interface UnitOrigin

All Known Implementing Classes:
BasicUnitOrigin

public interface UnitOrigin

Description:
Describes the origin of a Unit. The default implementation assumes a file with line numbers. Other implementations are possible, in which case some of the standard methods may not be meaningful. REVIEW: do we need a general concept of resource references?

See Also:
Unit

Field Summary
static int MINIMUM_COL
           
static int MINIMUM_LINE
           
 
Method Summary
 int getEndCol()
          End column.
 int getEndLine()
          End line.
 java.lang.String getReference()
          Return file path, URI or other reference string.
 int getStartCol()
          Start column.
 int getStartLine()
          Start line.
 

Field Detail

MINIMUM_LINE

public static final int MINIMUM_LINE
See Also:
Constant Field Values

MINIMUM_COL

public static final int MINIMUM_COL
See Also:
Constant Field Values
Method Detail

getReference

public java.lang.String getReference()
Return file path, URI or other reference string. Contract: never null.


getStartLine

public int getStartLine()
Start line.


getStartCol

public int getStartCol()
Start column.


getEndLine

public int getEndLine()
End line.


getEndCol

public int getEndCol()
End column.



Copyright © 2000-2002 Richard Rodger