public class DefaultValue extends NullValue
Modifier and Type | Field and Description |
---|---|
static DefaultValue |
DEFAULT |
L, NULL_ARGS, NULL_VALUE_ARRAY
Modifier and Type | Method and Description |
---|---|
static DefaultValue |
create()
Returns the null value singleton.
|
void |
generate(java.io.PrintWriter out)
Generates code to recreate the expression.
|
void |
generateLong(java.io.PrintWriter out)
Generates code to recreate the expression.
|
void |
generateString(java.io.PrintWriter out)
Generates code to recreate the expression.
|
boolean |
isDefault()
Returns true for a DefaultValue
|
void |
print(Env env)
Prints the value.
|
boolean |
toBoolean()
Converts to a boolean.
|
Callable |
toCallable(Env env,
boolean isOptional)
Converts to a callable
|
double |
toDouble()
Converts to a double.
|
long |
toLong()
Converts to a long.
|
java.lang.Object |
toObject()
Converts to an object.
|
java.lang.String |
toString()
Converts to a string.
|
add, append, appendTo, appendTo, appendTo, appendTo, cmp, eq, eql, getArray, getCount, getObject, getSize, getType, getValueType, hashCode, isEmpty, isNull, isset, jsonEncode, serialize, sub, toArgRef, toArray, toArrayValue, toAutoArray, toAutoObject, toBigDecimal, toBigInteger, toBooleanMarshalCost, toByteMarshalCost, toDebugString, toDoubleMarshalCost, toIntegerMarshalCost, toJavaBoolean, toJavaByte, toJavaCalendar, toJavaCharacter, toJavaCollection, toJavaDate, toJavaDouble, toJavaEnum, toJavaFloat, toJavaInteger, toJavaList, toJavaLong, toJavaMap, toJavaObject, toJavaObject, toJavaObjectNotNull, toJavaShort, toJavaString, toJavaURL, toKey, toLongMarshalCost, toObject, toShortMarshalCost, toStringBuilder, toStringValue, valuesToArray, varDumpImpl, varExportImpl
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, 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, 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 DefaultValue DEFAULT
public static DefaultValue create()
public boolean isDefault()
public java.lang.Object toObject()
public Callable toCallable(Env env, boolean isOptional)
toCallable
in class Value
public void print(Env env)
public java.lang.String toString()
public void generate(java.io.PrintWriter out) throws java.io.IOException
public void generateLong(java.io.PrintWriter out) throws java.io.IOException
out
- the writer to the Java source code.java.io.IOException
public void generateString(java.io.PrintWriter out) throws java.io.IOException
out
- the writer to the Java source code.java.io.IOException