|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.quercus.env.Value
com.caucho.quercus.env.NumberValue
com.caucho.quercus.env.DoubleValue
public class DoubleValue
Represents a PHP double value.
| Field Summary | |
|---|---|
static DoubleValue |
ZERO
|
| Fields inherited from class com.caucho.quercus.env.Value |
|---|
L, NULL_ARGS, NULL_VALUE_ARRAY, SCALAR_V |
| Constructor Summary | |
|---|---|
DoubleValue(double value)
|
|
| Method Summary | |
|---|---|
Value |
add(long lValue)
Multiplies to the following value. |
Value |
add(Value rValue)
Multiplies to 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 |
boolean |
isDoubleConvertible()
Returns true for a double. |
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 |
postincr(int incr)
Post-increment the following value. |
Value |
preincr(int incr)
Pre-increment the following value. |
void |
print(Env env)
Prints the value. |
void |
serialize(Env env,
java.lang.StringBuilder sb)
Serializes the value. |
boolean |
toBoolean()
Converts to a boolean. |
double |
toDouble()
Converts to a double. |
DoubleValue |
toDoubleValue()
Converts to a double. |
java.lang.Object |
toJavaObject()
Converts to a java object. |
Value |
toKey()
Converts to a key. |
long |
toLong()
Converts to a long. |
java.lang.Object |
toObject()
Converts to an object. |
java.lang.String |
toString()
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)
|
void |
varExport(java.lang.StringBuilder sb)
Exports the value. |
| Methods inherited from class com.caucho.quercus.env.NumberValue |
|---|
cmp, compareNum |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final DoubleValue ZERO
| Constructor Detail |
|---|
public DoubleValue(double value)
| Method Detail |
|---|
public static DoubleValue create(double value)
public static Value create(java.lang.Number value)
public java.lang.String getType()
getType in class Valuepublic ValueType getValueType()
getValueType in class Valuepublic boolean isDoubleConvertible()
isDoubleConvertible in class Valuepublic boolean isLongConvertible()
isLongConvertible in class Valuepublic boolean isNumeric()
isNumeric in class Valuepublic boolean isScalar()
public boolean toBoolean()
toBoolean in class Valuepublic long toLong()
toLong in class Valuepublic double toDouble()
toDouble in class Valuepublic DoubleValue toDoubleValue()
toDoubleValue in class Valuepublic StringValue toStringBuilder(Env env)
toStringBuilder in class Valuepublic Value toKey()
toKey in class Valuepublic java.lang.Object toJavaObject()
toJavaObject in class Valuepublic Value neg()
neg in class Valuepublic Value pos()
pos in class Valuepublic Value add(Value rValue)
add in class Valuepublic Value add(long lValue)
add in class Valuepublic Value preincr(int incr)
preincr in class Valuepublic Value postincr(int incr)
postincr in class Valuepublic Value mul(Value rValue)
mul in class Valuepublic Value mul(long lValue)
mul in class Valuepublic boolean eql(Value rValue)
eql in class Valuepublic java.lang.String toString()
toString in class java.lang.Objectenv - public java.lang.Object toObject()
public void print(Env env)
print in class Valueenv -
public void serialize(Env env,
java.lang.StringBuilder sb)
serialize in class Valuepublic void varExport(java.lang.StringBuilder sb)
varExport in class Value
public void generate(java.io.PrintWriter out)
throws java.io.IOException
generate in class Valueout - the writer to the Java source code.
java.io.IOExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic 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 Valuejava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||