coins.ast
クラス Enum

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

public class Enum
extends ASTree
implements Stmnt

Enum declaration.

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

入れ子クラスの概要
static class Enum.Item
           
 
コンストラクタの概要
Enum(java.lang.String name, java.lang.String fname, int line)
           
 
メソッドの概要
 void accept(Visitor v)
          Is a method for the visitor pattern.
 void add(java.lang.String name, ConstantExpr value)
           
 java.lang.String fileName()
          Returns the file name including the statement.
 Enum.Item getItems()
          Returns a list of enum constants.
 ASTree getLeft()
          Returns null.
 ASTree getRight()
          Returns null.
 int lineNumber()
          Returns the line number of the statement.
 java.lang.String name()
          Returns the tag name of the enum type.
 void setLeft(ASTree _left)
           
 void setRight(ASTree _right)
           
 java.lang.String toString()
           
 
クラス coins.ast.ASTree から継承したメソッド
getTag, putSeparator, rightToString, toString1
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

Enum

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

name

public java.lang.String name()
Returns the tag name of the enum type. If the tag name is not explicitly specified, an arbitrary chosen unique name is given by the parser.


getItems

public Enum.Item getItems()
Returns a list of enum constants.


add

public void add(java.lang.String name,
                ConstantExpr value)

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

getLeft

public ASTree getLeft()
Returns null.

定義:
クラス ASTree 内の getLeft

getRight

public ASTree getRight()
Returns null.

定義:
クラス ASTree 内の getRight

setLeft

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

setRight

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

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

toString

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