Package com.intuit.karate.graal
Class JsValue
java.lang.Object
com.intuit.karate.graal.JsValue
- Author:
- pthomas3
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectgetAsMap()org.graalvm.polyglot.Value<T> TgetValue()booleanisArray()booleanbooleanisNull()booleanisObject()booleanisOther()booleanisTrue()static booleanbooleanisXml()static byte[]toBytes(org.graalvm.polyglot.Value v) static ObjecttoJava(org.graalvm.polyglot.Value v) toJsonOrXmlString(boolean pretty) toString()static Object
-
Field Details
-
NULL
-
value
-
type
-
-
Constructor Details
-
JsValue
public JsValue(org.graalvm.polyglot.Value v)
-
-
Method Details
-
getValue
public <T> T getValue() -
getAsMap
-
getAsList
-
getOriginal
public org.graalvm.polyglot.Value getOriginal() -
isXml
public boolean isXml() -
isNull
public boolean isNull() -
isObject
public boolean isObject() -
isArray
public boolean isArray() -
isTrue
public boolean isTrue() -
isFunction
public boolean isFunction() -
isOther
public boolean isOther() -
toString
-
toJsonOrXmlString
-
getAsString
-
fromJava
-
toJava
-
unWrap
-
toBytes
public static byte[] toBytes(org.graalvm.polyglot.Value v) -
isTruthy
-