|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--coins.ast.ASTree | +--coins.ast.Aggregate
Declaration of a struct/union type. If the declaration appears in a type name, the type name is decomposed into the declaration and a reference to the declared structure/union.
For example, a variable declaration:
struct Point { int x, y; struct Color { int color; } c; } p;
is decomposed into three declarations.
struct Color { int color; }; => ast.Struct object struct Point { => ast.Struct object int x, y; struct Color c; }; struct Point p; => ast.Declarator object
The struct
declaration never appears as part of
a type name.
フィールドの概要 | |
protected DeclaratorList |
members
|
protected java.lang.String |
name
|
protected long |
size
|
static int |
WORD_SIZE
This variable used for computing word alignment. |
コンストラクタの概要 | |
Aggregate(java.lang.String aname,
DeclaratorList mem,
java.lang.String fname,
int line)
|
メソッドの概要 | |
java.lang.String |
fileName()
Returns the file name including the statement. |
ASTree |
getLeft()
Returns members. |
Declarator |
getMember(java.lang.String name)
Returns the member of the given name. |
DeclaratorList |
getMembers()
Returns the members of the struct/union data type. |
ASTree |
getRight()
Returns null. |
long |
getSize()
Returns the size (in byte) of the struct/union data type. |
int |
lineNumber()
Returns the line number of the statement. |
java.lang.String |
name()
Returns the tag name. |
void |
setLeft(ASTree _left)
|
void |
setRight(ASTree _right)
|
protected void |
setSize(long s)
|
クラス coins.ast.ASTree から継承したメソッド |
accept, getTag, putSeparator, rightToString, toString, toString1 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
protected java.lang.String name
protected DeclaratorList members
protected long size
public static int WORD_SIZE
コンストラクタの詳細 |
public Aggregate(java.lang.String aname, DeclaratorList mem, java.lang.String fname, int line)
メソッドの詳細 |
protected void setSize(long s)
public java.lang.String fileName()
Stmnt
の記述:
Stmnt
内の fileName
public int lineNumber()
Stmnt
の記述:
Stmnt
内の lineNumber
public java.lang.String name()
public ASTree getLeft()
ASTree
内の getLeft
public ASTree getRight()
ASTree
内の getRight
public void setLeft(ASTree _left)
ASTree
内の setLeft
public void setRight(ASTree _right)
ASTree
内の setRight
public long getSize()
public DeclaratorList getMembers()
public Declarator getMember(java.lang.String name)
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |