coins.sym
クラス StringConstImpl

java.lang.Object
  |
  +--coins.sym.SymImpl
        |
        +--coins.sym.ConstImpl
              |
              +--coins.sym.StringConstImpl
すべての実装インタフェース:
java.lang.Cloneable, Const, HasStringObject, StringConst, Sym, Sym0

public class StringConstImpl
extends ConstImpl
implements StringConst

StringConstImpl class


フィールドの概要
protected  int fLength
           
protected  java.lang.String fStringBody
           
 
クラス coins.sym.SymImpl から継承したフィールド
fDbgLevel, fDefinedIn, fFlagBox, fKind, fName, fNextSym, fRecordedIn, fSourceInf, fSymInf, fType, fUniqueNameSym, fWork, machineParam, sourceLanguage, symRoot
 
インタフェース coins.sym.Sym から継承したフィールド
KIND_NAME, VISIBILITY
 
インタフェース coins.sym.Sym0 から継承したフィールド
FLAG_ADDRESS_TAKEN, FLAG_CASTLESS_SUBP, FLAG_COMMON, FLAG_COMPLEX_STRUCT, FLAG_DERIVED_SYM, FLAG_GENERATED_SYM, FLAG_INCOMPLETE_TYPE, FLAG_POINTER_OPERATION, FLAG_REGION_ELEM, FLAG_RESERVED_NAME, FLAG_SIZEOF_TAKEN, FLAG_UNFIXED_SIZE, FLAG_UNIFORM_SIZE, FLAG_VALUE_IS_ASSIGNED, KIND_AREG, KIND_BOOL_CONST, KIND_CHAR_CONST, KIND_CONST_FIRST, KIND_CONST_LAST, KIND_ELEM, KIND_EXP_ID, KIND_FLOAT_CONST, KIND_INT_CONST, KIND_LABEL, KIND_MREG, KIND_NAMED_CONST, KIND_OTHER, KIND_PARAM, KIND_REMOVED, KIND_STRING_CONST, KIND_SUBP, KIND_TAG, KIND_TYPE, KIND_VAR, SYM_COMPILE_UNIT, SYM_EXTERN, SYM_PRIVATE, SYM_PROTECTED, SYM_PUBLIC
 
コンストラクタの概要
StringConstImpl(SymRoot pSymRoot, java.lang.String pInternedName)
          StringConst constructor.
 
メソッドの概要
 double doubleValue()
          doubleValue Get double value of this constant.
 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 Get the value of this constant.
 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.
 
クラス coins.sym.ConstImpl から継承したメソッド
charValue, floatValue, getConstSym, intValue, shortValue
 
クラス coins.sym.SymImpl から継承したメソッド
bareStringConst, baseType, boolConst, charConst, charConst, charConst, definedType, definedType, defineElem, defineLabel, defineParam, defineRegionVar, defineSubp, defineVar, defineVar, derivedSym, enumType, enumType, floatConst, floatConst, getDefinedColumn, getDefinedFile, getDefinedIn, getDefinedInName, getDefinedLine, getFlag, getInf, getName, getNameOrNull, getNextSym, getOrAddInf, getOriginalSym, getOriginalSym, getPureName, getRecordedIn, getSourceInf, getSymKind, getSymKindName, getSymType, getUniqueName, getWork, intConst, intConst, intObject, isGlobal, isHIR, isRemoved, isSym, linkSym, makeCstring, makeCstringWithTrailing0, makeEnumTypeName, makeExpString, makeJavaString, makeStructUnionTypeName, makeSubpTypeName, makeSubpTypeName, makeVectorTypeName, makeVectorTypeName, makeVectorTypeName, namedConst, namedConst, pointerType, pointerType, pointerType, pointerType, pointerType, print, print, regionType, regionType, remove, setDefinedFile, setDefinedIn, setDefinedLine, setFlag, setOriginalSym, setParameters, setRecordedIn, setSourceInf, setSymKind, setSymType, setUniqueNameSym, setWork, stringConst, stringConstFromQuotedString, structType, structType, subpType, subpType, symbol, toStringShort, unionType, unionType, vectorType, vectorType, vectorType, vectorType, vectorTypeUnfixed, vectorTypeUnfixed
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
インタフェース coins.sym.Const から継承したメソッド
charValue, floatValue, getConstSym, intValue, shortValue
 
