coins.ast.stmnt
クラス WhileStmnt

java.lang.Object
  |
  +--coins.ast.ASTree
        |
        +--coins.ast.stmnt.TreeStmnt
              |
              +--coins.ast.stmnt.WhileStmnt
すべての実装インタフェース:
java.io.Serializable, Stmnt

public class WhileStmnt
extends TreeStmnt

While statement.

関連項目:
直列化された形式

フィールドの概要
 
クラス coins.ast.stmnt.TreeStmnt から継承したフィールド
left, right
 
コンストラクタの概要
WhileStmnt(java.lang.String fname, int line)
           
 
メソッドの概要
 void accept(Visitor v)
          Is a method for the visitor pattern.
 Stmnt getBody()
          Returns the loop body.
 Expr getExpr()
          Returns the loop condition.
protected  java.lang.String getTag()
          Returns the type of this node.
 WhileStmnt set(Expr cond, CompoundStmnt body)
           
 
クラス coins.ast.stmnt.TreeStmnt から継承したメソッド
fileName, getLeft, getRight, lineNumber, setLeft, setRight
 
クラス coins.ast.ASTree から継承したメソッド
putSeparator, rightToString, toString, toString1
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

WhileStmnt

public WhileStmnt(java.lang.String fname,
                  int line)
メソッドの詳細

set

public WhileStmnt set(Expr cond,
                      CompoundStmnt body)

accept

public void accept(Visitor v)
クラス ASTree の記述:
Is a method for the visitor pattern. It calls atXXX() on the given visitor, where XXX is the class name of the node object.

定義:
クラス ASTree 内の accept

getExpr

public Expr getExpr()
Returns the loop condition.


getBody

public Stmnt getBody()
Returns the loop body.


getTag

protected java.lang.String getTag()
クラス ASTree の記述:
Returns the type of this node. This method is used by toString().

オーバーライド:
クラス TreeStmnt 内の getTag