|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.sym.SymImpl
coins.sym.ConstImpl
Constant class
| Field Summary |
| 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.Sym |
KIND_NAME, VISIBILITY |
| Constructor Summary | |
ConstImpl(SymRoot pSymRoot)
|
|
| Method Summary | |
char |
charValue()
charValue Get the value of this constant. |
java.lang.Object |
evaluateAsObject()
Get the value of this constant symbol. |
float |
floatValue()
floatValue Get floating/double value of this constant. |
Const |
getConstSym()
getConstSym |
int |
intValue()
intValue Get the value of this constant. |
short |
shortValue()
shortValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface coins.sym.Const |
doubleValue, longValue |
| 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 |
| Constructor Detail |
public ConstImpl(SymRoot pSymRoot)
| Method Detail |
public int intValue()
intValue Get the value of this constant. If type conversion is required, the returned value is the result of conversion. "this" should be a constant of type integer.
intValue in interface Constpublic short shortValue()
ConstGet the value of this constant. If type conversion is required, the returned value is the result of conversion. "this" should be a constant of type integer, short integer, long integer, or character of either signed or unsigned.
shortValue in interface Constpublic char charValue()
charValue Get the value of this constant. If type conversion is required, the returned value is the result of conversion. "this" should be a constant of type char.
charValue in interface Constpublic float floatValue()
floatValue Get floating/double value of this constant. If type conversion is required, the returned value is the result of conversion. "this" should be a constant of type float, or double. floatValue return the float value of this constant. doubleValue return the double value of this constant.
floatValue in interface Constpublic Const getConstSym()
ConstIf boolean true then return symRoot.intConst1 else if boolean false then return symRoot.intConst0 else if enumeration constant then return corresponding IntConst else return this.
getConstSym in interface Constpublic java.lang.Object evaluateAsObject()
evaluateAsObject in interface Const
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||