com.caucho.quercus.env
Class JavaAdapterVar

java.lang.Object
  extended by com.caucho.quercus.env.Value
      extended by com.caucho.quercus.env.JavaAdapterVar
All Implemented Interfaces:
java.io.Serializable

public class JavaAdapterVar
extends Value

Represents a PHP variable value.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.caucho.quercus.env.Value
L, NULL_ARGS, NULL_VALUE_ARRAY, SCALAR_V
 
Constructor Summary
JavaAdapterVar(JavaAdapter adapter, Value key)
           
 
Method Summary
 Value abs()
          Absolute value.
 Value add(long rValue)
          Adds to the following value.
 Value add(Value rValue)
          Adds to the following value.
 Value append(Value index, Value value)
          Sets the array value, returning the new array, e.g.
 StringValue appendTo(BinaryBuilderValue sb)
          Append to a string 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 string builder.
 Value bitAnd(Value rValue)
          Binary And.
 Value bitOr(Value rValue)
          Binary or.
 Value bitXor(Value rValue)
          Binary xor.
 Value callMethod(Env env, StringValue methodName, int hash)
          Evaluates a method.
 Value callMethod(Env env, StringValue methodName, int hash, Value a0)
          Evaluates a method.
 Value callMethod(Env env, StringValue methodName, int hash, Value[] args)
          Evaluates a method.
 Value callMethod(Env env, StringValue methodName, int hash, Value a0, Value a1)
          Evaluates a method.
 Value callMethod(Env env, StringValue methodName, int hash, Value a0, Value a1, Value a2)
          Evaluates a method with 3 args.
 Value callMethod(Env env, StringValue methodName, int hash, Value a0, Value a1, Value a2, Value a3)
          Evaluates a method with 4 args.
 Value callMethod(Env env, StringValue methodName, int hash, Value a0, Value a1, Value a2, Value a3, Value a4)
          Evaluates a method with 5 args.
 Value callMethodRef(Env env, StringValue methodName, int hash)
          Evaluates a method.
 Value callMethodRef(Env env, StringValue methodName, int hash, Value a0)
          Evaluates a method.
 Value callMethodRef(Env env, StringValue methodName, int hash, Value[] args)
          Evaluates a method.
 Value callMethodRef(Env env, StringValue methodName, int hash, Value a0, Value a1)
          Evaluates a method.
 Value callMethodRef(Env env, StringValue methodName, int hash, Value a0, Value a1, Value a2)
          Evaluates a method with 3 args.
 Value callMethodRef(Env env, StringValue methodName, int hash, Value a0, Value a1, Value a2, Value a3)
          Evaluates a method with 4 args.
 Value callMethodRef(Env env, StringValue methodName, int hash, Value a0, Value a1, Value a2, Value a3, Value a4)
          Evaluates a method with 5 args.
 Value charValueAt(long index)
          Returns the character at an index
 int cmp(Value rValue)
          Compares the two values
 Value copy()
          Copy the value.
 Value copyReturn()
          Copy the value as a return value.
 Value current()
          Returns the current value
 Value div(Value rValue)
          Divides the following value.
 Value end()
          Returns the end value.
 boolean eq(Value rValue)
          Returns true for equality
 boolean eql(Value rValue)
          Returns true for equality
 Value get(Value index)
          Returns the array ref.
 Value getArg(Value index, boolean isTop)
          Returns the array ref.
 Value getArray()
          Returns the array ref.
 Value getArray(Value index)
          Returns the value, creating an object if unset.
 java.lang.String getClassName()
          Returns the class name.
 Value getDirty(Value index)
          Returns the value, doing a copy-on-write if needed.
 Value getField(Env env, StringValue index)
          Returns the field ref.
 Value getFieldArg(Env env, StringValue index, boolean isTop)
          Returns the array ref.
 Value getFieldArray(Env env, StringValue index)
          Returns the field value as an array
 Value getFieldObject(Env env, StringValue index)
          Returns the field value as an object
 Var getFieldVar(Env env, StringValue index)
          Returns the field ref.
 java.util.Iterator<java.util.Map.Entry<Value,Value>> getIterator(Env env)
          Returns an iterator for the key => value pairs.
 java.util.Iterator<Value> getKeyIterator(Env env)
          Returns an iterator for the field keys.
 Value getObject(Env env)
          Returns the value, creating an object if unset.
 Value getObject(Env env, Value index)
          Returns the value, creating an object if unset.
 java.lang.String getResourceType()
          Returns the type of the resource.
 int getSize()
          Returns the array/object size
 java.lang.String getType()
          Returns the type.
 Value getValue()
           
 java.util.Iterator<Value> getValueIterator(Env env)
          Returns an iterator for the field values.
 ValueType getValueType()
          Returns the ValueType.
 Var getVar(Value index)
          Returns the array ref.
 boolean hasCurrent()
          Returns true if there are more elements.
 void initField(StringValue key, Value value, FieldVisibility visibility)
          Initializes a new field, does not call __set if it is defined.
 boolean isA(java.lang.String name)
          Returns true for an implementation of a class
 boolean isArray()
          Returns true for an array.
 boolean isBinary()
          Returns true for a BinaryValue.
 boolean isBoolean()
          Returns true for a BooleanValue
 boolean isDefault()
          Returns true for a DefaultValue
 boolean isDouble()
          Returns true for a long-value.
 boolean isDoubleConvertible()
          True to a double.
 boolean isLong()
          Returns true for a long-value.
 boolean isLongConvertible()
          True for a long
 boolean isNull()
          True for a number
 boolean isNumberConvertible()
          True for a number
 boolean isNumeric()
          Returns true for is_numeric
 boolean isObject()
          Returns true for an object.
 boolean isResource()
          Returns true for an object.
 boolean isset()
          Returns true for a set type.
 boolean isString()
          Returns true for a StringValue.
 boolean isUnicode()
          Returns true for a UnicodeValue.
 Value key()
          Returns the current key
 int length()
          Returns the length as a string.
 Value lshift(Value rValue)
          Shifts left by the value.
 Value mul(long lValue)
          Multiplies to the following value.
 Value mul(Value rValue)
          Multiplies to the following value.
 Value neg()
          Negates the value.
 Value next()
          Returns the current value
 Value pop(Env env)
          Pops the top array element.
 Value postincr(int incr)
          Post-increment the following value.
 Value preincr(int incr)
          Pre-increment the following value.
 Value prev()
          Returns the previous value
 void print(Env env)
          Prints the value.
 Value put(Value value)
          Returns the array ref.
 Value put(Value index, Value value)
          Returns the array ref.
 Value putField(Env env, StringValue index, Value value)
          Sets the field.
 Value putThisField(Env env, StringValue index, Value value)
          Sets the field.
 Var putVar()
          Returns the array ref.
 Value remove(Value index)
          Return unset the value.
 Value reset()
          Returns the array pointer.
 Value rshift(Value rValue)
          Shifts right by the value.
 void serialize(Env env, java.lang.StringBuilder sb, SerializeMap map)
          Serializes the value.
 Value set(Value value)
          Sets the value.
 Value setCharValueAt(long index, Value value)
          Sets the character at an index
 void setValue(Value value)
           
 Value shuffle()
          Shuffles the array.
 Value sub(long rValue)
          Subtracts to the following value.
 Value sub(Value rValue)
          Subtracts to the following value.
 Value toArray()
          Converts to an array
 ArrayValue toArrayValue(Env env)
          Converts to an array
 Value toAutoArray()
          Converts to an array
 java.math.BigDecimal toBigDecimal()
          Converts to a Java BigDecimal.
 java.math.BigInteger toBigInteger()
          Converts to a Java BigInteger.
 StringValue toBinaryValue(Env env)
          Converts to a BinaryValue.
 boolean toBoolean()
          Converts to a boolean.
 double toDouble()
          Converts to a double.
 java.util.Calendar toJavaCalendar()
          Converts to a Java Calendar.
 java.util.Collection toJavaCollection(Env env, java.lang.Class type)
          Converts to a java Collection object.
 java.util.Date toJavaDate()
          Converts to a Java Date.
 java.util.List toJavaList(Env env, java.lang.Class type)
          Converts to a java List object.
 java.util.Map toJavaMap(Env env, java.lang.Class type)
          Converts to a java Map object.
 java.lang.Object toJavaObject()
          Converts to an object.
 java.lang.Object toJavaObject(Env env, java.lang.Class type)
          Converts to an object.
 java.lang.Object toJavaObjectNotNull(Env env, java.lang.Class type)
          Converts to an object.
 java.net.URL toJavaURL(Env env)
          Converts to a Java URL.
 Value toKey()
          Converts to a key.
 Value toLocalValue()
          Converts to a raw value.
 Value toLocalValueReadOnly()
          Converts to a function argument value that is never assigned or modified.
 long toLong()
          Converts to a long.
 Value toObject(Env env)
          Converts to an object.
 Value toRef()
          Converts to a variable reference (for function arguments)
 Value toRefValue()
          Converts to a function argument ref value, i.e.
 java.lang.String toString()
           
 StringValue toString(Env env)
          Converts to a string.
 StringValue toStringBuilder()
          Converts to a string builder
 StringValue toStringBuilder(Env env)
          Converts to a string builder
 StringValue toStringValue()
          Converts to a StringValue.
 StringValue toUnicodeValue(Env env)
          Converts to a UnicodeValue for marshaling, so it will create a UnicodeValue event when unicode.semantics=false.
 Value toValue()
          Converts to a raw value.
 Var toVar()
          Converts to a variable
 void unsetField(StringValue index)
          Unsets the field.
 java.lang.Object valuesToArray(Env env, java.lang.Class elementType)
          Takes the values of this array, unmarshalls them to objects of type elementType, and puts them in a java array.
 void varDumpImpl(Env env, WriteStream out, int depth, java.util.IdentityHashMap<Value,java.lang.String> valueSet)
           
 java.lang.Object writeReplace()
           
 
