|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
CharConst interface
Const (constant) class interface. A constant in source program is recorded as a Const instance by using its character string representation as its name. There are access methods to get the value of constants and to record a constant giving its value. Constants are usually represented by symbol table instance in order to represent attributes attached to them. Subclasses of Const is not so fine as type, for example, int, short, long, unsigned int, unsigned short, unsigned long all belongs to IntConst. To see the type of Const object, use getSymType() of SymInterface.
| Field Summary |
| Fields inherited from interface coins.sym.Sym |
KIND_NAME, VISIBILITY |
| Method Summary | |
int |
intValue()
intValue Get the value of this constant as an integer number. |
| Methods inherited from interface coins.sym.Const |
charValue, doubleValue, evaluateAsObject, floatValue, getConstSym, longValue, shortValue |
| 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 |
| Method Detail |
public int intValue()
intValue Get the value of this constant as an integer number.
intValue in interface Const
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||