|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.sym.SymImpl
coins.sym.ConstImpl
coins.sym.IntConstImpl
IntConstImpl class
| Field Summary | |
protected long |
fLongValue
Integer constants are recorded as long value. |
| 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 | |
IntConstImpl(SymRoot pSymRoot,
long pLongValue,
Type pType)
|
|
IntConstImpl(SymRoot pSymRoot,
java.lang.String pInternedName,
Type pType)
|
|
| Method Summary | |
double |
doubleValue()
doubleValue |
java.lang.Object |
evaluateAsObject()
Evaluate as a Long object (not as a binary integer number). |
long |
longValue()
longValue Get the value of this constant. |
| Methods inherited from class coins.sym.ConstImpl |
charValue, floatValue, getConstSym, intValue, 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 |
charValue, floatValue, getConstSym, intValue, 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 |
| Field Detail |
protected long fLongValue
| Constructor Detail |
public IntConstImpl(SymRoot pSymRoot,
java.lang.String pInternedName,
Type pType)
public IntConstImpl(SymRoot pSymRoot,
long pLongValue,
Type pType)
| Method Detail |
public long longValue()
longValue 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 long.
longValue in interface Constpublic double doubleValue()
ConstGet 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.
doubleValue in interface Constpublic java.lang.Object evaluateAsObject()
IntConst
evaluateAsObject in interface IntConstevaluateAsObject in class ConstImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||