Methods inherited from class com.caucho.quercus.env.Value
addOne, call, 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, checkPrivate, checkProtected, clone, containsKey, copy, copy, copyArrayItem, copySaveFunArg, copyStringBuilder, copyTree, div, eqValue, findFunction, generate, geq, getBaseIterator, getCallableName, getCalledClass, getCount, getCountRecursive, getFieldArgRef, getHashCode, getKeyArray, getQuercusClass, getRef, getThisField, getThisFieldArg, getThisFieldArgRef, getThisFieldArray, getThisFieldObject, getThisFieldVar, getValueArray, gt, hashCode, increment, isA, isCallable, isEmpty, isFieldInit, isset, issetField, issetThisField, isVar, jsonEncode, keyExists, leq, lt, mod, nextIndex, pos, postdecr, postincr, predecr, preincr, print, printDepth, printJavaChar, printJavaString, printR, printRImpl, put, putField, putField, putObject, putThisField, serialize, setFieldInit, setJavaObject, sub_rev, subOne, toArgRef, toAutoObject, toBinaryValue, toBinaryValue, toBinaryValueMarshalCost, toBooleanMarshalCost, toByteArrayMarshalCost, toByteMarshalCost, toCallable, toChar, toCharArrayMarshalCost, toCharMarshalCost, toDebugString, toDoubleMarshalCost, toDoubleValue, toException, toFloatMarshalCost, toInputStream, toInt, toIntegerMarshalCost, toInternString, toJavaBoolean, toJavaByte, toJavaCharacter, toJavaDouble, toJavaFloat, toJavaInteger, toJavaLong, toJavaObjectMarshalCost, toJavaShort, toJavaString, toLocalRef, toLocalThis, toLocalVar, toLocalVarDeclAsRef, toLongMarshalCost, toLongValue, toShortMarshalCost, toStringBuilder, toStringBuilder, toStringMarshalCost, toStringValue, toStringValueMarshalCost, toUnicode, toUnicodeValue, toUnicodeValueMarshalCost, unsetArray, unsetThisArray, unsetThisField, varDump, varExport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaAdapterVar

