|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.quercus.env.Value
com.caucho.quercus.env.NullValue
com.caucho.quercus.env.DefaultValue
public class DefaultValue
Represents a PHP default value.
Field Summary | |
---|---|
static DefaultValue |
DEFAULT
|
Fields inherited from class com.caucho.quercus.env.NullValue |
---|
NULL |
Fields inherited from class com.caucho.quercus.env.Value |
---|
L, NULL_ARGS, NULL_VALUE_ARRAY |
Method Summary | |
---|---|
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)
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. |
Methods inherited from class com.caucho.quercus.env.NullValue |
---|
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, toJavaFloat, toJavaInteger, toJavaList, toJavaLong, toJavaMap, toJavaObject, toJavaObject, toJavaObjectNotNull, toJavaShort, toJavaString, toJavaURL, toKey, toLongMarshalCost, toObject, toShortMarshalCost, toStringBuilder, toStringValue, valuesToArray, varDumpImpl, varExportImpl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final DefaultValue DEFAULT
Method Detail |
---|
public static DefaultValue create()
public boolean isDefault()
isDefault
in class Value
public boolean toBoolean()
toBoolean
in class NullValue
public long toLong()
toLong
in class NullValue
public double toDouble()
toDouble
in class NullValue
public java.lang.Object toObject()
public Callable toCallable(Env env)
toCallable
in class Value
public void print(Env env)
print
in class NullValue
env
- public java.lang.String toString()
toString
in class NullValue
env
- public void generate(java.io.PrintWriter out) throws java.io.IOException
generate
in class NullValue
out
- the writer to the Java source code.
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |