object JsonSupport extends JsonSupport
- Alphabetic
- By Inheritance
- JsonSupport
- JsonSupport
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def readEvent[A <: Event](json: JsValue): A
Reads an event back from JSON
Reads an event back from JSON
- A
the type of the event (use Any and match on the type if you don't know)
- json
the parsed JSON
- returns
an instance of the given event type, or an exception if the JSON is not valid for that type
- Definition Classes
- JsonSupport
- def readResult(json: JsValue): Result
Reads a Result back from JSON
Reads a Result back from JSON
- json
the parsed JSON
- returns
an instance of Result, or an exception if the JSON is not valid for that type
- Definition Classes
- JsonSupport
- def readSequenceCommand[A <: SequenceCommand](json: JsValue): A
Reads a SequenceCommand back from JSON
Reads a SequenceCommand back from JSON
- A
the type of the command (implied)
- json
the parsed JSON
- returns
an instance of the given SequenceCommand type, or an exception if the JSON is not valid for that type
- Definition Classes
- JsonSupport
- def readStateVariable[A <: StateVariable](json: JsValue): A
Reads a StateVariable back from JSON
Reads a StateVariable back from JSON
- A
the type of the StateVariable (implied)
- json
the parsed JSON
- returns
an instance of the given StateVariable, or an exception if the JSON is not valid for that type
- Definition Classes
- JsonSupport
- def reads[T](x: JsValue)(implicit arg0: Decoder[T]): T
- Definition Classes
- JsonSupport
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def writeEvent(event: Event): JsValue
Writes an event to JSON
Writes an event to JSON
- event
any instance of EventType
- returns
a JsValue object representing the event
- Definition Classes
- JsonSupport
- def writeResult(result: Result): JsValue
Writes a Result to JSON
Writes a Result to JSON
- result
any instance of Result
- returns
a JsValue object representing the Result
- Definition Classes
- JsonSupport
- def writeSequenceCommand(result: SequenceCommand): JsValue
Writes a SequenceParameterSet to JSON
Writes a SequenceParameterSet to JSON
- result
any instance of SequenceCommand
- returns
a JsValue object representing the SequenceCommand
- Definition Classes
- JsonSupport
- def writeStateVariable(stateVariable: StateVariable): JsValue
Writes a state variable to JSON
Writes a state variable to JSON
- stateVariable
any instance of StateVariable
- returns
a JsValue object representing the StateVariable
- Definition Classes
- JsonSupport
- def writes[T](x: T)(implicit arg0: Encoder[T]): JsValue
- Definition Classes
- JsonSupport