coins.ir
Interface SourceInf

All Known Implementing Classes:
SourceInfImpl

public interface SourceInf

SourceInf interface Source program information such as file name, line number, column number are gathered in this interface. The source program information may be attached to IR nodes or symbols to show the source program position corresponding to the IR node, or to show the source program position where the symbol is defined. The file name, line number, column number are got by corresponding methods.


Method Summary
 int getDefinedColumn()
          getDefinedColumn
 java.lang.String getDefinedFile()
          getDefinedFile
 int getDefinedLine()
          getDefinedLine
 void setDefinedFile(java.lang.String pDefinedFile)
          setDefinedFile Set the name of the source program file.
 void setDefinedLine(int pDefinedLine)
          setDefinedLine Set the line number.
 java.lang.String toString()
           
 

Method Detail

getDefinedFile

public java.lang.String getDefinedFile()
getDefinedFile

Returns:
the name of the source program file. If it is not given, then return null.

setDefinedFile

public void setDefinedFile(java.lang.String pDefinedFile)
setDefinedFile Set the name of the source program file.

Parameters:
pDefinedFile - name of the file.

getDefinedLine

public int getDefinedLine()
getDefinedLine

Returns:
the line number. If it is not given, then return 0.

setDefinedLine

public void setDefinedLine(int pDefinedLine)
setDefinedLine Set the line number.

Parameters:
pDefinedLine - the line number to be set.

getDefinedColumn

public int getDefinedColumn()
getDefinedColumn

Returns:
the column number. If it is not given, then return 0.

toString

public java.lang.String toString()