implicit final class TransformationMatchingPathOps[A] extends AnyVal
Allows subtype matching when selecting path to override in Chimney DSL.
- A
type to match
- Since
1.0.0
- Alphabetic
- By Inheritance
- TransformationMatchingPathOps
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new TransformationMatchingPathOps(a: A)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
matching[B <: A]: B
Allows paths like
_.adt.matching[Subtype].fieldwhen selecting the target fields to override in Chimney DSL.Allows paths like
_.adt.matching[Subtype].fieldwhen selecting the target fields to override in Chimney DSL.It can only be used within
.withField*methods where the macros reads it and erases it from the final code!- B
subtype for which override should be provided
- returns
stubs value of selected subtype
- Annotations
- @compileTimeOnly( ... )
- Since
1.0.0
-
def
matchingLeft[LV, RV, L, R](implicit ev: Of[A, LV, RV, L, R]): LV
Allows paths like
_.either.matchingLeftwhen selecting the target fields to override in Chimney DSL.Allows paths like
_.either.matchingLeftwhen selecting the target fields to override in Chimney DSL.It can only be used within
.withField*methods where the macros reads it and erases it from the final code!- returns
stubs a value extracted from
Left
- Annotations
- @compileTimeOnly( ... )
- Since
1.0.0
-
def
matchingRight[LV, RV, L, R](implicit ev: Of[A, LV, RV, L, R]): RV
Allows paths like
_.either.matchingRight.fieldwhen selecting the target fields to override in Chimney DSL.Allows paths like
_.either.matchingRight.fieldwhen selecting the target fields to override in Chimney DSL.It can only be used within
.withField*methods where the macros reads it and erases it from the final code!- returns
stubs a value extracted from
Right
- Annotations
- @compileTimeOnly( ... )
- Since
1.0.0
-
def
matchingSome[SV, S](implicit ev: Of[A, SV, S]): SV
Allows paths like
_.optional.matchingSome.fieldwhen selecting the target fields to override in Chimney DSL.Allows paths like
_.optional.matchingSome.fieldwhen selecting the target fields to override in Chimney DSL.It can only be used within
.withField*methods where the macros reads it and erases it from the final code!- returns
stubs a value extracted from
Some
- Annotations
- @compileTimeOnly( ... )
- Since
1.0.0
-
def
toString(): String
- Definition Classes
- Any