object JsonCodecMaker
- Alphabetic
- By Inheritance
- JsonCodecMaker
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
val
EnforcePascalCase: PartialFunction[String, String]
Mapping function for field or class names that should be in PascalCase format.
Mapping function for field or class names that should be in PascalCase format.
- returns
a transformed name or the same name if no transformation is required
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
val
enforce-kebab-case: PartialFunction[String, String]
Mapping function for field or class names that should be in kebab-case format with separated non-alphabetic characters.
Mapping function for field or class names that should be in kebab-case format with separated non-alphabetic characters.
- returns
a transformed name or the same name if no transformation is required
-
val
enforce-kebab-case2: PartialFunction[String, String]
Mapping function for field or class names that should be in kebab-case format with joined non-alphabetic characters.
Mapping function for field or class names that should be in kebab-case format with joined non-alphabetic characters.
- returns
a transformed name or the same name if no transformation is required
-
val
enforceCamelCase: PartialFunction[String, String]
Mapping function for field or class names that should be in camelCase format.
Mapping function for field or class names that should be in camelCase format.
- returns
a transformed name or the same name if no transformation is required
-
val
enforce_snake_case: PartialFunction[String, String]
Mapping function for field or class names that should be in snake_case format with separated non-alphabetic characters.
Mapping function for field or class names that should be in snake_case format with separated non-alphabetic characters.
- returns
a transformed name or the same name if no transformation is required
-
val
enforce_snake_case2: PartialFunction[String, String]
Mapping function for field or class names that should be in snake_case format with joined non-alphabetic characters.
Mapping function for field or class names that should be in snake_case format with joined non-alphabetic characters.
- returns
a transformed name or the same name if no transformation is required
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- 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
-
macro
def
make[A](config: CodecMakerConfig): JsonValueCodec[A]
Derives a codec for JSON values for the specified type
Aand a provided derivation configuration.Derives a codec for JSON values for the specified type
Aand a provided derivation configuration.- A
a type that should be encoded and decoded by the derived codec
- config
a derivation configuration
- returns
an instance of the derived codec
-
macro
def
make[A]: JsonValueCodec[A]
Derives a codec for JSON values for the specified type
A.Derives a codec for JSON values for the specified type
A.- A
a type that should be encoded and decoded by the derived codec
- returns
an instance of the derived codec
-
macro
def
makeCirceLike[A]: JsonValueCodec[A]
A replacement for the
makecall with theCodecMakerConfig.withTransientEmpty(false).withTransientDefault(false).withTransientNone(false).withDiscriminatorFieldName(None)configuration parameter.A replacement for the
makecall with theCodecMakerConfig.withTransientEmpty(false).withTransientDefault(false).withTransientNone(false).withDiscriminatorFieldName(None)configuration parameter.- A
a type that should be encoded and decoded by the derived codec
- returns
an instance of the derived codec
-
macro
def
makeCirceLikeSnakeCased[A]: JsonValueCodec[A]
A replacement for the
makecall with theCodecMakerConfig.withTransientEmpty(false).withTransientDefault(false).withTransientNone(false).withDiscriminatorFieldName(None).withAdtLeafClassNameMapper(x => enforce_snake_case(simpleClassName(x))).withFieldNameMapper(enforce_snake_case).withJavaEnumValueNameMapper(enforce_snake_case)configuration parameter.A replacement for the
makecall with theCodecMakerConfig.withTransientEmpty(false).withTransientDefault(false).withTransientNone(false).withDiscriminatorFieldName(None).withAdtLeafClassNameMapper(x => enforce_snake_case(simpleClassName(x))).withFieldNameMapper(enforce_snake_case).withJavaEnumValueNameMapper(enforce_snake_case)configuration parameter.- A
a type that should be encoded and decoded by the derived codec
- returns
an instance of the derived codec
-
macro
def
makeWithRequiredCollectionFields[A]: JsonValueCodec[A]
A replacement for the
makecall with theCodecMakerConfig.withTransientEmpty(false).withRequireCollectionFields(true)configuration parameter.A replacement for the
makecall with theCodecMakerConfig.withTransientEmpty(false).withRequireCollectionFields(true)configuration parameter.- A
a type that should be encoded and decoded by the derived codec
- returns
an instance of the derived codec
-
macro
def
makeWithRequiredCollectionFieldsAndNameAsDiscriminatorFieldName[A]: JsonValueCodec[A]
A replacement for the
makecall with theCodecMakerConfig.withTransientEmpty(false).withRequireCollectionFields(true).withDiscriminatorFieldName(Some("name"))configuration parameter.A replacement for the
makecall with theCodecMakerConfig.withTransientEmpty(false).withRequireCollectionFields(true).withDiscriminatorFieldName(Some("name"))configuration parameter.- A
a type that should be encoded and decoded by the derived codec
- returns
an instance of the derived codec
-
macro
def
makeWithoutDiscriminator[A]: JsonValueCodec[A]
A replacement for the
makecall with theCodecMakerConfig.withDiscriminatorFieldName(None)configuration parameter.A replacement for the
makecall with theCodecMakerConfig.withDiscriminatorFieldName(None)configuration parameter.- A
a type that should be encoded and decoded by the derived codec
- returns
an instance of the derived codec
-
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()
-
val
partialIdentity: PartialFunction[String, String]
A partial function that is a total in fact and always returns a string passed to it.
A partial function that is a total in fact and always returns a string passed to it.
- returns
a provided value
-
def
simpleClassName(fullClassName: String): String
Mapping function for class names that should be trimmed to the simple class name without package prefix.
Mapping function for class names that should be trimmed to the simple class name without package prefix.
- fullClassName
the name to transform
- returns
a transformed name or the same name if no transformation is required
-
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( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated