com.togethersoft.sca.ast
Interface AstSourcePosition

All Known Subinterfaces:
ITuple

public interface AstSourcePosition

Represents a source code fragment.


Method Summary
 int getEndColumn()
          Returns the end column number of the source code for this object, relative to the source file in which this fragment is contained.
 int getEndLine()
          Returns the end line number of the source code for this object, relative to the source file in which this fragment is contained.
 java.lang.String getFileName()
          Returns the canonical name of the source file in which this object is contained.
 int getOffset()
          Returns the zero-based offset of this object in the source file containing this fragment.
 int getStartColumn()
          Returns the start column number of the source code for this object, relative to the source file in which this fragment is contained.
 int getStartLine()
          Returns the start line number of the source code for this object, relative to the source file in which this fragment is contained.
 

Method Detail

getEndColumn

public int getEndColumn()
Returns the end column number of the source code for this object, relative to the source file in which this fragment is contained.
Returns:
the end line of this fragment.

getEndLine

public int getEndLine()
Returns the end line number of the source code for this object, relative to the source file in which this fragment is contained.
Returns:
the end line of this fragment.

getFileName

public java.lang.String getFileName()
Returns the canonical name of the source file in which this object is contained.
Returns:
the name of the file containing this fragment.

getOffset

public int getOffset()
Returns the zero-based offset of this object in the source file containing this fragment.
Returns:
the file offset of this fragment.

getStartColumn

public int getStartColumn()
Returns the start column number of the source code for this object, relative to the source file in which this fragment is contained.
Returns:
the start column of this fragment.

getStartLine

public int getStartLine()
Returns the start line number of the source code for this object, relative to the source file in which this fragment is contained.
Returns:
the start line of this fragment.