object TypeConversions
Provides conversions between the various type systems involved in pegasus data binding generation.
- Alphabetic
- By Inheritance
- TypeConversions
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- case class PrimitiveMapping(schema: DataSchema, scalaType: String, isValueType: Boolean, pegasusType: String, javaClass: Class[_]) extends Product with Serializable
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
-
def
anyToLiteral(any: AnyRef): String
Provided anyRef must be a "pegasus" data type: java.lang.* primitives, ByteString, DataMap or DataList.
Provided anyRef must be a "pegasus" data type: java.lang.* primitives, ByteString, DataMap or DataList.
THe returned String is scala source that evaluates to the provided any ref.
E.g.
For an float of 3.14, the returned string would be 3.14f (unquoted), which in scala evaluates to the 3.14 float.
For a string of "text" the returned string would be "text" (with quotes).
For A DataMap containing { "message": "hello!" }, the returned string would be: DataTemplates.mapLiteral("""{ "message": "hello!" }"""), which also evaluates to the provided DataMap provided.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isScalaValueType(schema: DataSchema): Boolean
- def lookupJavaClass(schema: PrimitiveDataSchema): Class[_]
- def lookupPegasusType(schema: PrimitiveDataSchema): String
- def lookupScalaType(schema: PrimitiveDataSchema): String
-
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()
- val primitiveSchemas: Set[DataSchema]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def toLiteral(data: DataList): String
- def toLiteral(data: DataMap): String
- def toLiteral(string: String): String
- def toLiteral(bytes: ByteString): String
- def toLiteral(boolean: Boolean): String
- def toLiteral(double: Double): String
- def toLiteral(float: Float): String
- def toLiteral(long: Long): String
- def toLiteral(int: Integer): String
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )