public class BooleanValue extends Value implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static BooleanValue |
FALSE |
static BooleanValue |
TRUE |
L, NULL_ARGS, NULL_VALUE_ARRAY| Modifier and Type | Method and Description |
|---|---|
Value |
append(Value index,
Value value)
Sets the array value, returning the new array, e.g.
|
int |
cmp(Value rValue)
Returns true for equality
|
static BooleanValue |
create(boolean value) |
static Value |
create(java.lang.Boolean value) |
boolean |
eq(Value rValue)
Returns true for equality
|
boolean |
equals(java.lang.Object o)
Compare for equality.
|
void |
generate(java.io.PrintWriter out)
Generates code to recreate the expression.
|
void |
generateBoolean(java.io.PrintWriter out)
Generates code to recreate the expression.
|
java.lang.String |
getType()
Returns the type.
|
ValueType |
getValueType()
Returns the ValueType.
|
int |
hashCode()
Returns the hash code
|
boolean |
isBoolean()
Returns true for a BooleanValue
|
boolean |
isEmpty()
Returns true if the value is empty
|
boolean |
isScalar()
Returns true for a scalar
|
void |
jsonEncode(Env env,
JsonEncodeContext context,
StringValue sb)
Encodes the value in JSON.
|
int |
length()
Return the length as a string.
|
void |
print(Env env)
Prints the value.
|
void |
serialize(Env env,
java.lang.StringBuilder sb)
Serializes the value.
|
Value |
toAutoArray()
Converts to an array if null.
|
Value |
toAutoObject(Env env)
Converts to an object if null.
|
boolean |
toBoolean()
Converts to a boolean.
|
int |
toBooleanMarshalCost()
Cost to convert to a boolean
|
java.lang.String |
toDebugString() |
double |
toDouble()
Converts to a double.
|
java.lang.Object |
toJavaObject()
Converts to a java object.
|
Value |
toKey()
Converts to a key.
|
long |
toLong()
Converts to a long.
|
java.lang.Object |
toObject()
Converts to an object.
|
java.lang.String |
toString()
Converts to a string.
|
StringValue |
toStringBuilder(Env env)
Converts to a string builder
|
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, add, addOne, appendTo, appendTo, appendTo, appendTo, 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, eql, eqValue, findFunction, findQuercusClass, geq, get, get, getArg, getArgTail, getArray, getArray, getBaseIterator, getCallableName, getCalledClass, getClassName, getCount, getCountRecursive, getDirty, getField, getFieldArg, getFieldArgRef, getFieldArray, getFieldObject, getFieldVar, getHashCode, getIterator, getKeyArray, getKeyIterator, getObject, getObject, getObjectHash, getQuercusClass, getRef, getResourceType, getSize, getStaticFieldValue, getStaticFieldVar, getThisField, getThisFieldArg, getThisFieldArgRef, getThisFieldArray, getThisFieldObject, getThisFieldVar, getValueArray, getValueIterator, getVar, gt, hasCurrent, increment, initField, initField, initField, initIncompleteField, isA, isA, isArray, isBinary, isCallable, isDefault, isDouble, isDoubleConvertible, isEmpty, isFieldExists, isFieldInit, isLong, isLongConvertible, isNull, isNumberConvertible, isNumeric, isObject, isResource, isset, isset, issetField, issetThisField, isString, isUnicode, isVar, key, keyExists, 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, sub, subOne, toArgRef, toArray, toArrayValue, toBigDecimal, toBigInteger, toBinaryValue, toBinaryValue, toBinaryValue, toBinaryValueMarshalCost, toByteArrayMarshalCost, toByteMarshalCost, toCallable, toChar, toCharArrayMarshalCost, toCharMarshalCost, toDouble, toDouble, toDouble, toDouble, toDoubleMarshalCost, toDoubleValue, toException, toFloatMarshalCost, toInputStream, toInt, toIntegerMarshalCost, toInternString, toJavaBoolean, toJavaByte, toJavaCalendar, toJavaCharacter, toJavaCollection, toJavaDate, toJavaDouble, toJavaEnum, toJavaFloat, toJavaInteger, toJavaList, toJavaLong, toJavaMap, toJavaObject, toJavaObjectMarshalCost, toJavaObjectNotNull, toJavaShort, toJavaString, toJavaURL, toLocalRef, toLocalThis, toLocalValue, toLocalValueReadOnly, toLocalVar, toLocalVarDeclAsRef, toLong, toLong, toLong, toLong, toLongMarshalCost, toLongValue, toObject, toRef, toRefValue, toShortMarshalCost, toString, toStringBuilder, toStringBuilder, toStringBuilder, toStringMarshalCost, toStringValue, toStringValue, toStringValueMarshalCost, toUnicode, toUnicodeValue, toUnicodeValue, toUnicodeValueMarshalCost, toValue, toVar, unsetArray, unsetField, unsetThisArray, unsetThisField, unsetThisPrivateField, valuesToArray, varDump, varExportpublic static final BooleanValue TRUE
public static final BooleanValue FALSE
public static BooleanValue create(boolean value)
public static Value create(java.lang.Boolean value)
public ValueType getValueType()
getValueType in class Valuepublic boolean isBoolean()
public boolean isScalar()
public final boolean toBoolean()
public boolean isEmpty()
public int toBooleanMarshalCost()
toBooleanMarshalCost in class Valuepublic java.lang.String toString()
toString in class java.lang.Objectpublic StringValue toStringBuilder(Env env)
toStringBuilder in class Valuepublic java.lang.Object toObject()
public java.lang.Object toJavaObject()
toJavaObject in class Valuepublic Value toAutoArray()
toAutoArray in class Valuepublic Value toAutoObject(Env env)
toAutoObject in class Valuepublic Value append(Value index, Value value)
public void print(Env env)
public void generate(java.io.PrintWriter out)
throws java.io.IOException
public void generateBoolean(java.io.PrintWriter out)
throws java.io.IOException
out - the writer to the Java source code.java.io.IOExceptionpublic void serialize(Env env, java.lang.StringBuilder sb)
public void jsonEncode(Env env, JsonEncodeContext context, StringValue sb)
jsonEncode in class Valueprotected void varExportImpl(StringValue sb, int level)
varExportImpl in class Valuepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toDebugString()
toDebugString in class Valuepublic void varDumpImpl(Env env, WriteStream out, int depth, java.util.IdentityHashMap<Value,java.lang.String> valueSet) throws java.io.IOException
varDumpImpl in class Valuejava.io.IOException