public JavaAdapterVar(JavaAdapter adapter,
                      Value key)
Method Detail

getValue

public Value getValue()

setValue

public void setValue(Value value)

set

public Value set(Value value)
Sets the value.

Overrides:
set in class Value

getType

public java.lang.String getType()
Returns the type.

Overrides:
getType in class Value

getResourceType

public java.lang.String getResourceType()
Returns the type of the resource.

Overrides:
getResourceType in class Value

getValueType

public ValueType getValueType()
Returns the ValueType.

Overrides:
getValueType in class Value

getClassName

public java.lang.String getClassName()
Returns the class name.

Overrides:
getClassName in class Value

isObject

public boolean isObject()
Returns true for an object.

Overrides:
isObject in class Value

isResource

public boolean isResource()
Returns true for an object.

Overrides:
isResource in class Value

isset

public boolean isset()
Returns true for a set type.

Overrides:
isset in class Value

isA

public boolean isA(java.lang.String name)
Returns true for an implementation of a class

Overrides:
isA in class Value

isNull

public boolean isNull()
True for a number

Overrides:
isNull in class Value

isLongConvertible

public boolean isLongConvertible()
True for a long

Overrides:
isLongConvertible in class Value

isDoubleConvertible

public boolean isDoubleConvertible()
True to a double.

