coins.ffront
クラス LabeledDoStmt

java.lang.Object
  |
  +--coins.ffront.FStmt
        |
        +--coins.ffront.LabeledDoStmt
すべての実装インタフェース:
Node

public class LabeledDoStmt
extends FStmt

DO statement of the form DO 10 i = 1, 30 ... 10 ...


フィールドの概要
 
クラス coins.ffront.FStmt から継承したフィールド
defLabel, fDeclMgr, fESMgr, fHir, fHirUtil, fLine, fSymTable, fTypeUtil, generatedStmts, hir, stmt
 
コンストラクタの概要
LabeledDoStmt(Token pLabel, Node pDoSpec, int line, FirToHir pfHir)
           
 
メソッドの概要
 java.lang.String getDoLabelString()
           
 Exp makeCondExp()
          Make Exp "i <= 30" from "DO 10 i = 1, 30"
 Stmt makeInitStmt()
          Make Stmt "i = 1" from "DO 10 i = 1, 30"
 Stmt makeStepStmt()
          Make Stmt "i = i + 5" from "DO 10 i = 1, 30, 5"
 void print(int level, java.lang.String spaces)
           
 void process()
          Mostly processed in a FirToHir.
 java.lang.String toString()
           
 
クラス coins.ffront.FStmt から継承したメソッド
addGeneratedStmt, addGeneratedStmtFirst, addLabel, addResultTo, dp, getLabelString, getResult, hasNotLabel, makeArgAddr, makeExp, mergeSymTable, preprocess, setLineAndFileInfo, setSymTable
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

LabeledDoStmt

public LabeledDoStmt(Token pLabel,
                     Node pDoSpec,
                     int line,
                     FirToHir pfHir)
メソッドの詳細

print

public void print(int level,
                  java.lang.String spaces)
定義:
インタフェース Node 内の print
オーバーライド:
クラス FStmt 内の print

toString

public java.lang.String toString()
定義:
インタフェース Node 内の toString
オーバーライド:
クラス FStmt 内の toString

process

public void process()
Mostly processed in a FirToHir.

オーバーライド:
クラス FStmt 内の process

getDoLabelString

public java.lang.String getDoLabelString()

makeInitStmt

public Stmt makeInitStmt()
Make Stmt "i = 1" from "DO 10 i = 1, 30"

戻り値:
loop init part.

makeCondExp

public Exp makeCondExp()
Make Exp "i <= 30" from "DO 10 i = 1, 30"

戻り値:
condition Exp.

makeStepStmt

public Stmt makeStepStmt()
Make Stmt "i = i + 5" from "DO 10 i = 1, 30, 5"

戻り値:
loop-step part.