public class JavaValue extends ObjectValue implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected Env |
_env |
_className, _incompleteObjectName, _quercusClass
L, NULL_ARGS, NULL_VALUE_ARRAY
Constructor and Description |
---|
JavaValue(Env env,
java.lang.Object object,
JavaClassDef def) |
JavaValue(Env env,
java.lang.Object object,
JavaClassDef def,
QuercusClass qClass) |
Modifier and Type | Method and Description |
---|---|
Value |
callMethod(Env env,
StringValue methodName,
int hash)
Evaluates a method.
|
Value |
callMethod(Env env,
StringValue methodName,
int hash,
Value a1)
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 a1,
Value a2)
Evaluates a method.
|
Value |
callMethod(Env env,
StringValue methodName,
int hash,
Value a1,
Value a2,
Value a3)
Evaluates a method.
|
Value |
callMethod(Env env,
StringValue methodName,
int hash,
Value a1,
Value a2,
Value a3,
Value a4)
Evaluates a method.
|
Value |
callMethod(Env env,
StringValue methodName,
int hash,
Value a1,
Value a2,
Value a3,
Value a4,
Value a5)
Evaluates a method.
|
Value |
callMethodRef(Env env,
StringValue methodName,
int hash)
Evaluates a method.
|
Value |
callMethodRef(Env env,
StringValue methodName,
int hash,
Value a1)
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 a1,
Value a2)
Evaluates a method.
|
Value |
callMethodRef(Env env,
StringValue methodName,
int hash,
Value a1,
Value a2,
Value a3)
Evaluates a method.
|
Value |
callMethodRef(Env env,
StringValue methodName,
int hash,
Value a1,
Value a2,
Value a3,
Value a4)
Evaluates a method.
|
Value |
callMethodRef(Env env,
StringValue methodName,
int hash,
Value a1,
Value a2,
Value a3,
Value a4,
Value a5)
Evaluates a method.
|
Value |
clone(Env env)
Clone for the clone keyword
|
int |
cmpObject(ObjectValue rValue)
Compare two objects
|
java.util.Set<? extends java.util.Map.Entry<Value,Value>> |
entrySet()
Returns a Set of entries.
|
java.lang.String |
getClassName()
Returns the value's class name.
|
Value |
getField(Env env,
StringValue name)
Returns the field value.
|
protected JavaClassDef |
getJavaClassDef() |
java.lang.String |
getType()
Returns the type.
|
boolean |
isObject()
Returns true for an object.
|
boolean |
isResource()
Returns true for a resource.
|
boolean |
issetField(Env env,
StringValue name)
Returns true if the field is set
|
void |
jsonEncode(Env env,
JsonEncodeContext context,
StringValue sb)
Encodes the value in JSON.
|
protected void |
printRImpl(Env env,
WriteStream out,
int depth,
java.util.IdentityHashMap<Value,java.lang.String> valueSet) |
Value |
putField(Env env,
StringValue name,
Value value)
Sets the field value.
|
void |
serialize(Env env,
java.lang.StringBuilder sb,
SerializeMap map)
Serializes the value.
|
ArrayValue |
toArray()
Converts to an array.
|
double |
toDouble()
Converts to a double.
|
static double |
toDouble(java.lang.String s)
Converts to a double.
|
java.io.InputStream |
toInputStream()
Converts to an object.
|
java.util.Map<?,?> |
toJavaMap(Env env,
java.lang.Class<?> type)
Converts to a java object.
|
java.lang.Object |
toJavaObject()
Converts to an object.
|
java.lang.Object |
toJavaObject(Env env,
java.lang.Class<?> type)
Converts to a java object.
|
java.lang.Object |
toJavaObjectNotNull(Env env,
java.lang.Class<?> type)
Converts to a java object.
|
Value |
toKey()
Converts to a key.
|
long |
toLong()
Converts to a double.
|
java.lang.String |
toString()
Converts to a string.
|
StringValue |
toString(Env env)
Converts to a string.
|
protected void |
varDumpImpl(Env env,
WriteStream out,
int depth,
java.util.IdentityHashMap<Value,java.lang.String> valueSet) |
append, appendTo, appendTo, appendTo, appendTo, call, cleanup, eq, findFunction, findQuercusClass, get, getArgs, getCallbackName, getCount, getDeclComment, getDeclEndLine, getDeclFileName, getDeclStartLine, getIncompleteObjectName, getIterator, getKeyIterator, getMethod, getName, getObjectHash, getParentClassName, getQuercusClass, getStaticFieldValue, getStaticFieldVar, getValueIterator, initField, initIncompleteField, initObject, isA, isCallable, isEmpty, isIncompleteObject, isInternal, isReturnsReference, isset, isValid, put, put, putField, putField, putField, putField, putField, putField, remove, setClassName, setIncompleteObjectName, setQuercusClass, setStaticFieldRef, toAutoArray, toBoolean, toCallable, toJavaEnum, varDumpObject
abs, add, add, addOne, bitAnd, bitOr, bitXor, 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, charValueAt, checkPrivate, checkProtected, cmp, containsKey, copy, copy, copy, copyArrayItem, copyReturn, copySaveFunArg, copyStringBuilder, copyTree, current, div, div, end, eql, eqValue, generate, geq, get, getArg, getArgTail, getArray, getArray, getBaseIterator, getCallableName, getCalledClass, getCountRecursive, getDirty, getFieldArg, getFieldArgRef, getFieldArray, getFieldObject, getFieldVar, getHashCode, getKeyArray, getObject, getObject, getRef, getResourceType, getSize, getThisField, getThisFieldArg, getThisFieldArgRef, getThisFieldArray, getThisFieldObject, getThisFieldVar, getValueArray, getValueType, getVar, gt, hasCurrent, hashCode, increment, initField, initField, isA, isArray, isBinary, isBoolean, isDefault, isDouble, isDoubleConvertible, isEmpty, isFieldExists, isFieldInit, isLong, isLongConvertible, isNull, isNumberConvertible, isNumeric, isset, issetThisField, isString, isUnicode, isVar, key, keyExists, length, leq, lshift, lt, mod, mul, mul, neg, next, nextIndex, pop, pos, postdecr, postincr, postincr, predecr, preincr, preincr, prev, print, print, printDepth, printJavaChar, printJavaString, printR, put, putArray, putField, putObject, putThisField, putThisField, putThisFieldArray, putVar, reset, rshift, serialize, set, setCharValueAt, setFieldInit, setJavaObject, shuffle, sub_rev, sub, sub, subOne, toArgRef, toArrayValue, toAutoObject, toBigDecimal, toBigInteger, toBinaryValue, toBinaryValue, toBinaryValue, toBinaryValueMarshalCost, toBooleanMarshalCost, toByteArrayMarshalCost, toByteMarshalCost, toChar, toCharArrayMarshalCost, toCharMarshalCost, toDebugString, toDouble, toDouble, toDouble, toDouble, toDoubleMarshalCost, toDoubleValue, toException, toFloatMarshalCost, toInt, toIntegerMarshalCost, toInternString, toJavaBoolean, toJavaByte, toJavaCalendar, toJavaCharacter, toJavaCollection, toJavaDate, toJavaDouble, toJavaFloat, toJavaInteger, toJavaList, toJavaLong, toJavaObjectMarshalCost, toJavaShort, toJavaString, toJavaURL, toLocalRef, toLocalThis, toLocalValue, toLocalValueReadOnly, toLocalVar, toLocalVarDeclAsRef, toLong, toLong, toLong, toLong, toLongMarshalCost, toLongValue, toObject, toRef, toRefValue, toShortMarshalCost, toStringBuilder, toStringBuilder, toStringBuilder, toStringBuilder, toStringMarshalCost, toStringValue, toStringValue, toStringValueMarshalCost, toUnicode, toUnicodeValue, toUnicodeValue, toUnicodeValueMarshalCost, toValue, toVar, unsetArray, unsetField, unsetThisArray, unsetThisField, unsetThisPrivateField, valuesToArray, varDump, varExport, varExportImpl
protected Env _env
public JavaValue(Env env, java.lang.Object object, JavaClassDef def)
public JavaValue(Env env, java.lang.Object object, JavaClassDef def, QuercusClass qClass)
protected JavaClassDef getJavaClassDef()
public java.lang.String getClassName()
ObjectValue
getClassName
in class ObjectValue
public long toLong()
toLong
in class ObjectValue
public double toDouble()
toDouble
in class ObjectValue
public static double toDouble(java.lang.String s)
public StringValue toString(Env env)
Value
public ArrayValue toArray()
protected void printRImpl(Env env, WriteStream out, int depth, java.util.IdentityHashMap<Value,java.lang.String> valueSet) throws java.io.IOException
printRImpl
in class Value
java.io.IOException
protected 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 Value getField(Env env, StringValue name)
public Value putField(Env env, StringValue name, Value value)
public boolean issetField(Env env, StringValue name)
issetField
in class Value
public java.util.Set<? extends java.util.Map.Entry<Value,Value>> entrySet()
ObjectValue
entrySet
in class ObjectValue
public int cmpObject(ObjectValue rValue)
ObjectValue
cmpObject
in class ObjectValue
public boolean isObject()
isObject
in class ObjectValue
public boolean isResource()
isResource
in class Value
public java.lang.String getType()
getType
in class ObjectValue
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 a1)
callMethod
in class Value
public Value callMethod(Env env, StringValue methodName, int hash, Value a1, Value a2)
callMethod
in class Value
public Value callMethod(Env env, StringValue methodName, int hash, Value a1, Value a2, Value a3)
callMethod
in class Value
public Value callMethod(Env env, StringValue methodName, int hash, Value a1, Value a2, Value a3, Value a4)
callMethod
in class Value
public Value callMethod(Env env, StringValue methodName, int hash, Value a1, Value a2, Value a3, Value a4, Value a5)
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 a1)
callMethodRef
in class Value
public Value callMethodRef(Env env, StringValue methodName, int hash, Value a1, Value a2)
callMethodRef
in class Value
public Value callMethodRef(Env env, StringValue methodName, int hash, Value a1, Value a2, Value a3)
callMethodRef
in class Value
public Value callMethodRef(Env env, StringValue methodName, int hash, Value a1, Value a2, Value a3, Value a4)
callMethodRef
in class Value
public Value callMethodRef(Env env, StringValue methodName, int hash, Value a1, Value a2, Value a3, Value a4, Value a5)
callMethodRef
in class Value
public void serialize(Env env, java.lang.StringBuilder sb, SerializeMap map)
public void jsonEncode(Env env, JsonEncodeContext context, StringValue sb)
jsonEncode
in class ObjectValue
public java.lang.String toString()
public java.lang.Object toJavaObject()
toJavaObject
in class Value
public final 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.Map<?,?> toJavaMap(Env env, java.lang.Class<?> type)
public java.io.InputStream toInputStream()
toInputStream
in class Value