|
||||||||||
| 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.StringConstImpl
StringConstImpl class
| Field Summary | |
protected int |
fLength
|
protected java.lang.String |
fStringBody
|
| 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 | |
StringConstImpl(SymRoot pSymRoot,
java.lang.String pInternedName)
StringConst constructor. |
|
| Method Summary | |
double |
doubleValue()
doubleValue |
java.lang.Object |
evaluateAsObject()
Get the String object representing this constant. |
int |
getLength()
getLength Get the length (number of bytes) of the string body. |
java.lang.String |
getStringBody()
getStringBody Get the body of string (pure string)
excluding quotes, etc., where the pure string
is composed of characters excluding escape characters
and heading, trailing delimiters. |
long |
longValue()
longValue |
java.lang.String |
makeCstring()
makeCstring Change the string body of this string to C string representation adding heading, trailing quotes and escape characters if required. |
java.lang.String |
makeCstringWithTrailing0()
makeCstringWithTrailing0 Change the string body of this string to C string representation adding heading, trailing quotes and escape characters if required. |
java.lang.String |
makeJavaString()
|
void |
setStringBody(java.lang.String pStringBody)
setStringBody Set the body of the string and its length. |
java.lang.String |
stringValue()
|
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. |
| 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 java.lang.String fStringBody
protected int fLength
| Constructor Detail |
public StringConstImpl(SymRoot pSymRoot,
java.lang.String pInternedName)
| 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()
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.String stringValue()
public java.lang.String getStringBody()
StringConst
getStringBody Get the body of string (pure string)
excluding quotes, etc., where the pure string
is composed of characters excluding escape characters
and heading, trailing delimiters.
If source language is C,
heading and trailing quotes and escape
characters are removed from the source expression,
and trailing 0x00 (0x0000 in case of wchar_t) is
also deleted.
getStringBody in interface StringConstpublic void setStringBody(java.lang.String pStringBody)
StringConst
setStringBody in interface StringConstpStringBody - Body of the string.public java.lang.String makeJavaString()
public java.lang.String makeCstring()
StringConst
makeCstring in interface StringConstpublic java.lang.String makeCstringWithTrailing0()
StringConst
makeCstringWithTrailing0 in interface StringConstpublic int getLength()
StringConst
getLength in interface StringConstpublic java.lang.String toString()
HasStringObject
toString in interface HasStringObjecttoString in class SymImplpublic java.lang.String toStringDetail()
Sym
toStringDetail in interface SymtoStringDetail in class SymImplpublic java.lang.Object evaluateAsObject()
StringConst
evaluateAsObject in interface StringConstevaluateAsObject in class ConstImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||