Overrides:
isDoubleConvertible in class Value

isNumberConvertible

public boolean isNumberConvertible()
True for a number

Overrides:
isNumberConvertible in class Value

isLong

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

Overrides:
isLong in class Value

isDouble

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

Overrides:
isDouble in class Value

isNumeric

public boolean isNumeric()
Returns true for is_numeric

Overrides:
isNumeric in class Value

isString

public boolean isString()
Returns true for a StringValue.

Overrides:
isString in class Value

isBinary

public boolean isBinary()
Returns true for a BinaryValue.

Overrides:
isBinary in class Value

isUnicode

public boolean isUnicode()
Returns true for a UnicodeValue.

Overrides:
isUnicode in class Value

isBoolean

public boolean isBoolean()
Returns true for a BooleanValue

Overrides:
isBoolean in class Value

isDefault

public boolean isDefault()
Returns true for a DefaultValue

Overrides:
isDefault in class Value

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toBoolean

public boolean toBoolean()
Converts to a boolean.

Overrides:
toBoolean in class Value

toLong

public long toLong()
Converts to a long.

Overrides:
toLong in class Value

toDouble

public double toDouble()
Converts to a double.

Overrides:
toDouble in class Value

toString

public StringValue toString(Env env)
Converts to a string.

Overrides:
toString in class Value
Parameters:
env -

toJavaObject

public java.lang.Object toJavaObject()
Converts to an object.

Overrides:
toJavaObject in class Value

toJavaObject

public java.lang.Object toJavaObject(Env env,
                                     java.lang.Class type)
Converts to an object.

Overrides:
toJavaObject in class Value

toJavaObjectNotNull

public java.lang.Object toJavaObjectNotNull(Env env,
                                            java.lang.Class type)
Converts to an object.

Overrides:
toJavaObjectNotNull in class Value

toJavaCollection

public java.util.Collection toJavaCollection(Env env,
                                             java.lang.Class type)
Converts to a java Collection object.

Overrides:
toJavaCollection in class Value

toJavaList

public java.util.List toJavaList(Env env,
                                 java.lang.Class type)
Converts to a java List object.

Overrides:
toJavaList in class Value

toJavaMap

public java.util.Map toJavaMap(Env env,
                               java.lang.Class type)
Converts to a java Map object.

Overrides:
toJavaMap in class Value

toArray

public Value toArray()
Converts to an array

Overrides:
toArray in class Value

toArrayValue

public ArrayValue toArrayValue(Env env)
Converts to an array

Overrides:
toArrayValue in class Value

toAutoArray

public Value toAutoArray()
Converts to an array

Overrides:
toAutoArray in class Value

toObject

public Value toObject(Env env)
Converts to an object.

Overrides:
toObject in class Value

toJavaCalendar

public java.util.Calendar toJavaCalendar()
Converts to a Java Calendar.

Overrides:
toJavaCalendar in class Value

toJavaDate

public java.util.Date toJavaDate()
Converts to a Java Date.

Overrides:
toJavaDate in class Value

toJavaURL

public java.net.URL toJavaURL(Env env)
Converts to a Java URL.

Overrides:
toJavaURL in class Value

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 BigInteger.

Overrides:
toBigInteger in class Value

appendTo

public StringValue appendTo(UnicodeBuilderValue sb)
Append to a string builder.

Overrides:
appendTo in class Value

