Class BigDecimalValue

  extended by com.caucho.quercus.env.Value
      extended by com.caucho.quercus.env.ObjectValue
          extended by com.caucho.quercus.env.JavaValue
              extended by com.caucho.quercus.env.BigDecimalValue
All Implemented Interfaces:

public class BigDecimalValue
extends JavaValue

Represents a Quercus java BigInteger value.

See Also:
Serialized Form

Field Summary
Fields inherited from class com.caucho.quercus.env.JavaValue
Fields inherited from class com.caucho.quercus.env.ObjectValue
_className, _incompleteObjectName, _quercusClass
Fields inherited from class com.caucho.quercus.env.Value
Constructor Summary
BigDecimalValue(Env env, java.math.BigDecimal val, JavaClassDef def)
Method Summary
 boolean isDoubleConvertible()
          Returns true for a double-value.
 boolean isLongConvertible()
          Returns true for a long-value.
 java.math.BigDecimal toBigDecimal()
          Converts to a Java BigDecimal.
 java.math.BigInteger toBigInteger()
          Converts to a Java BigDecimal.
 double toDouble()
          Converts to a double.
 long toLong()
          Converts to a long.
 java.lang.String toString()
          Converts to a string.
Methods inherited from class com.caucho.quercus.env.JavaValue
callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, cmpObject, entrySet, getClassName, getField, getJavaClassDef, getType, isObject, isResource, jsonEncode, printRImpl, putField, serialize, toDouble, toInputStream, toJavaMap, toJavaObject, toJavaObject, toJavaObjectNotNull, toKey, toString, varDumpImpl
Methods inherited from class com.caucho.quercus.env.ObjectValue
append, call, eq, get, getCount, getIncompleteObjectName, getIterator, getKeyIterator, getName, getParentClassName, getQuercusClass, getValueIterator, initField, initObject, isA, isCallable, isIncompleteObject, isset, put, put, putField, putField, putField, putField, putField, putField, remove, setIncompleteObjectName, setQuercusClass, toAutoArray, toBoolean, varDumpObject
Methods inherited from class com.caucho.quercus.env.Value
abs, add, add, addOne, appendTo, appendTo, appendTo, appendTo, bitAnd, bitOr, bitXor, call, call, call, call, call, call, callCopy, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callRef, callRef, callRef, callRef, callRef, callRef, callRef, charValueAt, checkPrivate, checkProtected, clone, cmp, containsKey, copy, copy, copy, copyArrayItem, copyReturn, copySaveFunArg, copyStringBuilder, copyTree, current, div, div, end, eql, eqValue, findFunction, generate, geq, getArg, getArray, getArray, getBaseIterator, getCallableName, getCalledClass, getCountRecursive, getDirty, getFieldArg, getFieldArgRef, getFieldArray, getFieldObject, getFieldVar, getHashCode, getKeyArray, getObject, getObject, getRef, getResourceType, getSize, getThisField, getThisFieldArg, getThisFieldArgRef, getThisFieldArray, getThisFieldObject, getThisFieldVar, getValueArray, getValueType, getVar, gt, hasCurrent, hashCode, increment, isA, isArray, isBinary, isBoolean, isDefault, isDouble, isEmpty, isFieldInit, isLong, isNull, isNumberConvertible, isNumeric, isset, issetField, issetThisField, isString, isUnicode, isVar, key, keyExists, length, leq, lshift, lt, mod, mul, mul, neg, next, nextIndex, pop, pos, postdecr, postincr, postincr, predecr, preincr, preincr, prev, print, print, printDepth, printJavaChar, printJavaString, printR, put, putField, putObject, putThisField, putThisField, putVar, reset, rshift, serialize, set, setCharValueAt, setFieldInit, setJavaObject, shuffle, sub_rev, sub, sub, subOne, toArgRef, toArray, toArrayValue, toAutoObject, toBinaryValue, toBinaryValue, toBinaryValue, toBinaryValueMarshalCost, toBooleanMarshalCost, toByteArrayMarshalCost, toByteMarshalCost, toCallable, toChar, toCharArrayMarshalCost, toCharMarshalCost, toDebugString, toDoubleMarshalCost, toDoubleValue, toException, toFloatMarshalCost, toInt, toIntegerMarshalCost, toInternString, toJavaBoolean, toJavaByte, toJavaCalendar, toJavaCharacter, toJavaCollection, toJavaDate, toJavaDouble, toJavaFloat, toJavaInteger, toJavaList, toJavaLong, toJavaObjectMarshalCost, toJavaShort, toJavaString, toJavaURL, toLocalRef, toLocalThis, toLocalValue, toLocalValueReadOnly, toLocalVar, toLocalVarDeclAsRef, toLongMarshalCost, toLongValue, toObject, toRef, toRefValue, toShortMarshalCost, toStringBuilder, toStringBuilder, toStringBuilder, toStringBuilder, toStringMarshalCost, toStringValue, toStringValue, toStringValueMarshalCost, toUnicode, toUnicodeValue, toUnicodeValue, toUnicodeValueMarshalCost, toValue, toVar, unsetArray, unsetField, unsetThisArray, unsetThisField, valuesToArray, varDump, varExport
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait

Constructor Detail


public BigDecimalValue(Env env,
                       java.math.BigDecimal val,
                       JavaClassDef def)
Method Detail


public long toLong()
Converts to a long.

toLong in class JavaValue


public double toDouble()
Converts to a double.

toDouble in class JavaValue


public java.math.BigDecimal toBigDecimal()
Converts to a Java BigDecimal.

toBigDecimal in class Value


public java.math.BigInteger toBigInteger()
Converts to a Java BigDecimal.

toBigInteger in class Value


public boolean isDoubleConvertible()
Returns true for a double-value.

isDoubleConvertible in class Value


public boolean isLongConvertible()
Returns true for a long-value.

isLongConvertible in class Value


public java.lang.String toString()
Description copied from class: JavaValue
Converts to a string.

toString in class JavaValue