|
||||||||||
| 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.LongValue
public class LongValue
Represents a PHP long value.
| Field Summary | |
|---|---|
static LongValue |
MINUS_ONE
|
static LongValue |
ONE
|
static int |
STATIC_MAX
|
static int |
STATIC_MIN
|
static LongCacheValue[] |
STATIC_VALUES
|
static LongValue |
ZERO
|
| Fields inherited from class com.caucho.quercus.env.Value |
|---|
L, NULL_ARGS, NULL_VALUE_ARRAY, SCALAR_V |
| Constructor Summary | |
|---|---|
LongValue(long value)
|
|
| Method Summary | |
|---|---|
Value |
abs()
Absolute value. |
Value |
add(long lLong)
Adds to the following value. |
Value |
add(Value value)
Adds to the following value. |
Value |
addOne()
The next integer |
StringValue |
appendTo(BinaryBuilderValue sb)
Append to a binary builder. |
StringValue |
appendTo(LargeStringBuilderValue sb)
Append to a string builder. |
StringValue |
appendTo(StringBuilderValue sb)
Append to a string builder. |
StringValue |
appendTo(UnicodeBuilderValue sb)
Append to a unicode builder. |
int |
cmp(Value rValue)
Returns true for equality |
static LongValue |
create(long value)
|
static LongValue |
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)
Post-increment the following value. |
boolean |
isDouble()
Returns true for a double-value. |
boolean |
isEmpty()
Returns true if the value is empty |
boolean |
isLong()
Returns true for a long-value. |
boolean |
isLongConvertible()
Returns true for a long. |
boolean |
isNumeric()
Returns true for is_numeric |
boolean |
isScalar()
Returns true for a scalar |
Value |
neg()
Negates the value. |
long |
nextIndex(long oldIndex)
Returns the next array index based on this value. |
Value |
pos()
Negates the value. |
Value |
postdecr()
Post-decrement the following value. |
Value |
postincr()
Post-increment the following value. |
Value |
predecr()
Pre-increment the following value. |
Value |
preincr()
Pre-increment the following value. |
void |
print(Env env)
Prints the value. |
void |
serialize(Env env,
java.lang.StringBuilder sb)
Serializes the value. |
Value |
sub(long rLong)
Subtracts the following value. |
Value |
sub(Value rValue)
Subtracts to the following value. |
Value |
subOne()
The previous integer |
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 |
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 |
LongValue |
toLongValue()
Converts to a long value |
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 |
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 |
|---|
compareNum, jsonEncode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final LongValue MINUS_ONE
public static final LongValue ZERO
public static final LongValue ONE
public static final int STATIC_MIN
public static final int STATIC_MAX
public static final LongCacheValue[] STATIC_VALUES
| Constructor Detail |
|---|
public LongValue(long value)
| Method Detail |
|---|
public static LongValue create(long value)
public static LongValue create(java.lang.Number value)
public java.lang.String getType()
getType in class Valuepublic ValueType getValueType()
getValueType in class Valuepublic boolean isLongConvertible()
isLongConvertible in class Valuepublic boolean isNumeric()
isNumeric in class Valuepublic boolean isLong()
isLong in class Valuepublic boolean isDouble()
isDouble in class Valuepublic boolean isScalar()
public boolean isEmpty()
isEmpty in class Valuepublic int toDoubleMarshalCost()
toDoubleMarshalCost in class Valuepublic int toLongMarshalCost()
toLongMarshalCost in class Valuepublic int toIntegerMarshalCost()
toIntegerMarshalCost in class Valuepublic int toShortMarshalCost()
toShortMarshalCost in class Valuepublic int toByteMarshalCost()
toByteMarshalCost in class Valuepublic boolean toBoolean()
toBoolean in class Valuepublic long toLong()
toLong in class Valuepublic double toDouble()
toDouble in class Valuepublic java.lang.String toString()
toString in class java.lang.Objectpublic StringValue toStringBuilder(Env env)
toStringBuilder in class Valuepublic LongValue toLongValue()
toLongValue in class Valuepublic Value toKey()
toKey in class Valuepublic java.lang.Object toObject()
public java.lang.Object toJavaObject()
toJavaObject in class Valuepublic Value neg()
neg in class Valuepublic Value pos()
pos in class Valuepublic Value addOne()
addOne in class Valuepublic Value subOne()
subOne in class Valuepublic Value preincr()
preincr in class Valuepublic Value predecr()
predecr in class Valuepublic Value postincr()
postincr in class Valuepublic Value postdecr()
postdecr in class Valuepublic Value increment(int incr)
increment in class Valuepublic Value add(Value value)
add in class Valuepublic Value add(long lLong)
add in class Valuepublic Value sub(Value rValue)
sub in class Valuepublic Value sub(long rLong)
sub in class Valuepublic Value abs()
abs in class Valuepublic boolean eql(Value rValue)
eql in class Valuepublic int cmp(Value rValue)
cmp in class NumberValuepublic long nextIndex(long oldIndex)
nextIndex in class Valuepublic void print(Env env)
print in class Valueenv - public StringValue appendTo(UnicodeBuilderValue sb)
appendTo in class Valuepublic StringValue appendTo(BinaryBuilderValue sb)
appendTo in class Valuepublic StringValue appendTo(StringBuilderValue sb)
appendTo in class Valuepublic StringValue appendTo(LargeStringBuilderValue sb)
appendTo in class Value
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 final int hashCode()
hashCode in class Valuepublic 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 | |||||||||