|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
StringConst interface Const (constant) class interface. A constant in source program is recorded as a Const instance by using its character string representation as its name. There are access methods to get the value of constants and to record a constant giving its value. Constants are usually represented by symbol table instance in order to represent attributes attached to them. Subclasses of Const is not so fine as type, foe example, int, short, long, unsigned int, unsigned short, unsigned long all belongs to IntConst. To see the type of Const object, use getSymType() of SymInterface.
| フィールドの概要 |
| インタフェース coins.sym.Sym から継承したフィールド |
KIND_NAME, VISIBILITY |
| メソッドの概要 | |
java.lang.Object |
evaluateAsObject()
Get the value of this constant symbol. |
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. |
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. |
void |
setStringBody(java.lang.String pStringBody)
setStringBody Set the body of the string and its length. |
| インタフェース coins.sym.Const から継承したメソッド |
charValue, doubleValue, floatValue, getConstSym, intValue, longValue, shortValue |
| インタフェース 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 |
| メソッドの詳細 |
public java.lang.String getStringBody()
public void setStringBody(java.lang.String pStringBody)
pStringBody - Body of the string.
It should be changed to pure string by using
makeStringBody of SourceLanguage before calling
this method.public java.lang.String makeCstring()
public java.lang.String makeCstringWithTrailing0()
public int getLength()
public java.lang.Object evaluateAsObject()
Const の記述:
Const 内の evaluateAsObject
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||