Package org.derive4j.processor
Class PatternMatchingDerivator
java.lang.Object
org.derive4j.processor.PatternMatchingDerivator
- All Implemented Interfaces:
Derivator
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PatternMatchingDerivator.MatchingKind
private final OtherwiseMatchingStepDerivator
private final PartialMatchingStepDerivator
private final TotalMatchingStepDerivator
-
Constructor Summary
ConstructorsConstructorDescriptionPatternMatchingDerivator
(DeriveUtils deriveUtils, PatternMatchingDerivator.MatchingKind matchingKind) -
Method Summary
Modifier and TypeMethodDescription(package private) static com.squareup.javapoet.FieldSpec
(package private) static com.squareup.javapoet.ParameterSpec
(package private) static com.squareup.javapoet.MethodSpec.Builder
constantMatchMethodBuilder
(AlgebraicDataType adt, DataConstructor currentConstructor) derive
(AlgebraicDataType adt) (package private) static Stream
<TypeVariable>
-
Field Details
-
matchingKind
-
totalMatching
-
otherwiseMatching
-
partialMatching
-
-
Constructor Details
-
PatternMatchingDerivator
PatternMatchingDerivator(DeriveUtils deriveUtils, PatternMatchingDerivator.MatchingKind matchingKind)
-
-
Method Details
-
derive
-
constantMatchMethodBuilder
static com.squareup.javapoet.MethodSpec.Builder constantMatchMethodBuilder(AlgebraicDataType adt, DataConstructor currentConstructor) -
matcherVariables
-
asParameterSpec
-
asFieldSpec
-