|
||||||||||
| 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.NamedConstImpl
ConstImpl class
| Field Summary | |
protected Const |
fConstValue
Constant value |
protected long |
fIndexValue
Index 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 | |
NamedConstImpl(SymRoot pSymRoot,
java.lang.String pInternedName,
Const pConst)
|
|
NamedConstImpl(SymRoot pSymRoot,
java.lang.String pInternedName,
int pIndex)
|
|
| Method Summary | |
double |
doubleValue()
doubleValue Get double value of this constant. |
Const |
getConstSym()
getConstSym |
Const |
getConstValue()
getConstValue (##5) Get the constant value assigned to this named constant. |
int |
getIndexValue()
getIndexValue Get the index value assigned to this named constant. |
long |
longValue()
longValue Get the value of this constant. |
java.lang.String |
toString()
Get the string image of object. |
java.lang.String |
toStringDetail()
toStringDetail Get detailed attributes of this symbol in text which is not interned. |
java.lang.String |
toStringShort()
toStringShort Get name and index of this symbol in text which is not interned. |
| Methods inherited from class coins.sym.ConstImpl |
charValue, evaluateAsObject, floatValue, 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, evaluateAsObject, floatValue, 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 fIndexValue
protected Const fConstValue
| Constructor Detail |
public NamedConstImpl(SymRoot pSymRoot,
java.lang.String pInternedName,
int pIndex)
public NamedConstImpl(SymRoot pSymRoot,
java.lang.String pInternedName,
Const pConst)
| Method Detail |
public Const getConstValue()
NamedConst
getConstValue in interface NamedConstpublic int getIndexValue()
NamedConst
getIndexValue in interface NamedConstpublic long longValue()
longValue in interface Constpublic double doubleValue()
doubleValue 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 ConstgetConstSym in class ConstImplpublic java.lang.String toString()
HasStringObject
toString in interface HasStringObjecttoString in class SymImplpublic java.lang.String toStringShort()
Sym
toStringShort in interface SymtoStringShort in class SymImplpublic java.lang.String toStringDetail()
Sym
toStringDetail in interface SymtoStringDetail in class SymImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||