coins.ir
インタフェース SourceInf

既知の実装クラスの一覧:
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.


メソッドの概要
 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()
           
 

メソッドの詳細

getDefinedFile

public java.lang.String getDefinedFile()
getDefinedFile

戻り値:
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.

パラメータ:
pDefinedFile - name of the file.

getDefinedLine

public int getDefinedLine()
getDefinedLine

戻り値:
the line number. If it is not given, then return 0.

setDefinedLine

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

パラメータ:
pDefinedLine - the line number to be set.

getDefinedColumn

public int getDefinedColumn()
getDefinedColumn

戻り値:
the column number. If it is not given, then return 0.

toString

public java.lang.String toString()
オーバーライド:
クラス java.lang.Object 内の toString