com.caucho.quercus.env
Class BigDecimalValue

java.lang.Object
  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:
java.io.Serializable

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
_env
 
Fields inherited from class com.caucho.quercus.env.ObjectValue
_className, _incompleteObjectName, _quercusClass
 
Fields inherited from class com.caucho.quercus.env.Value
L, NULL_ARGS, NULL_VALUE_ARRAY, SCALAR_V
 
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

BigDecimalValue

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

toLong

public long toLong()
Converts to a long.

Overrides:
toLong in class JavaValue

toDouble

public double toDouble()
Converts to a double.

Overrides:
toDouble in class JavaValue

toBigDecimal

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

Overrides:
toBigDecimal in class Value

toBigInteger

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

Overrides:
toBigInteger in class Value

isDoubleConvertible

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

Overrides:
isDoubleConvertible in class Value

isLongConvertible

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

Overrides:
isLongConvertible in class Value

toString

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

Overrides:
toString in class JavaValue