object Soy
Provides convenience methods for building SoyValues.
- Alphabetic
- By Inheritance
- Soy
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- sealed trait SoyValueWrapper extends Any
There is an implicit conversion from any type with a SoyWrites to SoyValueWrapper which is an empty trait that shouldn't end into unexpected implicit conversions.
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()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def list(items: SoyValueWrapper*): SoyList
Creates a SoyList from arbitrary items.
Creates a SoyList from arbitrary items.
- items
List items which must have implicit SoyWrites available.
- returns
The soy list.
- def map(items: (String, SoyValueWrapper)*): SoyMap
Creates a SoyMap from key-value pairs.
Creates a SoyMap from key-value pairs.
- items
Key-value pairs. The values must have implicit SoyWrites available.
- returns
The soy map.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toSoy[T](o: T)(implicit writes: SoyWrites[T]): SoyValue
Converts a value of any type to SoyValue using its implicit SoyWrites.
Converts a value of any type to SoyValue using its implicit SoyWrites.
- o
The instance to be converted.
- returns
The result of the conversion.
- implicit def toSoyFieldSoyValueWrapper[T](field: T)(implicit writes: SoyWrites[T]): SoyValueWrapper
The implicit conversion from any type with a SoyWrites to SoyValueWrapper.
- def toSoyMap[T](o: T)(implicit writes: SoyMapWrites[T]): SoyMap
Converts a value of any type to SoyMap using its implicit SoyMapWrites.
Converts a value of any type to SoyMap using its implicit SoyMapWrites.
- o
The instance to be converted.
- returns
The result of the conversion.
- def toString(): String
- Definition Classes
- AnyRef → Any
- macro def typedWrites[T]: SoyMapWrites[T]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()
- macro def writes[T]: SoyMapWrites[T]
Generates a SoyMapWrites[T] for a given case class T.