appendTo

public StringValue appendTo(BinaryBuilderValue sb)
Append to a string builder.

Overrides:
appendTo in class Value

appendTo

public StringValue appendTo(StringBuilderValue sb)
Append to a string builder.

Overrides:
appendTo in class Value

appendTo

public StringValue appendTo(LargeStringBuilderValue sb)
Append to a string builder.

Overrides:
appendTo in class Value

toValue

public Value toValue()
Converts to a raw value.

Overrides:
toValue in class Value

toLocalValueReadOnly

public Value toLocalValueReadOnly()
Converts to a function argument value that is never assigned or modified.

Overrides:
toLocalValueReadOnly in class Value

toLocalValue

public Value toLocalValue()
Converts to a raw value.

Overrides:
toLocalValue in class Value

toRefValue

public Value toRefValue()
Converts to a function argument ref value, i.e. an argument declared as a reference, but not assigned

Overrides:
toRefValue in class Value

toVar

public Var toVar()
Converts to a variable

Overrides:
toVar in class Value

toKey

public Value toKey()
Converts to a key.

Overrides:
toKey in class Value

toStringValue

public StringValue toStringValue()
Description copied from class: Value
Converts to a StringValue.

Overrides:
toStringValue in class Value

toBinaryValue

public StringValue toBinaryValue(Env env)
Description copied from class: Value
Converts to a BinaryValue.

Overrides:
toBinaryValue in class Value

toUnicodeValue

public StringValue toUnicodeValue(Env env)
Description copied from class: Value
Converts to a UnicodeValue for marshaling, so it will create a UnicodeValue event when unicode.semantics=false.

Overrides:
toUnicodeValue in class Value

toStringBuilder

public StringValue toStringBuilder()
Description copied from class: Value
Converts to a string builder

Overrides:
toStringBuilder in class Value

toStringBuilder

public StringValue toStringBuilder(Env env)
Converts to a string builder

Overrides:
toStringBuilder in class Value

copy

public Value copy()
Copy the value.

Overrides:
copy in class Value

copyReturn

public Value copyReturn()
Copy the value as a return value.

Overrides:
copyReturn in class Value

toRef

public Value toRef()
Converts to a variable reference (for function arguments)

Overrides:
toRef in class Value

isArray

public boolean isArray()
Returns true for an array.

Overrides:
isArray in class Value

neg

public Value neg()
Negates the value.

Overrides:
neg in class Value

add

public Value add(Value rValue)
Adds to the following value.

Overrides:
add in class Value

add

public Value add(long rValue)
Adds to the following value.

Overrides:
add in class Value

preincr

public Value preincr(int incr)
Pre-increment the following value.

Overrides:
preincr in class Value

postincr

public Value postincr(int incr)
Post-increment the following value.

Overrides:
postincr in class Value

sub

public Value sub(Value rValue)
Subtracts to the following value.

Overrides:
sub in class Value

sub

public Value sub(long rValue)
Subtracts to the following value.

Overrides:
sub in class Value

mul

public Value mul(Value rValue)
Multiplies to the following value.

Overrides:
mul in class Value

mul

public Value mul(long lValue)
Multiplies to the following value.

Overrides:
mul in class Value

div

public Value div(Value rValue)
Divides the following value.

Overrides:
div in class Value

lshift

public Value lshift(Value rValue)
Shifts left by the value.

Overrides:
lshift in class Value

rshift

public Value rshift(Value rValue)
Shifts right by the value.

Overrides:
rshift in class Value

bitAnd

public Value bitAnd(Value rValue)
Binary And.

Overrides:
bitAnd in class Value

bitOr

public Value bitOr(Value rValue)
Binary or.

Overrides:
bitOr in class Value

bitXor

public Value bitXor(Value rValue)
Binary xor.

Overrides:
bitXor in class Value

abs

public Value abs()
Absolute value.

Overrides:
abs in class Value

eq

public boolean eq(Value rValue)
Returns true for equality

Overrides:
eq in class Value

eql

public boolean eql(Value rValue)
Returns true for equality

Overrides:
eql in class Value

cmp

public int cmp(Value rValue)
Compares the two values

Overrides:
cmp in class Value

length

public int length()
Returns the length as a string.

