|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.sym.SymImpl
coins.sym.TypeImpl
coins.sym.RegionTypeImpl
RegionTypeImpl Class
| Field Summary | |
protected IrList |
fCurrentElemList
|
protected SymTable |
fCurrentSymTable
|
protected IrList |
fListOfElemList
|
protected java.lang.String |
fRegionName
|
protected Var |
fRegionVar
|
protected int |
fStorageClass
|
protected IrList |
fSubpList
|
protected IrList |
fSymTableList
|
protected Sym |
fTag
|
| Fields inherited from class coins.sym.TypeImpl |
fCompleteType, fConst, fOrigin, fRestrict, fTypeCore, fTypeKind, fVolatile |
| Fields inherited from class coins.sym.SymImpl |
fDbgLevel, fDefinedIn, fFlagBox, fKind, fName, fNextSym, fRecordedIn, fSourceInf, fSymInf, fType, fUniqueNameSym, fWork, machineParam, sourceLanguage, symRoot |
| Fields inherited from interface coins.sym.Type |
KIND_ADDRESS, KIND_ALIGNMENT, KIND_BASE_LIM, KIND_BOOL, KIND_CHAR, KIND_DEFINED, KIND_DOUBLE, KIND_ENUM, KIND_FLOAT, KIND_FLOAT_LOWER_LIM, KIND_FLOAT_UPPER_LIM, KIND_INT, KIND_INT_UPPER_LIM, KIND_LONG, KIND_LONG_DOUBLE, KIND_LONG_LONG, KIND_OFFSET, KIND_POINTER, KIND_RANKS, KIND_REGION, KIND_SHORT, KIND_STRING, KIND_STRUCT, KIND_SUBP, KIND_U_CHAR, KIND_U_INT, KIND_U_LONG, KIND_U_LONG_LONG, KIND_U_SHORT, KIND_UNDEF, KIND_UNION, KIND_UNSIGNED_LOWER_LIM, KIND_VECTOR, KIND_VOID, KIND_WCHAR |
| Fields inherited from interface coins.sym.Sym |
KIND_NAME, VISIBILITY |
| Constructor Summary | |
RegionTypeImpl(SymRoot pSymRoot,
java.lang.String pRegionName,
int pStorageClass)
RegionTypeImpl constructor Make an instance of RegionType in symRoot.symTableRoot. |
|
| Method Summary | |
void |
addElemToCurrentRegion(Elem pElem)
addElemToCurrentRegion Add element pElem to this region. |
int |
addSubp(Subp pSubp,
SymTable pRegionSymTable)
|
void |
finishCurrentRegion()
finishCurrentRegion Close the current region (this region) by setting all required fields so that methods getRegionElemList, getRegionVar, getSizeValue of this RegionType and evaluateDisp() of region elements become effective. |
SymTable |
getCurrentRegionSymTable()
getCurrentRegionSymTable |
IrList |
getRegionElemList(Subp pSubp)
|
SymTable |
getRegionSymTable(int pIndex)
getRegionSymTable Get pIndex-th symbol table from the list of symbol tables of this RegionType. |
SymTable |
getRegionSymTable(Subp pSubp)
getRegionSymTable |
Var |
getRegionVar()
|
IrList |
getSubpList()
|
Sym |
getTag()
|
void |
setTag(Sym pTag)
|
java.lang.String |
toStringDetail()
toStringDetail Get detailed attributes of this symbol in text which is not interned. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface coins.sym.Type |
getAlignment, getAlignmentGap, getCompleteType, getDimension, getElemList, getElemListString, getFinalOrigin, getOrigin, getPointedType, getSizeExp, getSizeValue, getTypeKind, getTypeRank, getUnqualifiedType, isBasicType, isCompatibleWith, isConst, isFloating, isInteger, isRestrict, isScalar, isSizeEvaluable, isUnsigned, isVolatile, makeConstType, makeRestrictType, makeVolatileType, setOrigin, setSizeExp, setSizeValue |
| Methods inherited from interface 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 |
| Field Detail |
protected IrList fSubpList
protected IrList fSymTableList
protected IrList fListOfElemList
protected IrList fCurrentElemList
protected SymTable fCurrentSymTable
protected Var fRegionVar
protected java.lang.String fRegionName
protected Sym fTag
protected int fStorageClass
| Constructor Detail |
public RegionTypeImpl(SymRoot pSymRoot,
java.lang.String pRegionName,
int pStorageClass)
pSymRoot - SymRoot instance to be passed to the
resultant type.pRegionName - Name of the region type.
It shoul be pStorageClass - give
VAR_STATIC or VAR_AUTO of Var interface.| Method Detail |
public int addSubp(Subp pSubp,
SymTable pRegionSymTable)
addSubp in interface RegionTypepublic SymTable getCurrentRegionSymTable()
RegionType
getCurrentRegionSymTable in interface RegionTypepublic SymTable getRegionSymTable(Subp pSubp)
RegionType
getRegionSymTable in interface RegionTypepSubp - Subprogram for which the corresponding symbol table
is to be gotten.
public SymTable getRegionSymTable(int pIndex)
RegionType
getRegionSymTable in interface RegionTypepIndex - index of the symbol tabel to be gotten in the list
of the symbol tables.
public IrList getSubpList()
getSubpList in interface RegionTypepublic void addElemToCurrentRegion(Elem pElem)
RegionType
addElemToCurrentRegion in interface RegionTypepElem - Element to be included in this region.public IrList getRegionElemList(Subp pSubp)
getRegionElemList in interface RegionTypepublic void finishCurrentRegion()
RegionType
finishCurrentRegion
Close the current region (this region) by setting all required fields
so that methods
getRegionElemList, getRegionVar, getSizeValue of this RegionType
and
evaluateDisp() of region elements
become effective.
finishCurrentRegion in interface RegionTypepublic Var getRegionVar()
getRegionVar in interface RegionTypepublic Sym getTag()
public void setTag(Sym pTag)
public java.lang.String toStringDetail()
Sym
toStringDetail in interface SymtoStringDetail in class TypeImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||