インタフェース coins.sym.Sym から継承したメソッド
baseType, boolConst, charConst, defineVar, derivedSym, floatConst, getDefinedColumn, getDefinedInName, getDefinedLine, getInf, getNameOrNull, getOrAddInf, getOriginalSym, getOriginalSym, getPureName, getSymKindName, getWork, intConst, intObject, isRemoved, makeCstring, makeCstringWithTrailing0, makeEnumTypeName, makeJavaString, makeStructUnionTypeName, makeSubpTypeName, makeVectorTypeName, makeVectorTypeName, makeVectorTypeName, namedConst, pointerType, pointerType, pointerType, regionType, remove, setDefinedFile, setDefinedIn, setDefinedLine, setRecordedIn, setSymKind, setSymType, setUniqueNameSym, setWork, stringConstFromQuotedString, symbol, toStringShort, vectorType, vectorType, vectorType, vectorTypeUnfixed
 
インタフェース 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
 

フィールドの詳細

fStringBody

protected java.lang.String fStringBody

fLength

protected int fLength
コンストラクタの詳細

StringConstImpl

public StringConstImpl(SymRoot pSymRoot,
                       java.lang.String pInternedName)
StringConst constructor. Do not use this directly but use stringConst of Sym to make a StringConst instance.

メソッドの詳細

longValue

public long longValue()
インタフェース Const の記述:
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 integer, short integer,
  long integer, or character of either signed or unsigned.

定義:
インタフェース Const 内の longValue
戻り値:
the long int value of this constant.

doubleValue

public double doubleValue()
インタフェース Const の記述:
doubleValue
  Get 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.

定義:
インタフェース Const 内の doubleValue
戻り値:
the double value of this constant.

stringValue

public java.lang.String stringValue()

getStringBody

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.

定義:
インタフェース StringConst 内の getStringBody

setStringBody

public void setStringBody(java.lang.String pStringBody)
インタフェース StringConst の記述:
setStringBody Set the body of the string and its length. The parameter should be changed to pure string by using makeStringBody of SourceLanguage before calling this method.

定義:
インタフェース StringConst 内の setStringBody
パラメータ:
pStringBody - Body of the string.

makeJavaString

public java.lang.String makeJavaString()

makeCstring

public java.lang.String makeCstring()
インタフェース StringConst の記述:
makeCstring Change the string body of this string to C string representation adding heading, trailing quotes and escape characters if required. Trailing \0 is not added as printable character. See coins.SourceLanguage.

定義:
インタフェース StringConst 内の makeCstring
戻り値:
the string changed in C form.

makeCstringWithTrailing0

public java.lang.String makeCstringWithTrailing0()
インタフェース StringConst の記述:
makeCstringWithTrailing0 Change the string body of this string to C string representation adding heading, trailing quotes and escape characters if required. Trailing \0 is added as printable character with escape char. See coins.SourceLanguage.

定義:
インタフェース StringConst 内の makeCstringWithTrailing0
戻り値:
the string changed in C form with trailing \0 as printable character.

getLength

public int getLength()
インタフェース StringConst の記述:
getLength Get the length (number of bytes) of the string body.

定義:
インタフェース StringConst 内の getLength

toString

public java.lang.String toString()
インタフェース HasStringObject の記述:
Get the string image of object.

定義:
インタフェース HasStringObject 内の toString
オーバーライド:
クラス SymImpl 内の toString

toStringDetail

public java.lang.String toStringDetail()
インタフェース Sym の記述:
toStringDetail Get detailed attributes of this symbol in text which is not interned.

定義:
インタフェース Sym 内の toStringDetail
オーバーライド:
クラス SymImpl 内の toStringDetail

evaluateAsObject

public java.lang.Object evaluateAsObject()
インタフェース StringConst の記述:
Get the String object representing this constant.

定義:
インタフェース StringConst 内の evaluateAsObject
オーバーライド:
クラス ConstImpl 内の evaluateAsObject
戻り値:
the String object.