public class ConstStringValue extends StringBuilderValue
Modifier and Type | Field and Description |
---|---|
static ConstStringValue |
EMPTY |
IS_DOUBLE, IS_LONG, IS_STRING, MIN_LENGTH
L, NULL_ARGS, NULL_VALUE_ARRAY
Constructor and Description |
---|
ConstStringValue() |
ConstStringValue(byte ch) |
ConstStringValue(byte[] buffer) |
ConstStringValue(byte[] buffer,
int offset,
int length) |
ConstStringValue(byte[] s,
Value v1) |
ConstStringValue(char ch) |
ConstStringValue(char[] s) |
ConstStringValue(char[] buffer,
int length)
Creates a new StringBuilderValue with the buffer without copying.
|
ConstStringValue(char[] buffer,
int offset,
int length) |
ConstStringValue(char[] s,
Value v1) |
ConstStringValue(java.lang.String s) |
ConstStringValue(StringBuilderValue sb) |
ConstStringValue(Value v1) |
ConstStringValue(Value v1,
Value v2) |
ConstStringValue(Value v1,
Value v2,
Value v3) |
Modifier and Type | Method and Description |
---|---|
void |
generate(java.io.PrintWriter out)
Generates code to recreate the expression.
|
static void |
generateImpl(java.io.PrintWriter out,
StringBuilderValue value)
Generates code to recreate the expression.
|
ValueType |
getValueType()
Returns the ValueType.
|
boolean |
isStatic() |
void |
serialize(Env env,
java.lang.StringBuilder sb)
Serializes the value.
|
protected void |
setDoubleValue(DoubleValue value) |
protected void |
setKey(Value value) |
protected void |
setLongValue(LongValue value) |
protected void |
setLowerCase(StringValue lowerCase) |
protected void |
setString(java.lang.String value) |
protected void |
setValueType(ValueType valueType) |
double |
toDouble()
Converts to a double.
|
DoubleValue |
toDoubleValue()
Converts to a double vaule
|
Value |
toKey()
Converts to a key.
|
long |
toLong()
Converts to a long.
|
LongValue |
toLongValue()
Converts to a long vaule
|
StringValue |
toLowerCase(java.util.Locale locale)
Convert to lower case.
|
java.lang.String |
toString()
Converts to a string.
|
append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, appendByte, appendBytes, appendBytes, appendTo, appendTo, appendTo, appendTo, appendUnicode, appendUnicode, appendUnicode, appendUnicode, appendUtf8, charAt, charValueAt, copyStringBuilder, create, create, create, createStringBuilder, createStringBuilder, createStringBuilder, ensureAppendCapacity, ensureCapacity, eq, eql, equals, equalsIgnoreCase, get, getBuffer, getBufferLength, getCrc32Value, getHashCode, getOutputStream, getType, getValue, getValueType, hashCode, hashCodeCaseInsensitive, indexOf, indexOf, indexOf, isEmpty, isScalar, isset, length, print, print, put, regionMatches, regionMatchesIgnoreCase, setCharValueAt, setLength, stringSubstring, subSequence, toBinaryValue, toBinaryValue, toBoolean, toBytes, toDebugString, toDouble, toInputStream, toJavaObject, toStringBuilder, toStringBuilder, toStringBuilder, toStringBuilder, toUnicodeValue, toUnicodeValue, toUnicodeValue, toUpperCase, varDumpImpl, write, write, writeTo
toBinaryValueMarshalCost
add, append, append, append, append, append, appendBytes, appendBytes, appendRead, appendRead, appendReadAll, appendReadAll, appendReadAll, appendUnicode, appendUnicode, appendUnicode, appendUnicode, appendUnicode, appendUnicode, appendUnicode, appendUtf8, bitAnd, bitOr, bitXor, cmp, cmpString, convertToUnicode, create, create, endsWith, equalsString, equalsStringIgnoreCase, getArg, getChars, getRawCharArray, increment, indexOf, intern, isCallable, isDoubleConvertible, isLongConvertible, isNumber, isNumeric, isString, jsonEncode, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, putThisFieldArray, regionMatches, startsWith, sub, substring, substring, toAutoArray, toAutoObject, toByteMarshalCost, toCallable, toCharArray, toCharArrayMarshalCost, toCharMarshalCost, toDouble, toDoubleMarshalCost, toFloatMarshalCost, toIntegerMarshalCost, toLong, toLongMarshalCost, toLowerCase, toReader, toShortMarshalCost, toSimpleReader, toString, toStringMarshalCost, toStringValue, toStringValue, toStringValueMarshalCost, toUnicode, toUpperCase, valuesToArray, varExportImpl
abs, add, addOne, 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, copyTree, current, div, div, end, eqValue, findFunction, findQuercusClass, geq, get, getArgTail, getArray, getArray, getBaseIterator, getCallableName, getCalledClass, getClassName, getCount, getCountRecursive, getDirty, getField, getFieldArg, getFieldArgRef, getFieldArray, getFieldObject, getFieldVar, getIterator, getKeyArray, getKeyIterator, getObject, getObject, getObjectHash, getQuercusClass, getRef, getResourceType, getSize, getStaticFieldValue, getStaticFieldVar, getThisField, getThisFieldArg, getThisFieldArgRef, getThisFieldArray, getThisFieldObject, getThisFieldVar, getValueArray, getValueIterator, getVar, gt, hasCurrent, initField, initField, initField, initIncompleteField, isA, isA, isArray, isBinary, isBoolean, isDefault, isDouble, isEmpty, isFieldExists, isFieldInit, isLong, isNull, isNumberConvertible, isObject, isResource, isset, issetField, issetThisField, isUnicode, isVar, key, keyExists, leq, lshift, lt, mod, mul, mul, neg, next, nextIndex, pop, pos, postdecr, postincr, postincr, predecr, preincr, preincr, prev, printDepth, printJavaChar, printJavaString, printR, printRImpl, put, put, putArray, putField, putField, putField, putObject, putThisField, putThisField, putVar, remove, reset, rshift, serialize, set, setFieldInit, setJavaObject, setStaticFieldRef, shuffle, sub_rev, sub, subOne, toArgRef, toArray, toArrayValue, toBigDecimal, toBigInteger, toBinaryValue, toBooleanMarshalCost, toByteArrayMarshalCost, toChar, toDouble, toDouble, toDouble, toDouble, toException, toInt, 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, toObject, toRef, toRefValue, toString, toUnicodeValueMarshalCost, toValue, toVar, unsetArray, unsetField, unsetThisArray, unsetThisField, unsetThisPrivateField, varDump, varExport
public static final ConstStringValue EMPTY
public ConstStringValue()
public ConstStringValue(StringBuilderValue sb)
public ConstStringValue(byte[] buffer, int offset, int length)
public ConstStringValue(char[] buffer, int offset, int length)
public ConstStringValue(char[] buffer, int length)
public ConstStringValue(byte[] buffer)
public ConstStringValue(char ch)
public ConstStringValue(byte ch)
public ConstStringValue(java.lang.String s)
public ConstStringValue(char[] s)
public ConstStringValue(char[] s, Value v1)
public ConstStringValue(byte[] s, Value v1)
public ConstStringValue(Value v1)
public boolean isStatic()
protected void setLongValue(LongValue value)
protected void setDoubleValue(DoubleValue value)
protected void setString(java.lang.String value)
protected void setKey(Value value)
protected void setValueType(ValueType valueType)
protected void setLowerCase(StringValue lowerCase)
public LongValue toLongValue()
toLongValue
in class Value
public DoubleValue toDoubleValue()
toDoubleValue
in class Value
public long toLong()
toLong
in class StringBuilderValue
public double toDouble()
toDouble
in class StringBuilderValue
public ValueType getValueType()
getValueType
in class StringBuilderValue
public Value toKey()
toKey
in class StringBuilderValue
public StringValue toLowerCase(java.util.Locale locale)
StringBuilderValue
toLowerCase
in class StringBuilderValue
public void serialize(Env env, java.lang.StringBuilder sb)
serialize
in class StringBuilderValue
public void generate(java.io.PrintWriter out) throws java.io.IOException
generate
in class StringBuilderValue
out
- the writer to the Java source code.java.io.IOException
public static void generateImpl(java.io.PrintWriter out, StringBuilderValue value) throws java.io.IOException
out
- the writer to the Java source code.java.io.IOException
public java.lang.String toString()
StringBuilderValue
toString
in interface java.lang.CharSequence
toString
in class StringBuilderValue