Overrides:
length in class Value

getSize

public int getSize()
Returns the array/object size

Overrides:
getSize in class Value

getIterator

public java.util.Iterator<java.util.Map.Entry<Value,Value>> getIterator(Env env)
Description copied from class: Value
Returns an iterator for the key => value pairs.

Overrides:
getIterator in class Value

getKeyIterator

public java.util.Iterator<Value> getKeyIterator(Env env)
Description copied from class: Value
Returns an iterator for the field keys. The default implementation uses the Iterator returned by Value.getIterator(Env); derived classes may override and provide a more efficient implementation.

Overrides:
getKeyIterator in class Value

getValueIterator

public java.util.Iterator<Value> getValueIterator(Env env)
Description copied from class: Value
Returns an iterator for the field values. The default implementation uses the Iterator returned by Value.getIterator(Env); derived classes may override and provide a more efficient implementation.

Overrides:
getValueIterator in class Value

getArray

public Value getArray()
Returns the array ref.

Overrides:
getArray in class Value

getObject

public Value getObject(Env env)
Returns the value, creating an object if unset.

Overrides:
getObject in class Value

get

public Value get(Value index)
Returns the array ref.

Overrides:
get in class Value

getVar

public Var getVar(Value index)
Returns the array ref.

Overrides:
getVar in class Value

getArg

public Value getArg(Value index,
                    boolean isTop)
Returns the array ref.

Overrides:
getArg in class Value

getArray

public Value getArray(Value index)
Returns the value, creating an object if unset.

Overrides:
getArray in class Value

getDirty

public Value getDirty(Value index)
Returns the value, doing a copy-on-write if needed.

Overrides:
getDirty in class Value

getObject

public Value getObject(Env env,
                       Value index)
Returns the value, creating an object if unset.

Overrides:
getObject in class Value

put

public Value put(Value index,
                 Value value)
Returns the array ref.

Overrides:
put in class Value

put

public Value put(Value value)
Returns the array ref.

Overrides:
put in class Value

putVar

public Var putVar()
Returns the array ref.

Overrides:
putVar in class Value

append

public Value append(Value index,
                    Value value)
Sets the array value, returning the new array, e.g. to handle string update ($a[0] = 'A').

Overrides:
append in class Value

remove

public Value remove(Value index)
Return unset the value.

Overrides:
remove in class Value

getField

public Value getField(Env env,
                      StringValue index)
Returns the field ref.

Overrides:
getField in class Value

getFieldVar

public Var getFieldVar(Env env,
                       StringValue index)
Returns the field ref.

Overrides:
getFieldVar in class Value

getFieldArg

public Value getFieldArg(Env env,
                         StringValue index,
                         boolean isTop)
Returns the array ref.

Overrides:
getFieldArg in class Value

getFieldArray

public Value getFieldArray(Env env,
                           StringValue index)
Returns the field value as an array

Overrides:
getFieldArray in class Value

getFieldObject

public Value getFieldObject(Env env,
                            StringValue index)
Returns the field value as an object

Overrides:
getFieldObject in class Value

putField

public Value putField(Env env,
                      StringValue index,
                      Value value)
Sets the field.

Overrides:
putField in class Value

initField

public void initField(StringValue key,
                      Value value,
                      FieldVisibility visibility)
Initializes a new field, does not call __set if it is defined.

Overrides:
initField in class Value

putThisField

public Value putThisField(Env env,
                          StringValue index,
                          Value value)
Sets the field.

Overrides:
putThisField in class Value

unsetField

public void unsetField(StringValue index)
Unsets the field.

Overrides:
unsetField in class Value

valuesToArray

public java.lang.Object valuesToArray(Env env,
                                      java.lang.Class elementType)
Takes the values of this array, unmarshalls them to objects of type elementType, and puts them in a java array.

Overrides:
valuesToArray in class Value

charValueAt

public Value charValueAt(long index)
Returns the character at an index

Overrides:
charValueAt in class Value

setCharValueAt

public Value setCharValueAt(long index,
                            Value value)
Sets the character at an index

Overrides:
setCharValueAt in class Value

hasCurrent

public boolean hasCurrent()
Returns true if there are more elements.

Overrides:
hasCurrent in class Value

