coins.ast
クラス Aggregate

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

public abstract class Aggregate
extends ASTree
implements Stmnt

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:

is decomposed into three declarations.

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
 

フィールドの詳細

name

protected java.lang.String name

members

protected DeclaratorList members

size

protected long size

WORD_SIZE

public static int WORD_SIZE
This variable used for computing word alignment.

コンストラクタの詳細

Aggregate

public Aggregate(java.lang.String aname,
                 DeclaratorList mem,
                 java.lang.String fname,
                 int line)
メソッドの詳細

setSize

protected void setSize(long s)

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

name

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


getLeft

public ASTree getLeft()
Returns members.

定義:
クラス 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

getSize

public long getSize()
Returns the size (in byte) of the struct/union data type.


getMembers

public DeclaratorList getMembers()
Returns the members of the struct/union data type.


getMember

public Declarator getMember(java.lang.String name)
Returns the member of the given name.