public class DoubleValue extends NumberValue implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static DoubleValue |
ZERO |
L, NULL_ARGS, NULL_VALUE_ARRAY
Constructor and Description |
---|
DoubleValue(double value) |
Modifier and Type | Method and Description |
---|---|
Value |
abs()
Absolute value.
|
Value |
add(long lValue)
Multiplies to the following value.
|
Value |
add(Value rValue)
Multiplies to the following value.
|
Value |
addOne()
Increment the following value.
|
static DoubleValue |
create(double value) |
static Value |
create(java.lang.Number value) |
boolean |
eql(Value rValue)
Returns true for equality
|
boolean |
equals(java.lang.Object o)
Compare for equality.
|
void |
generate(java.io.PrintWriter out)
Generates code to recreate the expression.
|
java.lang.String |
getType()
Returns the type.
|
ValueType |
getValueType()
Returns the ValueType.
|
int |
hashCode()
Returns the hash code
|
Value |
increment(int incr)
Increment the following value.
|
boolean |
isDouble()
Returns true for a double-value.
|
boolean |
isDoubleConvertible()
Returns true for a double.
|
boolean |
isLong()
Returns true for a long-value.
|
boolean |
isLongConvertible()
Returns true for integer looking doubles.
|
boolean |
isNumeric()
Returns true for is_numeric
|
boolean |
isScalar()
Returns true for a scalar
|
Value |
mul(long lValue)
Multiplies to the following value.
|
Value |
mul(Value rValue)
Multiplies to the following value.
|
Value |
neg()
Negates the value.
|
Value |
pos()
Returns the value
|
Value |
postdecr()
Increment the following value.
|
Value |
postincr()
Increment the following value.
|
Value |
predecr()
Increment the following value.
|
Value |
preincr()
Increment the following value.
|
void |
print(Env env)
Prints the value.
|
void |
serialize(Env env,
java.lang.StringBuilder sb)
Serializes the value.
|
Value |
subOne()
Increment the following value.
|
boolean |
toBoolean()
Converts to a boolean.
|
int |
toByteMarshalCost()
Cost to convert to a byte
|
double |
toDouble()
Converts to a double.
|
int |
toDoubleMarshalCost()
Cost to convert to a double
|
DoubleValue |
toDoubleValue()
Converts to a double.
|
int |
toIntegerMarshalCost()
Cost to convert to an integer
|
java.lang.Object |
toJavaObject()
Converts to a java object.
|
Value |
toKey()
Converts to a key.
|
long |
toLong()
Converts to a long.
|
int |
toLongMarshalCost()
Cost to convert to a long
|
java.lang.Object |
toObject()
Converts to an object.
|
int |
toShortMarshalCost()
Cost to convert to a short
|
java.lang.String |
toString()
Converts to a string.
|
StringValue |
toString(Env env)
Converts to a string.
|
java.lang.String |
toString(QuercusLocale quercusLocale)
Converts to a string.
|
StringValue |
toStringBuilder(Env env)
Converts to a string builder
|
void |
varDumpImpl(Env env,
WriteStream out,
int depth,
java.util.IdentityHashMap<Value,java.lang.String> valueSet) |
protected void |
varExportImpl(StringValue sb,
int level)
Exports the value.
|
cmp, compareNum, jsonEncode
append, appendTo, appendTo, appendTo, appendTo, bitAnd, bitOr, bitXor, call, call, call, call, call, call, call, callCopy, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callRef, callRef, callRef, callRef, callRef, callRef, callRef, charValueAt, checkPrivate, checkProtected, clone, containsKey, copy, copy, copy, copyArrayItem, copyReturn, copySaveFunArg, copyStringBuilder, copyTree, current, div, div, end, eq, eqValue, findFunction, findQuercusClass, geq, get, get, getArg, getArgTail, getArray, getArray, getBaseIterator, getCallableName, getCalledClass, getClassName, getCount, getCountRecursive, getDirty, getField, getFieldArg, getFieldArgRef, getFieldArray, getFieldObject, getFieldVar, getHashCode, getIterator, getKeyArray, getKeyIterator, getObject, getObject, getObjectHash, getQuercusClass, getRef, getResourceType, getSize, getStaticFieldValue, getStaticFieldVar, getThisField, getThisFieldArg, getThisFieldArgRef, getThisFieldArray, getThisFieldObject, getThisFieldVar, getValueArray, getValueIterator, getVar, gt, hasCurrent, initField, initField, initField, initIncompleteField, isA, isA, isArray, isBinary, isBoolean, isCallable, isDefault, isEmpty, isEmpty, isFieldExists, isFieldInit, isNull, isNumberConvertible, isObject, isResource, isset, isset, issetField, issetThisField, isString, isUnicode, isVar, key, keyExists, length, leq, lshift, lt, mod, next, nextIndex, pop, postincr, preincr, prev, print, printDepth, printJavaChar, printJavaString, printR, printRImpl, put, put, put, putArray, putField, putField, putField, putObject, putThisField, putThisField, putThisFieldArray, putVar, remove, reset, rshift, serialize, set, setCharValueAt, setFieldInit, setJavaObject, setStaticFieldRef, shuffle, sub_rev, sub, sub, toArgRef, toArray, toArrayValue, toAutoArray, toAutoObject, toBigDecimal, toBigInteger, toBinaryValue, toBinaryValue, toBinaryValue, toBinaryValueMarshalCost, toBooleanMarshalCost, toByteArrayMarshalCost, toCallable, toChar, toCharArrayMarshalCost, toCharMarshalCost, toDebugString, toDouble, toDouble, toDouble, toDouble, toException, toFloatMarshalCost, toInputStream, toInt, toInternString, toJavaBoolean, toJavaByte, toJavaCalendar, toJavaCharacter, toJavaCollection, toJavaDate, toJavaDouble, toJavaEnum, toJavaFloat, toJavaInteger, toJavaList, toJavaLong, toJavaMap, toJavaObject, toJavaObjectMarshalCost, toJavaObjectNotNull, toJavaShort, toJavaString, toJavaURL, toLocalRef, toLocalThis, toLocalValue, toLocalValueReadOnly, toLocalVar, toLocalVarDeclAsRef, toLong, toLong, toLong, toLong, toLongValue, toObject, toRef, toRefValue, toStringBuilder, toStringBuilder, toStringBuilder, toStringMarshalCost, toStringValue, toStringValue, toStringValueMarshalCost, toUnicode, toUnicodeValue, toUnicodeValue, toUnicodeValueMarshalCost, toValue, toVar, unsetArray, unsetField, unsetThisArray, unsetThisField, unsetThisPrivateField, valuesToArray, varDump, varExport
public static final DoubleValue ZERO
public static DoubleValue create(double value)
public static Value create(java.lang.Number value)
public ValueType getValueType()
getValueType
in class Value
public boolean isDoubleConvertible()
isDoubleConvertible
in class Value
public boolean isLongConvertible()
isLongConvertible
in class Value
public boolean isDouble()
public boolean isNumeric()
public boolean isScalar()
public int toDoubleMarshalCost()
toDoubleMarshalCost
in class Value
public int toLongMarshalCost()
toLongMarshalCost
in class Value
public int toIntegerMarshalCost()
toIntegerMarshalCost
in class Value
public int toShortMarshalCost()
toShortMarshalCost
in class Value
public int toByteMarshalCost()
toByteMarshalCost
in class Value
public DoubleValue toDoubleValue()
toDoubleValue
in class Value
public StringValue toStringBuilder(Env env)
toStringBuilder
in class Value
public java.lang.Object toJavaObject()
toJavaObject
in class Value
public Value increment(int incr)
public java.lang.String toString()
toString
in class java.lang.Object
public StringValue toString(Env env)
public java.lang.String toString(QuercusLocale quercusLocale)
public java.lang.Object toObject()
public void print(Env env)
public void serialize(Env env, java.lang.StringBuilder sb)
protected void varExportImpl(StringValue sb, int level)
varExportImpl
in class Value
public void generate(java.io.PrintWriter out) throws java.io.IOException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public void varDumpImpl(Env env, WriteStream out, int depth, java.util.IdentityHashMap<Value,java.lang.String> valueSet) throws java.io.IOException
varDumpImpl
in class Value
java.io.IOException