coins.sym
クラス ConstImpl

java.lang.Object
  |
  +--coins.sym.SymImpl
        |
        +--coins.sym.ConstImpl
すべての実装インタフェース:
java.lang.Cloneable, Const, HasStringObject, Sym, Sym0
直系の既知のサブクラス:
BoolConstImpl, CharConstImpl, FloatConstImpl, IntConstImpl, NamedConstImpl, StringConstImpl

public abstract class ConstImpl
extends SymImpl
implements Const

Constant class


フィールドの概要
 
クラス 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
 
コンストラクタの概要
ConstImpl(SymRoot pSymRoot)
           
 
メソッドの概要
 char charValue()
           charValue Get the value of this constant.
 java.lang.Object evaluateAsObject()
          Get the value of this constant symbol.
 float floatValue()
           floatValue Get floating/double value of this constant.
 Const getConstSym()
          getConstSym If 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.
 int intValue()
           intValue Get the value of this constant.
 short shortValue()
          shortValue Get the value of this constant.
 
クラス 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, toString, toStringDetail, 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 から継承したメソッド
doubleValue, longValue
 
インタフェース 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, toStringDetail, 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
 

コンストラクタの詳細

ConstImpl

public ConstImpl(SymRoot pSymRoot)
メソッドの詳細

intValue

public int intValue()
 intValue
  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.

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

shortValue

public short shortValue()
インタフェース Const の記述:
shortValue
  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 内の shortValue
戻り値:
the short int value of this constant.

charValue

public char charValue()
 charValue
  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 char.

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

floatValue

public float floatValue()
 floatValue
  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.
  floatValue  return the float  value of this constant.
  doubleValue return the double value of this constant.

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

getConstSym

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

定義:
インタフェース Const 内の getConstSym

evaluateAsObject

public java.lang.Object evaluateAsObject()
Get the value of this constant symbol. This method is overrided as follows class returned value IntConst Long FloatConst Double StringConst String Var Initail value (ExpListExp, etc.) if qualified by const, else null.

定義:
インタフェース Const 内の evaluateAsObject
戻り値:
the constant value of appropriate type.