Class PartialMatchingStepDerivator
java.lang.Object
org.derive4j.processor.PartialMatchingStepDerivator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MapperDerivatorprivate final PatternMatchingDerivator.MatchingKind -
Constructor Summary
ConstructorsConstructorDescriptionPartialMatchingStepDerivator(DeriveUtils deriveUtils, PatternMatchingDerivator.MatchingKind matchingKind) -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringpartialMatchBuilderClassName(DataConstructor currentConstructor) (package private) com.squareup.javapoet.TypeSpecpartialMatchingStepTypeSpec(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.ParameterizedTypeNamesuperClass(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
-