Package org.derive4j.processor
Class OtherwiseMatchingStepDerivator
java.lang.Object
org.derive4j.processor.OtherwiseMatchingStepDerivator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DeriveUtils
private final MapperDerivator
private final PatternMatchingDerivator.MatchingKind
-
Constructor Summary
ConstructorsConstructorDescriptionOtherwiseMatchingStepDerivator
(DeriveUtils deriveUtils, PatternMatchingDerivator.MatchingKind matchingKind) -
Method Summary
Modifier and TypeMethodDescriptionprivate com.squareup.javapoet.CodeBlock
functionsDispatchEitherImpl
(TypeElement f0, EitherModel eitherModel, com.squareup.javapoet.TypeName eitherTypeName, AlgebraicDataType adt, List<DataConstructor> constructors, String argName) private com.squareup.javapoet.CodeBlock
functionsDispatchImpl
(TypeElement f0, AlgebraicDataType adt, List<DataConstructor> constructors) private com.squareup.javapoet.CodeBlock
functionsDispatchOptionImpl
(OptionModel optionModel, AlgebraicDataType adt, List<DataConstructor> constructors) (package private) static String
private List
<com.squareup.javapoet.MethodSpec> otherwiseLeftMethod
(AlgebraicDataType adt, EitherModel eitherModel) (package private) static com.squareup.javapoet.ParameterizedTypeName
private List
<com.squareup.javapoet.MethodSpec> private com.squareup.javapoet.MethodSpec
(package private) com.squareup.javapoet.TypeSpec
private com.squareup.javapoet.CodeBlock
visitorDispatchEitherImpl
(TypeElement f0, EitherModel eitherModel, com.squareup.javapoet.TypeName eitherTypeName, AlgebraicDataType adt, DeclaredType visitorType, VariableElement visitorParam, String argName) private com.squareup.javapoet.CodeBlock
visitorDispatchImpl
(TypeElement f0, AlgebraicDataType adt, DeclaredType visitorType, VariableElement visitorParam) private com.squareup.javapoet.CodeBlock
visitorDispatchOptionImpl
(OptionModel optionModel, AlgebraicDataType adt, DeclaredType visitorType, VariableElement visitorParam)
-
Field Details
-
deriveUtils
-
mapperDerivator
-
matchingKind
-
-
Constructor Details
-
OtherwiseMatchingStepDerivator
OtherwiseMatchingStepDerivator(DeriveUtils deriveUtils, PatternMatchingDerivator.MatchingKind matchingKind)
-
-
Method Details
-
stepTypeSpec
-
otherwiseLeftMethod
private List<com.squareup.javapoet.MethodSpec> otherwiseLeftMethod(AlgebraicDataType adt, EitherModel eitherModel) -
functionsDispatchEitherImpl
private com.squareup.javapoet.CodeBlock functionsDispatchEitherImpl(TypeElement f0, EitherModel eitherModel, com.squareup.javapoet.TypeName eitherTypeName, AlgebraicDataType adt, List<DataConstructor> constructors, String argName) -
visitorDispatchEitherImpl
private com.squareup.javapoet.CodeBlock visitorDispatchEitherImpl(TypeElement f0, EitherModel eitherModel, com.squareup.javapoet.TypeName eitherTypeName, AlgebraicDataType adt, DeclaredType visitorType, VariableElement visitorParam, String argName) -
functionsDispatchOptionImpl
private com.squareup.javapoet.CodeBlock functionsDispatchOptionImpl(OptionModel optionModel, AlgebraicDataType adt, List<DataConstructor> constructors) -
visitorDispatchOptionImpl
private com.squareup.javapoet.CodeBlock visitorDispatchOptionImpl(OptionModel optionModel, AlgebraicDataType adt, DeclaredType visitorType, VariableElement visitorParam) -
otherwiseMethods
-
otherwiseNoneMethod
-
functionsDispatchImpl
private com.squareup.javapoet.CodeBlock functionsDispatchImpl(TypeElement f0, AlgebraicDataType adt, List<DataConstructor> constructors) -
visitorDispatchImpl
private com.squareup.javapoet.CodeBlock visitorDispatchImpl(TypeElement f0, AlgebraicDataType adt, DeclaredType visitorType, VariableElement visitorParam) -
otherwiseMatcherTypeName
-
otherwiseBuilderClassName
-