|
||||||||||
| 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.FloatConstImpl
FloatConstImpl class
| Field Summary | |
protected double |
fDoubleValue
double 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 | |
FloatConstImpl(SymRoot pSymRoot,
double pDoubleValue,
Type pType)
|
|
FloatConstImpl(SymRoot pSymRoot,
java.lang.String pInternedName,
Type pType)
|
|
| Method Summary | |
double |
doubleValue()
doubleValue Get floating/double value of this constant. |
java.lang.Object |
evaluateAsObject()
Evaluate as a Double object (not as a binary floating point number). |
long |
longValue()
longValue |
| 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 double fDoubleValue
| Constructor Detail |
public FloatConstImpl(SymRoot pSymRoot,
java.lang.String pInternedName,
Type pType)
public FloatConstImpl(SymRoot pSymRoot,
double pDoubleValue,
Type pType)
| Method Detail |
public long longValue()
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.
longValue in interface Constpublic double doubleValue()
doubleValue 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.
doubleValue in interface Constpublic java.lang.Object evaluateAsObject()
FloatConst
evaluateAsObject in interface FloatConstevaluateAsObject in class ConstImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||