Package org.derive4j.processor
Class PartialMatchingStepDerivator
java.lang.Object
org.derive4j.processor.PartialMatchingStepDerivator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MapperDerivator
private final PatternMatchingDerivator.MatchingKind
-
Constructor Summary
ConstructorsConstructorDescriptionPartialMatchingStepDerivator
(DeriveUtils deriveUtils, PatternMatchingDerivator.MatchingKind matchingKind) -
Method Summary
Modifier and TypeMethodDescriptionprivate static String
partialMatchBuilderClassName
(DataConstructor currentConstructor) (package private) com.squareup.javapoet.TypeSpec
partialMatchingStepTypeSpec
(AlgebraicDataType adt, List<DataConstructor> previousConstructors, DataConstructor currentConstructor, List<DataConstructor> nextConstructors) (package private) Stream
<com.squareup.javapoet.MethodSpec.Builder> partialMatchMethodBuilder
(AlgebraicDataType adt, List<DataConstructor> previousConstructors, int nbSkipConstructors, DataConstructor currentConstructor, com.squareup.javapoet.ParameterizedTypeName returnType) (package private) static com.squareup.javapoet.ParameterizedTypeName
superClass
(AlgebraicDataType adt, PatternMatchingDerivator.MatchingKind matchingKind, List<DataConstructor> nextConstructors)
-
Field Details
-
mapperDerivator
-
matchingKind
-
-
Constructor Details
-
PartialMatchingStepDerivator
PartialMatchingStepDerivator(DeriveUtils deriveUtils, PatternMatchingDerivator.MatchingKind matchingKind)
-
-
Method Details
-
partialMatchingStepTypeSpec
com.squareup.javapoet.TypeSpec partialMatchingStepTypeSpec(AlgebraicDataType adt, List<DataConstructor> previousConstructors, DataConstructor currentConstructor, List<DataConstructor> nextConstructors) -
partialMatchMethodBuilder
Stream<com.squareup.javapoet.MethodSpec.Builder> partialMatchMethodBuilder(AlgebraicDataType adt, List<DataConstructor> previousConstructors, int nbSkipConstructors, DataConstructor currentConstructor, com.squareup.javapoet.ParameterizedTypeName returnType) -
superClass
static com.squareup.javapoet.ParameterizedTypeName superClass(AlgebraicDataType adt, PatternMatchingDerivator.MatchingKind matchingKind, List<DataConstructor> nextConstructors) -
partialMatchBuilderClassName
-