coins.ast
クラス ASTList

java.lang.Object
  |
  +--coins.ast.ASTree
        |
        +--coins.ast.ASTList
すべての実装インタフェース:
java.io.Serializable
直系の既知のサブクラス:
ArrayInitializer, CompoundStmnt, DeclaratorList

public class ASTList
extends ASTree

A linked list. The right subtree must be an ASTList object or null.

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

コンストラクタの概要
ASTList(ASTree _head)
           
ASTList(ASTree _head, ASTList _tail)
           
 
メソッドの概要
 void accept(Visitor v)
          Is a method for the visitor pattern.
static ASTList append(ASTList a, ASTree b)
          Appends an object to a list.
static ASTList concat(ASTList a, ASTList b)
          Concatenates two lists.
 ASTree getLeft()
           
 ASTree getRight()
           
protected  java.lang.String getTag()
          Returns the type of this node.
 ASTree head()
          Returns the car part of the list.
protected  void rightToString(java.lang.StringBuffer sbuf, ASTree _right)
           
 void setHead(ASTree _head)
           
 void setLeft(ASTree _left)
           
 void setRight(ASTree _right)
           
 void setTail(ASTList _tail)
           
 boolean subst(ASTree newObj, ASTree oldObj)
           
 ASTList tail()
          Returns the cdr part of the list.
 
クラス coins.ast.ASTree から継承したメソッド
putSeparator, toString, toString1
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

ASTList

public ASTList(ASTree _head,
               ASTList _tail)

ASTList

public ASTList(ASTree _head)
メソッドの詳細

getLeft

public ASTree getLeft()
定義:
クラス ASTree 内の getLeft

getRight

public ASTree getRight()
定義:
クラス ASTree 内の getRight

setLeft

public void setLeft(ASTree _left)
定義:
クラス ASTree 内の setLeft

setRight

public void setRight(ASTree _right)
定義:
クラス ASTree 内の setRight

head

public ASTree head()
Returns the car part of the list.


setHead

public void setHead(ASTree _head)

tail

public ASTList tail()
Returns the cdr part of the list.


setTail

public void setTail(ASTList _tail)

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

getTag

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

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

rightToString

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

subst

public boolean subst(ASTree newObj,
                     ASTree oldObj)

append

public static ASTList append(ASTList a,
                             ASTree b)
Appends an object to a list.


concat

public static ASTList concat(ASTList a,
                             ASTList b)
Concatenates two lists.