Package

co.blocke.scalajack

typeadapter

Permalink

package typeadapter

Visibility
  1. Public
  2. All

Type Members

  1. case class AnyTypeAdapter(typeTypeAdapter: TypeAdapter[scala.reflect.api.JavaUniverse.Type], memberNameTypeAdapter: TypeAdapter[MemberName], mapTypeAdapter: TypeAdapter[Map[Any, Any]], listTypeAdapter: TypeAdapter[List[Any]], stringTypeAdapter: TypeAdapter[String], booleanTypeAdapter: TypeAdapter[Boolean], context: Context) extends SimpleTypeAdapter[Any] with Product with Serializable

    Permalink
  2. abstract class BasicTypeAdapter[V] extends TypeAdapterFactory with TypeAdapter[V]

    Permalink

    This class is virtually identical to SimpleTypeAdapter, except...

    This class is virtually identical to SimpleTypeAdapter, except... it uses == rather than =:= type compare types in the factory to see if this is the TypeAdapter being sought by Context.

    This difference is because =:= matches children. Consider: type Phone = String case class( name:String, phone:Phone )

    With =:= both name and phone (String and Phone) will match a PhoneTypeAdapter based on SimpleTypeAdapter. This is actually what you want if you haven't overridden Phone with its own TypeAdapter... it should default to the TypeAdapter of its base type.

    But... if you did provide an override PhoneTypeAdapter you want the matching to be strict, hence ==. With strict matching String != Phone.

    This means all TypeAdapter overrides for primitives should extend BasicTypeAdapter, not SimpleTypeAdapter.

  3. case class CanBuildFromTypeAdapter[Elem, To >: Null <: GenTraversableOnce[Elem]](canBuildFrom: CanBuildFrom[_, Elem, To], elementTypeAdapter: TypeAdapter[Elem]) extends TypeAdapter[To] with Product with Serializable

    Permalink
  4. case class CanBuildMapTypeAdapter[Key, Value, To >: Null <: GenMapLike[Key, Value, To]](canBuildFrom: CanBuildFrom[_, (Key, Value), To], keyTypeAdapter: TypeAdapter[Key], valueTypeAdapter: TypeAdapter[Value]) extends TypeAdapter[To] with Product with Serializable

    Permalink
  5. case class CaseClassTypeAdapter[T](context: Context, tpe: scala.reflect.api.JavaUniverse.Type, constructorMirror: scala.reflect.api.JavaUniverse.MethodMirror, memberNameTypeAdapter: TypeAdapter[MemberName], typeTypeAdapter: TypeAdapter[scala.reflect.api.JavaUniverse.Type], typeMembers: List[CaseClassTypeAdapter.TypeMember[T]], fieldMembers: List[ClassFieldMember[T, _]], isSJCapture: Boolean, collectionName: Option[String] = None) extends ClassLikeTypeAdapter[T] with Product with Serializable

    Permalink
  6. trait ClassFieldMember[Owner, T] extends FieldMember[Owner]

    Permalink
  7. trait ClassLikeTypeAdapter[C] extends TypeAdapter[C]

    Permalink
  8. case class DerivedValueClassAdapter[DerivedValueClass, Value](constructorMirror: scala.reflect.api.JavaUniverse.MethodMirror, accessorMethodSymbol: scala.reflect.api.JavaUniverse.MethodSymbol, accessorMethod: Method, valueTypeAdapter: TypeAdapter[Value]) extends TypeAdapter[DerivedValueClass] with Product with Serializable

    Permalink
  9. case class EitherTypeAdapter[L, R](leftTypeAdapter: TypeAdapter[L], rightTypeAdapter: TypeAdapter[R], leftType: scala.reflect.api.JavaUniverse.Type, rightType: scala.reflect.api.JavaUniverse.Type) extends TypeAdapter[Either[L, R]] with Product with Serializable

    Permalink
  10. case class EnumerationTypeAdapter[E <: Enumeration](enum: E) extends TypeAdapter[typeadapter.EnumerationTypeAdapter.E.Value] with StringKind with Product with Serializable

    Permalink
  11. case class FallbackTypeAdapter[T](primaryTypeAdapter: TypeAdapter[T], secondaryTypeAdapter: TypeAdapter[T]) extends TypeAdapter[T] with Product with Serializable

    Permalink
  12. case class OptionTypeAdapter[T](valueTypeAdapter: TypeAdapter[T]) extends TypeAdapter[Option[T]] with Product with Serializable

    Permalink
  13. case class OptionTypeAdapterEmpty[T](valueTypeAdapter: TypeAdapter[T]) extends TypeAdapter[Option[T]] with Product with Serializable

    Permalink
  14. case class OptionTypeAdapterNull[T](valueTypeAdapter: TypeAdapter[T]) extends TypeAdapter[Option[T]] with Product with Serializable

    Permalink
  15. case class PlainClassTypeAdapter[T](caseClassType: scala.reflect.api.JavaUniverse.Type, constructorMirror: scala.reflect.api.JavaUniverse.MethodMirror, tpe: scala.reflect.api.JavaUniverse.Type, memberNameTypeAdapter: TypeAdapter[MemberName], members: List[ClassFieldMember[T, _]], isSJCapture: Boolean, dbKeys: List[ClassFieldMember[T, _]], collectionName: Option[String] = None) extends TypeAdapter[T] with Product with Serializable

    Permalink
  16. case class PolymorphicTypeAdapter[T](typeMemberName: MemberName, typeTypeAdapter: TypeAdapter[scala.reflect.api.JavaUniverse.Type], memberNameTypeAdapter: TypeAdapter[MemberName], context: Context, polymorphicType: scala.reflect.api.JavaUniverse.Type) extends TypeAdapter[T] with Product with Serializable

    Permalink
  17. case class PolymorphicTypeAdapterFactory(hintFieldName: String) extends FromClassSymbol with Product with Serializable

    Permalink
  18. class PolymorphicWriter extends ForwardingWriter

    Permalink
  19. abstract class SimpleTypeAdapter[V] extends TypeAdapterFactory with TypeAdapter[V]

    Permalink
  20. case class TryTypeAdapter[T](valueTypeAdapter: TypeAdapter[T]) extends TypeAdapter[Try[T]] with Product with Serializable

    Permalink
  21. case class TupleTypeAdapter[T >: Null](fields: List[Field[_]], constructorMirror: scala.reflect.api.JavaUniverse.MethodMirror) extends TypeAdapter[T] with Product with Serializable

    Permalink
  22. case class TypeParameterTypeAdapter[T](anyTypeAdapter: TypeAdapter[Any]) extends TypeAdapter[T] with Product with Serializable

    Permalink
  23. case class TypeTypeAdapter(mirror: Mirror, typeModifier: Option[HintModifier] = None) extends TypeAdapter[scala.reflect.api.JavaUniverse.Type] with Product with Serializable

    Permalink

