public class JavaAdapterVar extends Value
L, NULL_ARGS, NULL_VALUE_ARRAY
Constructor and Description |
---|
JavaAdapterVar(JavaAdapter adapter,
Value key) |
Modifier and Type | Method and Description |
---|---|
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(Env env,
StringValue name,
StringValue canonicalName,
Value value)
Initializes a new field, does not call __set if it is defined.
|
boolean |
isA(Env env,
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.
|
ArrayValue |
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() |
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, findQuercusClass, generate, geq, get, getArgTail, getBaseIterator, getCallableName, getCalledClass, getCount, getCountRecursive, getFieldArgRef, getHashCode, getKeyArray, getObjectHash, getQuercusClass, getRef, getStaticFieldValue, getStaticFieldVar, getThisField, getThisFieldArg, getThisFieldArgRef, getThisFieldArray, getThisFieldObject, getThisFieldVar, getValueArray, gt, hashCode, increment, initField, initField, initIncompleteField, isA, isCallable, isEmpty, isEmpty, isFieldExists, isFieldInit, isset, issetField, issetThisField, isVar, jsonEncode, keyExists, leq, lt, mod, nextIndex, pos, postdecr, postincr, predecr, preincr, print, printDepth, printJavaChar, printJavaString, printR, printRImpl, put, putArray, putField, putField, putObject, putThisField, putThisFieldArray, serialize, setFieldInit, setJavaObject, setStaticFieldRef, sub_rev, subOne, toArgRef, toAutoObject, toBinaryValue, toBinaryValue, toBinaryValueMarshalCost, toBooleanMarshalCost, toByteArrayMarshalCost, toByteMarshalCost, toCallable, toChar, toCharArrayMarshalCost, toCharMarshalCost, toDebugString, toDouble, toDouble, toDouble, toDouble, toDoubleMarshalCost, toDoubleValue, toException, toFloatMarshalCost, toInputStream, toInt, toIntegerMarshalCost, toInternString, toJavaBoolean, toJavaByte, toJavaCharacter, toJavaDouble, toJavaEnum, toJavaFloat, toJavaInteger, toJavaLong, toJavaObjectMarshalCost, toJavaShort, toJavaString, toLocalRef, toLocalThis, toLocalVar, toLocalVarDeclAsRef, toLong, toLong, toLong, toLong, toLongMarshalCost, toLongValue, toShortMarshalCost, toStringBuilder, toStringBuilder, toStringMarshalCost, toStringValue, toStringValueMarshalCost, toUnicode, toUnicodeValue, toUnicodeValueMarshalCost, unsetArray, unsetThisArray, unsetThisField, unsetThisPrivateField, varDump, varExport, varExportImpl
public JavaAdapterVar(JavaAdapter adapter, Value key)
public Value getValue()
public void setValue(Value value)
public java.lang.String getResourceType()
getResourceType
in class Value
public ValueType getValueType()
getValueType
in class Value
public java.lang.String getClassName()
getClassName
in class Value
public boolean isResource()
isResource
in class Value
public boolean isA(Env env, java.lang.String name)
public boolean isLongConvertible()
isLongConvertible
in class Value
public boolean isDoubleConvertible()
isDoubleConvertible
in class Value
public boolean isNumberConvertible()
isNumberConvertible
in class Value
public boolean isDouble()
public boolean isNumeric()
public boolean isString()
public boolean isBinary()
public boolean isUnicode()
public boolean isBoolean()
public boolean isDefault()
public java.lang.String toString()
toString
in class java.lang.Object
public StringValue toString(Env env)
public java.lang.Object toJavaObject()
toJavaObject
in class Value
public java.lang.Object toJavaObject(Env env, java.lang.Class type)
toJavaObject
in class Value
public java.lang.Object toJavaObjectNotNull(Env env, java.lang.Class type)
toJavaObjectNotNull
in class Value
public java.util.Collection toJavaCollection(Env env, java.lang.Class type)
toJavaCollection
in class Value
public java.util.List toJavaList(Env env, java.lang.Class type)
toJavaList
in class Value
public java.util.Map toJavaMap(Env env, java.lang.Class type)
public ArrayValue toArray()
public ArrayValue toArrayValue(Env env)
toArrayValue
in class Value
public Value toAutoArray()
toAutoArray
in class Value
public java.util.Calendar toJavaCalendar()
toJavaCalendar
in class Value
public java.util.Date toJavaDate()
toJavaDate
in class Value
public java.net.URL toJavaURL(Env env)
public java.math.BigDecimal toBigDecimal()
toBigDecimal
in class Value
public java.math.BigInteger toBigInteger()
toBigInteger
in class Value
public StringValue appendTo(UnicodeBuilderValue sb)
public StringValue appendTo(BinaryBuilderValue sb)
public StringValue appendTo(StringBuilderValue sb)
public StringValue appendTo(LargeStringBuilderValue sb)
public Value toLocalValueReadOnly()
toLocalValueReadOnly
in class Value
public Value toLocalValue()
toLocalValue
in class Value
public Value toRefValue()
toRefValue
in class Value
public StringValue toStringValue()
Value
toStringValue
in class Value
public StringValue toBinaryValue(Env env)
Value
toBinaryValue
in class Value
public StringValue toUnicodeValue(Env env)
Value
toUnicodeValue
in class Value
public StringValue toStringBuilder()
Value
toStringBuilder
in class Value
public StringValue toStringBuilder(Env env)
toStringBuilder
in class Value
public Value copyReturn()
copyReturn
in class Value
public Value toRef()
public Value preincr(int incr)
public Value postincr(int incr)
public java.util.Iterator<java.util.Map.Entry<Value,Value>> getIterator(Env env)
Value
getIterator
in class Value
public java.util.Iterator<Value> getKeyIterator(Env env)
Value
Value.getIterator(Env)
; derived classes may override and
provide a more efficient implementation.getKeyIterator
in class Value
public java.util.Iterator<Value> getValueIterator(Env env)
Value
Value.getIterator(Env)
; derived classes may override and
provide a more efficient implementation.getValueIterator
in class Value
public Value getObject(Env env, Value index)
public Value append(Value index, Value value)
public Value getField(Env env, StringValue index)
public Var getFieldVar(Env env, StringValue index)
getFieldVar
in class Value
public Value getFieldArg(Env env, StringValue index, boolean isTop)
getFieldArg
in class Value
public Value getFieldArray(Env env, StringValue index)
getFieldArray
in class Value
public Value getFieldObject(Env env, StringValue index)
getFieldObject
in class Value
public Value putField(Env env, StringValue index, Value value)
public void initField(Env env, StringValue name, StringValue canonicalName, Value value)
public Value putThisField(Env env, StringValue index, Value value)
putThisField
in class Value
public void unsetField(StringValue index)
unsetField
in class Value
public java.lang.Object valuesToArray(Env env, java.lang.Class elementType)
valuesToArray
in class Value
public Value charValueAt(long index)
charValueAt
in class Value
public Value setCharValueAt(long index, Value value)
setCharValueAt
in class Value
public boolean hasCurrent()
hasCurrent
in class Value
public Value callMethod(Env env, StringValue methodName, int hash, Value[] args)
callMethod
in class Value
public Value callMethod(Env env, StringValue methodName, int hash)
callMethod
in class Value
public Value callMethod(Env env, StringValue methodName, int hash, Value a0)
callMethod
in class Value
public Value callMethod(Env env, StringValue methodName, int hash, Value a0, Value a1)
callMethod
in class Value
public Value callMethod(Env env, StringValue methodName, int hash, Value a0, Value a1, Value a2)
callMethod
in class Value
public Value callMethod(Env env, StringValue methodName, int hash, Value a0, Value a1, Value a2, Value a3)
callMethod
in class Value
public Value callMethod(Env env, StringValue methodName, int hash, Value a0, Value a1, Value a2, Value a3, Value a4)
callMethod
in class Value
public Value callMethodRef(Env env, StringValue methodName, int hash, Value[] args)
callMethodRef
in class Value
public Value callMethodRef(Env env, StringValue methodName, int hash)
callMethodRef
in class Value
public Value callMethodRef(Env env, StringValue methodName, int hash, Value a0)
callMethodRef
in class Value
public Value callMethodRef(Env env, StringValue methodName, int hash, Value a0, Value a1)
callMethodRef
in class Value
public Value callMethodRef(Env env, StringValue methodName, int hash, Value a0, Value a1, Value a2)
callMethodRef
in class Value
public Value callMethodRef(Env env, StringValue methodName, int hash, Value a0, Value a1, Value a2, Value a3)
callMethodRef
in class Value
public Value callMethodRef(Env env, StringValue methodName, int hash, Value a0, Value a1, Value a2, Value a3, Value a4)
callMethodRef
in class Value
public void serialize(Env env, java.lang.StringBuilder sb, SerializeMap map)
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
public java.lang.Object writeReplace()