com.caucho.quercus.env
Class UnicodeValue

java.lang.Object
  extended by com.caucho.quercus.env.Value
      extended by com.caucho.quercus.env.StringValue
          extended by com.caucho.quercus.env.UnicodeValue
All Implemented Interfaces:
ByteAppendable, java.io.Serializable, java.lang.CharSequence
Direct Known Subclasses:
UnicodeBuilderValue

public abstract class UnicodeValue
extends StringValue

Represents a 16-bit unicode string value.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.caucho.quercus.env.StringValue
EMPTY, IS_DOUBLE, IS_LONG, IS_STRING, MIN_LENGTH
 
Fields inherited from class com.caucho.quercus.env.Value
L, NULL_ARGS, NULL_VALUE_ARRAY, SCALAR_V
 
Constructor Summary
protected UnicodeValue()
           
 
Method Summary
 boolean isUnicode()
          Returns true for UnicodeValue
 java.lang.String toDebugString()
           
 StringValue toStringBuilder()
          Converts to a string builder
 StringValue toUnicodeValue()
          Convert to a unicode value.
 StringValue toUnicodeValue(Env env)
          Convert to a unicode value.
 StringValue toUnicodeValue(Env env, java.lang.String charset)
          Decodes from charset and returns UnicodeValue.
 int toUnicodeValueMarshalCost()
          Cost to convert to a UnicodeValue
 void varDumpImpl(Env env, WriteStream out, int depth, java.util.IdentityHashMap<Value,java.lang.String> valueSet)
           
 
Methods inherited from class com.caucho.quercus.env.StringValue
add, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, appendByte, appendBytes, appendBytes, appendBytes, appendBytes, appendRead, appendRead, appendReadAll, appendReadAll, appendReadAll, appendTo, appendUnicode, appendUnicode, appendUnicode, appendUnicode, appendUnicode, appendUnicode, appendUnicode, appendUnicode, appendUnicode, appendUnicode, appendUnicode, appendUtf8, appendUtf8, bitAnd, bitOr, bitXor, charAt, charValueAt, cmp, cmpString, convertToUnicode, create, create, create, create, createStringBuilder, createStringBuilder, endsWith, ensureAppendCapacity, eq, equals, equalsIgnoreCase, generate, get, getArg, getChars, getCrc32Value, getRawCharArray, getType, getValueType, hashCode, hashCodeCaseInsensitive, increment, indexOf, indexOf, indexOf, indexOf, isDoubleConvertible, isEmpty, isLongConvertible, isNumber, isNumeric, isPHP5String, isScalar, isset, isString, jsonEncode, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, length, regionMatches, regionMatches, regionMatchesIgnoreCase, serialize, setCharValueAt, stringSubstring, sub, subSequence, substring, substring, toAutoArray, toAutoObject, toBinaryValueMarshalCost, toBoolean, toByteMarshalCost, toBytes, toCallable, toCharArray, toCharArrayMarshalCost, toCharMarshalCost, toDouble, toDouble, toDoubleMarshalCost, toFloatMarshalCost, toInputStream, toInputStream, toIntegerMarshalCost, toJavaObject, toKey, toLong, toLongMarshalCost, toLowerCase, toReader, toShortMarshalCost, toSimpleReader, toStringBuilder, toStringMarshalCost, toStringValue, toStringValue, toStringValueMarshalCost, toUnicode, toUpperCase, valuesToArray, varExport, write, write, writeTo
 
Methods inherited from class com.caucho.quercus.env.Value
abs, add, addOne, appendTo, appendTo, appendTo, 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, checkPrivate, checkProtected, clone, containsKey, copy, copy, copy, copyArrayItem, copyReturn, copySaveFunArg, copyStringBuilder, copyTree, current, div, div, end, eql, eqValue, findFunction, geq, getArray, getArray, getBaseIterator, getCallableName, getCalledClass, getClassName, getCount, getCountRecursive, getDirty, getField, getFieldArg, getFieldArgRef, getFieldArray, getFieldObject, getFieldVar, getHashCode, getIterator, getKeyArray, getKeyIterator, getObject, getObject, getQuercusClass, getRef, getResourceType, getSize, getThisField, getThisFieldArg, getThisFieldArgRef, getThisFieldArray, getThisFieldObject, getThisFieldVar, getValueArray, getValueIterator, getVar, gt, hasCurrent, initField, isA, isA, isArray, isBinary, isBoolean, isCallable, isDefault, isDouble, isFieldInit, isLong, isNull, isNumberConvertible, isObject, isResource, isset, issetField, issetThisField, isVar, key, keyExists, leq, lshift, lt, mod, mul, mul, neg, next, nextIndex, pop, pos, postdecr, postincr, postincr, predecr, preincr, preincr, prev, print, print, printDepth, printJavaChar, printJavaString, printR, printRImpl, put, put, put, putField, putField, putField, putObject, putThisField, putThisField, putVar, remove, reset, rshift, serialize, set, setFieldInit, setJavaObject, shuffle, sub_rev, sub, subOne, toArgRef, toArray, toArrayValue, toBigDecimal, toBigInteger, toBinaryValue, toBinaryValue, toBinaryValue, toBooleanMarshalCost, toByteArrayMarshalCost, toChar, toDoubleValue, toException, toInt, toInternString, toJavaBoolean, toJavaByte, toJavaCalendar, toJavaCharacter, toJavaCollection, toJavaDate, toJavaDouble, toJavaFloat, toJavaInteger, toJavaList, toJavaLong, toJavaMap, toJavaObject, toJavaObjectMarshalCost, toJavaObjectNotNull, toJavaShort, toJavaString, toJavaURL, toLocalRef, toLocalThis, toLocalValue, toLocalValueReadOnly, toLocalVar, toLocalVarDeclAsRef, toLong, toLongValue, toObject, toRef, toRefValue, toString, toStringBuilder, toStringBuilder, toValue, toVar, unsetArray, unsetField, unsetThisArray, unsetThisField, varDump
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.CharSequence
toString
 

Constructor Detail

UnicodeValue

protected UnicodeValue()
Method Detail

toDebugString

public java.lang.String toDebugString()
Specified by:
toDebugString in class StringValue

varDumpImpl

public void varDumpImpl(Env env,
                        WriteStream out,
                        int depth,
                        java.util.IdentityHashMap<Value,java.lang.String> valueSet)
                 throws java.io.IOException
Specified by:
varDumpImpl in class StringValue
Throws:
java.io.IOException

toUnicodeValue

public StringValue toUnicodeValue()
Convert to a unicode value.

Overrides:
toUnicodeValue in class Value

toUnicodeValue

public StringValue toUnicodeValue(Env env)
Convert to a unicode value.

Overrides:
toUnicodeValue in class Value

toUnicodeValue

public StringValue toUnicodeValue(Env env,
                                  java.lang.String charset)
Decodes from charset and returns UnicodeValue.

Overrides:
toUnicodeValue in class StringValue
Parameters:
env -
charset -

toStringBuilder

public StringValue toStringBuilder()
Converts to a string builder

Overrides:
toStringBuilder in class Value

isUnicode

public boolean isUnicode()
Returns true for UnicodeValue

Overrides:
isUnicode in class Value

toUnicodeValueMarshalCost

public int toUnicodeValueMarshalCost()
Cost to convert to a UnicodeValue

Overrides:
toUnicodeValueMarshalCost in class Value