Value Members

  1. object AnyTypeAdapter extends TypeAdapterFactory with Serializable

    Permalink
  2. object BigDecimalTypeAdapter extends SimpleTypeAdapter[BigDecimal]

    Permalink
  3. object BigIntTypeAdapter extends SimpleTypeAdapter[BigInt]

    Permalink
  4. object BooleanTypeAdapter extends SimpleTypeAdapter[Boolean]

    Permalink
  5. object ByteTypeAdapter extends SimpleTypeAdapter[Byte]

    Permalink
  6. object CanBuildFromTypeAdapter extends TypeAdapterFactory with Serializable

    Permalink
  7. object CaseClassTypeAdapter extends FromClassSymbol with Serializable

    Permalink
  8. object CharTypeAdapter extends SimpleTypeAdapter[Char] with StringKind

    Permalink
  9. object ClassLikeTypeAdapter

    Permalink
  10. object DerivedValueClassAdapter extends FromClassSymbol with Serializable

    Permalink
  11. object DoubleTypeAdapter extends SimpleTypeAdapter[Double]

    Permalink
  12. object EitherTypeAdapter extends TypeAdapterFactory with Serializable

    Permalink
  13. object EnumerationTypeAdapter extends FromClassSymbol with Serializable

    Permalink
  14. object FloatTypeAdapter extends SimpleTypeAdapter[Float]

    Permalink
  15. object IntTypeAdapter extends SimpleTypeAdapter[Int]

    Permalink
  16. object LongTypeAdapter extends SimpleTypeAdapter[Long]

    Permalink
  17. object OptionTypeAdapter extends TypeAdapterFactory with Serializable

    Permalink
  18. object PermissivePrimitiveTypeAdapter extends TypeAdapterFactory

    Permalink
  19. object PlainClassTypeAdapter extends FromClassSymbol with Serializable

    Permalink
  20. object SealedTraitTypeAdapter extends TypeAdapterFactory

    Permalink
  21. object ShortTypeAdapter extends SimpleTypeAdapter[Short]

    Permalink
  22. object SimpleTypeAdapter

    Permalink

    DO NOT EXTEND THIS CLASS FOR TypeAdapter OVERRIDES FOR PRIMITIVE TYPES (e.g.

    DO NOT EXTEND THIS CLASS FOR TypeAdapter OVERRIDES FOR PRIMITIVE TYPES (e.g. in VisitorContext)!

    See note in BasicTypeAdapter for details.

  23. object StringTypeAdapter extends SimpleTypeAdapter[String] with StringKind

    Permalink
  24. object TryTypeAdapter extends TypeAdapterFactory with Serializable

    Permalink
  25. object TupleTypeAdapter extends FromClassSymbol with Serializable

    Permalink
  26. object TypeParameterTypeAdapter extends TypeAdapterFactory with Serializable

    Permalink
  27. object TypeTypeAdapter extends TypeAdapterFactory with Serializable

    Permalink
  28. object UUIDTypeAdapter extends SimpleTypeAdapter[UUID]

    Permalink
  29. package javaprimitives

    Permalink
  30. package javatime

    Permalink

Ungrouped