final class ExpressionValue extends ModelValue
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE_KEY
JSON Key used to identify ExpressionValue.
|
private ValueExpression |
valueExpression |
UNDEFINED| Constructor and Description |
|---|
ExpressionValue(java.lang.String expressionString) |
ExpressionValue(ValueExpression valueExpression) |
| Modifier and Type | Method and Description |
|---|---|
(package private) ValueExpression |
asExpression() |
(package private) java.lang.String |
asString() |
boolean |
equals(ExpressionValue other) |
boolean |
equals(java.lang.Object other) |
(package private) void |
format(java.io.PrintWriter writer,
int indent,
boolean multiLine)
Formats the current value object as part of a DMR string.
|
(package private) void |
formatAsJSON(java.io.PrintWriter writer,
int indent,
boolean multiLine)
Formats the current value object as part of a JSON string.
|
int |
hashCode() |
(package private) ModelValue |
resolve() |
(package private) void |
writeExternal(java.io.DataOutput out) |
addChild, asBigDecimal, asBigInteger, asBoolean, asBoolean, asBytes, asDouble, asDouble, asInt, asInt, asList, asLong, asLong, asObject, asProperty, asPropertyList, asType, clone, copy, getChild, getChild, getKeys, getType, has, has, indent, insertChild, jsonEscape, protect, quote, removeChild, removeChild, requireChild, requireChild, toJSONString, toString, writeJSONString, writeStringpublic static final java.lang.String TYPE_KEY
private final ValueExpression valueExpression
ExpressionValue(java.lang.String expressionString)
ExpressionValue(ValueExpression valueExpression)
void writeExternal(java.io.DataOutput out)
throws java.io.IOException
writeExternal in class ModelValuejava.io.IOExceptionjava.lang.String asString()
asString in class ModelValueValueExpression asExpression()
asExpression in class ModelValuevoid format(java.io.PrintWriter writer,
int indent,
boolean multiLine)
ModelValueformat in class ModelValuewriter - A PrintWriter instance containing the generated DMR string representation.indent - The number of tabs to indent the current generated string.multiLine - Flag indicating whether or not the string should begin on a new line.void formatAsJSON(java.io.PrintWriter writer,
int indent,
boolean multiLine)
ModelValueformatAsJSON in class ModelValuewriter - A PrintWriter instance containing the JSON string.indent - The number of tabs to indent the current generated string.multiLine - Flag that indicates whether or not the string should
begin on a new line.public boolean equals(java.lang.Object other)
equals in class ModelValuepublic boolean equals(ExpressionValue other)
public int hashCode()
hashCode in class ModelValueModelValue resolve()
resolve in class ModelValue