key

public Value key()
Returns the current key

Overrides:
key in class Value

current

public Value current()
Returns the current value

Overrides:
current in class Value

next

public Value next()
Returns the current value

Overrides:
next in class Value

prev

public Value prev()
Returns the previous value

Overrides:
prev in class Value

end

public Value end()
Returns the end value.

Overrides:
end in class Value

reset

public Value reset()
Returns the array pointer.

Overrides:
reset in class Value

shuffle

public Value shuffle()
Shuffles the array.

Overrides:
shuffle in class Value

pop

public Value pop(Env env)
Pops the top array element.

Overrides:
pop in class Value

callMethod

public Value callMethod(Env env,
                        StringValue methodName,
                        int hash,
                        Value[] args)
Evaluates a method.

Overrides:
callMethod in class Value

callMethod

public Value callMethod(Env env,
                        StringValue methodName,
                        int hash)
Evaluates a method.

Overrides:
callMethod in class Value

callMethod

public Value callMethod(Env env,
                        StringValue methodName,
                        int hash,
                        Value a0)
Evaluates a method.

Overrides:
callMethod in class Value

callMethod

public Value callMethod(Env env,
                        StringValue methodName,
                        int hash,
                        Value a0,
                        Value a1)
Evaluates a method.

Overrides:
callMethod in class Value

callMethod

public Value callMethod(Env env,
                        StringValue methodName,
                        int hash,
                        Value a0,
                        Value a1,
                        Value a2)
Evaluates a method with 3 args.

Overrides:
callMethod in class Value

callMethod

public Value callMethod(Env env,
                        StringValue methodName,
                        int hash,
                        Value a0,
                        Value a1,
                        Value a2,
                        Value a3)
Evaluates a method with 4 args.

Overrides:
callMethod in class Value

callMethod

public Value callMethod(Env env,
                        StringValue methodName,
                        int hash,
                        Value a0,
                        Value a1,
                        Value a2,
                        Value a3,
                        Value a4)
Evaluates a method with 5 args.

Overrides:
callMethod in class Value

callMethodRef

public Value callMethodRef(Env env,
                           StringValue methodName,
                           int hash,
                           Value[] args)
Evaluates a method.

Overrides:
callMethodRef in class Value

callMethodRef

public Value callMethodRef(Env env,
                           StringValue methodName,
                           int hash)
Evaluates a method.

Overrides:
callMethodRef in class Value

callMethodRef

public Value callMethodRef(Env env,
                           StringValue methodName,
                           int hash,
                           Value a0)
Evaluates a method.

Overrides:
callMethodRef in class Value

callMethodRef

public Value callMethodRef(Env env,
                           StringValue methodName,
                           int hash,
                           Value a0,
                           Value a1)
Evaluates a method.

Overrides:
callMethodRef in class Value

callMethodRef

public Value callMethodRef(Env env,
                           StringValue methodName,
                           int hash,
                           Value a0,
                           Value a1,
                           Value a2)
Evaluates a method with 3 args.

Overrides:
callMethodRef in class Value

callMethodRef

public Value callMethodRef(Env env,
                           StringValue methodName,
                           int hash,
                           Value a0,
                           Value a1,
                           Value a2,
                           Value a3)
Evaluates a method with 4 args.

Overrides:
callMethodRef in class Value

callMethodRef

public Value callMethodRef(Env env,
                           StringValue methodName,
                           int hash,
                           Value a0,
                           Value a1,
                           Value a2,
                           Value a3,
                           Value a4)
Evaluates a method with 5 args.

Overrides:
callMethodRef in class Value

print

public void print(Env env)
Prints the value.

Overrides:
print in class Value

serialize

public void serialize(Env env,
                      java.lang.StringBuilder sb,
                      SerializeMap map)
Serializes the value.

Overrides:
serialize in class Value
sb - holds result of serialization
map - holds reference indexes

varDumpImpl

public void varDumpImpl(Env env,
                        WriteStream out,
                        int depth,
                        java.util.IdentityHashMap<Value,java.lang.String> valueSet)
                 throws java.io.IOException
Overrides:
varDumpImpl in class Value
Throws:
java.io.IOException

writeReplace

public java.lang.Object writeReplace()