coins.ast.stmnt
クラス CompoundStmnt

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

public class CompoundStmnt
extends ASTList
implements Stmnt

A linked-list of statements.

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

コンストラクタの概要
CompoundStmnt(Stmnt s)
           
CompoundStmnt(Stmnt s, CompoundStmnt rest)
           
 
メソッドの概要
 void accept(Visitor v)
          Is a method for the visitor pattern.
static CompoundStmnt append(CompoundStmnt block, Stmnt s)
           
static CompoundStmnt concat(CompoundStmnt block1, CompoundStmnt block2)
           
 java.lang.String fileName()
          Returns the file name including the statement.
 Stmnt get()
          Returns the first element of the list.
protected  java.lang.String getTag()
          Returns the type of this node.
 int lineNumber()
          Returns the line number of the statement.
 CompoundStmnt next()
          Returns the cdr part of the list.
protected  void putSeparator(java.lang.StringBuffer sbuf)
           
 Stmnt simplify()
           
 
クラス coins.ast.ASTList から継承したメソッド
append, concat, getLeft, getRight, head, rightToString, setHead, setLeft, setRight, setTail, subst, tail
 
クラス coins.ast.ASTree から継承したメソッド
toString, toString1
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

CompoundStmnt

public CompoundStmnt(Stmnt s)

CompoundStmnt

public CompoundStmnt(Stmnt s,
                     CompoundStmnt rest)
メソッドの詳細

getTag

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

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

get

public Stmnt get()
Returns the first element of the list.


next

public CompoundStmnt next()
Returns the cdr part of the list.


simplify

public Stmnt simplify()

fileName

public java.lang.String fileName()
インタフェース Stmnt の記述:
Returns the file name including the statement.

定義:
インタフェース Stmnt 内の fileName

lineNumber

public int lineNumber()
インタフェース Stmnt の記述:
Returns the line number of the statement.

定義:
インタフェース Stmnt 内の lineNumber

putSeparator

protected void putSeparator(java.lang.StringBuffer sbuf)
オーバーライド:
クラス ASTree 内の putSeparator

append

public static CompoundStmnt append(CompoundStmnt block,
                                   Stmnt s)

concat

public static CompoundStmnt concat(CompoundStmnt block1,
                                   CompoundStmnt block2)

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.

オーバーライド:
クラス ASTList 内の accept