|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
StructType interface See structType of Sym interface.
フィールドの概要 |
インタフェース coins.sym.Sym から継承したフィールド |
KIND_NAME, VISIBILITY |
メソッドの概要 | |
void |
addElem(Elem pElem)
addElem Add element to this struct type. |
void |
finishStructType(boolean pSeparately)
finishStructType: Finish to define this struct type. |
IrList |
getElemList()
getElemList |
SymTable |
getSymTable()
Get the symbol table local to this structure. |
Sym |
getTag()
|
void |
setAlignment(int pAlignment)
setAlignment //##47 Set alignment value to be equal to the pAlignment. |
void |
setSymTable(SymTable pSymTalbe)
Set the symbol table local to this structure. |
void |
setTag(Sym pTag)
|
インタフェース coins.sym.Sym0 から継承したメソッド |
charConst, definedType, defineElem, defineLabel, defineParam, defineSubp, defineVar, enumType, floatConst, getDefinedFile, getDefinedIn, getFlag, getName, getNextSym, getRecordedIn, getSymKind, getSymType, getUniqueName, intConst, isGlobal, namedConst, pointerType, setFlag, stringConst, structType, subpType, unionType, vectorType, vectorTypeUnfixed |
メソッドの詳細 |
public SymTable getSymTable()
public void setSymTable(SymTable pSymTalbe)
public IrList getElemList()
Type
内の getElemList
public void addElem(Elem pElem)
pElem
- Element of this struct type.public void finishStructType(boolean pSeparately)
finishStructType: Finish to define this struct type. After successive call of addElem, finishStructType should be called. This will make the struct type name and compute displacement of each elements, and then compute the size of this struct. See structType of Sym, addElem. The alignment of a struct type is the same to that of its element having the largest alignment among the elements in the structure. Elements of the struct type is aligned according to the alignment of element type. This may cause to place gap between preceeding element. The size of the struct type is multiple of the alignment value of the struct type, thus, there may be a gap at the tail of the struct type if the last element has small alignment value. finishStructType also allocates bit fields (set bit field offset). As for the allocation of bit field, see the explanation of setBitFieldOffset method of the Elem interface.
pSeparately
- false if StructType is constructed with complete
element list, true if StructType is constructed as incomplete
and sequence of addElem call is performed and then finishStructType
is called.public Sym getTag()
public void setTag(Sym pTag)
public void setAlignment(int pAlignment)
pAlignment
- alignment value to be set.
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |