OnlyMetadata

zio.blocks.schema.ReflectTransformer.OnlyMetadata
abstract class OnlyMetadata[F[_, _], G[_, _]] extends ReflectTransformer[F, G]

A ReflectTransformer that changes only what each node holds: every method replaces metadata with transformMetadata of it and keeps the transformed children and everything else as they are. HasBinding is one.

Attributes

Source
ReflectTransformer.scala
Graph
Supertypes
trait ReflectTransformer[F, G]
class Object
trait Matchable
class Any
Known subtypes
trait HasBinding[F]

Members list

Value members

Abstract methods

def transformMetadata[K, A](f: F[K, A]): Lazy[G[K, A]]

Returns what a node holds in the result, given what it held in the source reflect.

Returns what a node holds in the result, given what it held in the source reflect.

Attributes

Source
ReflectTransformer.scala

Concrete methods

def transformDynamic(path: DynamicOptic, typeId: TypeId[DynamicValue], metadata: F[Dynamic, DynamicValue], doc: Doc, modifiers: Seq[Reflect], storedDefaultValue: Option[DynamicValue], storedExamples: Seq[DynamicValue]): Lazy[Dynamic[G]]

Rebuilds the dynamic node with transformMetadata(metadata).

Rebuilds the dynamic node with transformMetadata(metadata).

Attributes

Source
ReflectTransformer.scala
def transformMap[Key, Value, M[_, _]](path: DynamicOptic, key: Reflect[G, Key], value: Reflect[G, Value], typeId: TypeId[M[Key, Value]], metadata: F[Map[M], M[Key, Value]], doc: Doc, modifiers: Seq[Reflect], storedDefaultValue: Option[DynamicValue], storedExamples: Seq[DynamicValue]): Lazy[Map[G, Key, Value, M]]

Rebuilds the map node with transformMetadata(metadata).

Rebuilds the map node with transformMetadata(metadata).

Attributes

Source
ReflectTransformer.scala
def transformPrimitive[A](path: DynamicOptic, primitiveType: PrimitiveType[A], typeId: TypeId[A], metadata: F[Primitive, A], doc: Doc, modifiers: Seq[Reflect], storedDefaultValue: Option[DynamicValue], storedExamples: Seq[DynamicValue]): Lazy[Primitive[G, A]]

Rebuilds the primitive node with transformMetadata(metadata).

Rebuilds the primitive node with transformMetadata(metadata).

Attributes

Source
ReflectTransformer.scala
def transformRecord[A](path: DynamicOptic, fields: IndexedSeq[Term[G, A, _]], typeId: TypeId[A], metadata: F[Record, A], doc: Doc, modifiers: Seq[Reflect], storedDefaultValue: Option[DynamicValue], storedExamples: Seq[DynamicValue]): Lazy[Record[G, A]]

Rebuilds the record node with transformMetadata(metadata).

Rebuilds the record node with transformMetadata(metadata).

Attributes

Source
ReflectTransformer.scala
def transformSequence[A, C[_]](path: DynamicOptic, element: Reflect[G, A], typeId: TypeId[C[A]], metadata: F[Seq[C], C[A]], doc: Doc, modifiers: Seq[Reflect], storedDefaultValue: Option[DynamicValue], storedExamples: Seq[DynamicValue]): Lazy[Sequence[G, A, C]]

Rebuilds the sequence node with transformMetadata(metadata).

Rebuilds the sequence node with transformMetadata(metadata).

Attributes

Source
ReflectTransformer.scala
def transformVariant[A](path: DynamicOptic, cases: IndexedSeq[Term[G, A, _ <: A]], typeId: TypeId[A], metadata: F[Variant, A], doc: Doc, modifiers: Seq[Reflect], storedDefaultValue: Option[DynamicValue], storedExamples: Seq[DynamicValue]): Lazy[Variant[G, A]]

Rebuilds the variant node with transformMetadata(metadata).

Rebuilds the variant node with transformMetadata(metadata).

Attributes

Source
ReflectTransformer.scala
def transformWrapper[A, B](path: DynamicOptic, wrapped: Reflect[G, B], typeId: TypeId[A], metadata: F[Wrapper[A, B], A], doc: Doc, modifiers: Seq[Reflect], storedDefaultValue: Option[DynamicValue], storedExamples: Seq[DynamicValue]): Lazy[Wrapper[G, A, B]]

Rebuilds the wrapper node with transformMetadata(metadata).

Rebuilds the wrapper node with transformMetadata(metadata).

Attributes

Source
ReflectTransformer.scala