public class ScriptValue extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ScriptValue.Type |
| Modifier and Type | Field and Description |
|---|---|
static ScriptValue |
NULL |
| Constructor and Description |
|---|
ScriptValue(Object value) |
ScriptValue(Object value,
String source) |
| Modifier and Type | Method and Description |
|---|---|
ScriptValue |
copy(boolean deep) |
Map<String,Object> |
evalAsMap(ScenarioContext context) |
Object |
getAfterConvertingFromJsonOrXmlIfNeeded() |
byte[] |
getAsByteArray() |
int |
getAsInt() |
com.jayway.jsonpath.DocumentContext |
getAsJsonDocument() |
List |
getAsList() |
Map<String,Object> |
getAsMap() |
Number |
getAsNumber() |
String |
getAsPrettyString() |
InputStream |
getAsStream() |
String |
getAsString() |
ScriptValue.Type |
getType() |
String |
getTypeAsShortString() |
Object |
getValue() |
<T> T |
getValue(Class<T> clazz) |
ScriptValue |
invokeFunction(ScenarioContext context,
Object callArg) |
boolean |
isBooleanTrue() |
boolean |
isByteArray() |
boolean |
isFunction() |
boolean |
isJsonLike() |
boolean |
isListLike() |
boolean |
isMapLike() |
boolean |
isNull() |
boolean |
isNumber() |
boolean |
isPrimitive() |
boolean |
isStream() |
boolean |
isString() |
boolean |
isStringOrStream() |
boolean |
isUnknownType() |
boolean |
isXml() |
Object |
toLowerCase() |
String |
toPrettyString(String key) |
String |
toString() |
public static final ScriptValue NULL
public ScriptValue(Object value)
public Object getValue()
public String getTypeAsShortString()
public boolean isNull()
public boolean isString()
public boolean isStringOrStream()
public boolean isXml()
public boolean isStream()
public boolean isByteArray()
public boolean isUnknownType()
public boolean isBooleanTrue()
public boolean isPrimitive()
public Number getAsNumber()
public boolean isNumber()
public boolean isFunction()
public boolean isListLike()
public List getAsList()
public boolean isJsonLike()
public ScriptValue copy(boolean deep)
public com.jayway.jsonpath.DocumentContext getAsJsonDocument()
public boolean isMapLike()
public ScriptValue invokeFunction(ScenarioContext context, Object callArg)
public Map<String,Object> evalAsMap(ScenarioContext context)
public String getAsPrettyString()
public Object toLowerCase()
public int getAsInt()
public String getAsString()
public byte[] getAsByteArray()
public InputStream getAsStream()
public Object getAfterConvertingFromJsonOrXmlIfNeeded()
public ScriptValue.Type getType()
public <T> T getValue(Class<T> clazz)
Copyright © 2019. All rights reserved.