|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Object
|
+--coins.ast.ASTree
|
+--coins.ast.ASTList
|
+--coins.ast.expr.ArrayInitializer
An array of initial values.
For example, the initializing expression in the following code:
int a[] = { 1, 2, 3, 4 };
is represented as a linked-list of ConstantExpr
objects representing 1, 2, 3, and 4.
A structure also takes an array of initial values:
struct price list[] = { { "book", 500 }, { "coffee", 200 } };
is represented as a linked-list of two ArrayInitializer
objects. Each of them contains a StringLiteral and a
ConstantExpr.
| コンストラクタの概要 | |
ArrayInitializer(Expr expr,
byte[] _type)
|
|
| メソッドの概要 | |
void |
accept(Visitor v)
Is a method for the visitor pattern. |
static ArrayInitializer |
append(ArrayInitializer init,
Expr expr,
byte[] type)
|
byte[] |
getType()
Returns the type of the resulting value of evaluating the expression. |
| クラス coins.ast.ASTList から継承したメソッド |
append, concat, getLeft, getRight, getTag, head, rightToString, setHead, setLeft, setRight, setTail, subst, tail |
| クラス coins.ast.ASTree から継承したメソッド |
putSeparator, toString, toString1 |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| コンストラクタの詳細 |
public ArrayInitializer(Expr expr,
byte[] _type)
| メソッドの詳細 |
public void accept(Visitor v)
ASTree の記述: atXXX() on the given visitor, where
XXX is the class name of the node object.
ASTList 内の acceptpublic byte[] getType()
Expr の記述:
Expr 内の getType
public static ArrayInitializer append(ArrayInitializer init,
Expr expr,
byte[] type)
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||