public class NullValue extends Value implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static NullValue |
NULL |
L, NULL_ARGS, NULL_VALUE_ARRAY
Modifier | Constructor and Description |
---|---|
protected |
NullValue() |
Modifier and Type | Method and Description |
---|---|
Value |
add(long lLong)
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 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 NullValue |
create()
Returns the null value singleton.
|
boolean |
eq(Value rValue)
Returns true for equality
|
boolean |
eql(Value rValue)
Returns true for equality
|
void |
generate(java.io.PrintWriter out)
Generates code to recreate the expression.
|
Value |
getArray()
Returns a new array.
|
int |
getCount(Env env)
Returns the count, as returned by the global php count() function
|
Value |
getObject(Env env)
Returns a new object.
|
int |
getSize()
Returns the array size.
|
java.lang.String |
getType()
Returns the type.
|
ValueType |
getValueType()
Returns the ValueType.
|
int |
hashCode() |
boolean |
isEmpty()
Returns true if the value is empty
|
boolean |
isNull()
Returns true for a null.
|
boolean |
isset()
Returns true for a set type.
|
void |
jsonEncode(Env env,
JsonEncodeContext context,
StringValue sb)
Encodes the value in JSON.
|
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 |
toArgRef()
Converts to a reference variable
|
ArrayValue |
toArray()
Converts to an array
|
ArrayValue |
toArrayValue(Env env)
Casts to an array.
|
Value |
toAutoArray()
Converts to an array if null.
|
Value |
toAutoObject(Env env)
Converts to an object if null.
|
java.math.BigDecimal |
toBigDecimal()
Converts to a Java BigDecimal.
|
java.math.BigInteger |
toBigInteger()
Converts to a Java BigInteger.
|
boolean |
toBoolean()
Converts to a boolean.
|
int |
toBooleanMarshalCost()
Cost to convert to a boolean
|
int |
toByteMarshalCost()
Cost to convert to a byte
|
java.lang.String |
toDebugString() |
double |
toDouble()
Converts to a double.
|
int |
toDoubleMarshalCost()
Cost to convert to a double
|
int |
toIntegerMarshalCost()
Cost to convert to an integer
|
java.lang.Boolean |
toJavaBoolean()
Converts to a java boolean object.
|
java.lang.Byte |
toJavaByte()
Converts to a java Byte object.
|
java.util.Calendar |
toJavaCalendar()
Converts to a Java Calendar.
|
java.lang.Character |
toJavaCharacter()
Converts to a java Character object.
|
java.util.Collection |
toJavaCollection(Env env,
java.lang.Class type)
Converts to a java object.
|
java.util.Date |
toJavaDate()
Converts to a Java Date.
|
java.lang.Double |
toJavaDouble()
Converts to a java Double object.
|
java.lang.Enum |
toJavaEnum(Env env,
java.lang.Class cls)
Converts to a Java Enum.
|
java.lang.Float |
toJavaFloat()
Converts to a java Float object.
|
java.lang.Integer |
toJavaInteger()
Converts to a java Integer object.
|
java.util.List |
toJavaList(Env env,
java.lang.Class type)
Converts to a java object.
|
java.lang.Long |
toJavaLong()
Converts to a java Long 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.
|
java.lang.Short |
toJavaShort()
Converts to a java Short object.
|
java.lang.String |
toJavaString()
Converts to a java String object.
|
java.net.URL |
toJavaURL(Env env)
Converts to a Java URL.
|
Value |
toKey()
Converts to a key.
|
long |
toLong()
Converts to a long.
|
int |
toLongMarshalCost()
Cost to convert to a long
|
Value |
toObject(Env env)
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
|
StringValue |
toStringValue()
Converts to a StringValue.
|
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) |
protected void |
varExportImpl(StringValue sb,
int level)
Exports the value.
|
abs, add, addOne, bitAnd, bitOr, bitXor, call, call, call, call, call, call, call, callCopy, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callRef, callRef, callRef, callRef, callRef, callRef, callRef, charValueAt, checkPrivate, checkProtected, clone, containsKey, copy, copy, copy, copyArrayItem, copyReturn, copySaveFunArg, copyStringBuilder, copyTree, current, div, div, end, eqValue, findFunction, findQuercusClass, geq, get, get, getArg, getArgTail, getArray, getBaseIterator, getCallableName, getCalledClass, getClassName, getCountRecursive, getDirty, getField, getFieldArg, getFieldArgRef, getFieldArray, getFieldObject, getFieldVar, getHashCode, getIterator, getKeyArray, getKeyIterator, getObject, getObjectHash, getQuercusClass, getRef, getResourceType, getStaticFieldValue, getStaticFieldVar, getThisField, getThisFieldArg, getThisFieldArgRef, getThisFieldArray, getThisFieldObject, getThisFieldVar, getValueArray, getValueIterator, getVar, gt, hasCurrent, increment, initField, initField, initField, initIncompleteField, isA, isA, isArray, isBinary, isBoolean, isCallable, isDefault, isDouble, isDoubleConvertible, isEmpty, isFieldExists, isFieldInit, isLong, isLongConvertible, isNumberConvertible, isNumeric, isObject, isResource, isset, issetField, 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, printDepth, printJavaChar, printJavaString, printR, printRImpl, put, put, put, putArray, putField, putField, putField, putObject, putThisField, putThisField, putThisFieldArray, putVar, remove, reset, rshift, serialize, set, setCharValueAt, setFieldInit, setJavaObject, setStaticFieldRef, shuffle, sub_rev, sub, subOne, toBinaryValue, toBinaryValue, toBinaryValue, toBinaryValueMarshalCost, toByteArrayMarshalCost, toCallable, toChar, toCharArrayMarshalCost, toCharMarshalCost, toDouble, toDouble, toDouble, toDouble, toDoubleValue, toException, toFloatMarshalCost, toInputStream, toInt, toInternString, toJavaObjectMarshalCost, toLocalRef, toLocalThis, toLocalValue, toLocalValueReadOnly, toLocalVar, toLocalVarDeclAsRef, toLong, toLong, toLong, toLong, toLongValue, toRef, toRefValue, toString, toStringBuilder, toStringBuilder, toStringBuilder, toStringMarshalCost, toStringValue, toStringValueMarshalCost, toUnicode, toUnicodeValue, toUnicodeValue, toUnicodeValueMarshalCost, toValue, toVar, unsetArray, unsetField, unsetThisArray, unsetThisField, unsetThisPrivateField, varDump, varExport
public static final NullValue NULL
public static NullValue create()
public ValueType getValueType()
getValueType
in class Value
public boolean isEmpty()
public int toDoubleMarshalCost()
toDoubleMarshalCost
in class Value
public int toLongMarshalCost()
toLongMarshalCost
in class Value
public int toIntegerMarshalCost()
toIntegerMarshalCost
in class Value
public int toShortMarshalCost()
toShortMarshalCost
in class Value
public int toByteMarshalCost()
toByteMarshalCost
in class Value
public int toBooleanMarshalCost()
toBooleanMarshalCost
in class Value
public java.lang.String toString()
toString
in class java.lang.Object
env
- public StringValue toStringBuilder(Env env)
toStringBuilder
in class Value
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.lang.Boolean toJavaBoolean()
toJavaBoolean
in class Value
public java.lang.Byte toJavaByte()
toJavaByte
in class Value
public java.lang.Short toJavaShort()
toJavaShort
in class Value
public java.lang.Integer toJavaInteger()
toJavaInteger
in class Value
public java.lang.Long toJavaLong()
toJavaLong
in class Value
public java.lang.Float toJavaFloat()
toJavaFloat
in class Value
public java.lang.Double toJavaDouble()
toJavaDouble
in class Value
public java.lang.Character toJavaCharacter()
toJavaCharacter
in class Value
public java.lang.String toJavaString()
toJavaString
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 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.lang.Enum toJavaEnum(Env env, java.lang.Class cls)
toJavaEnum
in class Value
public java.math.BigDecimal toBigDecimal()
toBigDecimal
in class Value
public java.math.BigInteger toBigInteger()
toBigInteger
in class Value
public java.lang.Object valuesToArray(Env env, java.lang.Class elementType)
valuesToArray
in class Value
public ArrayValue toArray()
public Value toAutoArray()
toAutoArray
in class Value
public Value append(Value index, Value value)
public ArrayValue toArrayValue(Env env)
toArrayValue
in class Value
public StringValue toStringValue()
toStringValue
in class Value
public int getCount(Env env)
Value
public Value toAutoObject(Env env)
toAutoObject
in class Value
public Value toArgRef()
public void print(Env env)
public void serialize(Env env, java.lang.StringBuilder sb)
protected void varExportImpl(StringValue sb, int level)
varExportImpl
in class Value
public void jsonEncode(Env env, JsonEncodeContext context, StringValue sb)
jsonEncode
in class Value
public StringValue appendTo(BinaryBuilderValue sb)
public StringValue appendTo(UnicodeBuilderValue sb)
public StringValue appendTo(StringBuilderValue sb)
public StringValue appendTo(LargeStringBuilderValue sb)
public void generate(java.io.PrintWriter out) throws java.io.IOException
public java.lang.String toDebugString()
toDebugString
in class Value
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