Class OtherwiseMatchingStepDerivator
java.lang.Object
org.derive4j.processor.OtherwiseMatchingStepDerivator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DeriveUtilsprivate final MapperDerivatorprivate final PatternMatchingDerivator.MatchingKind -
Constructor Summary
ConstructorsConstructorDescriptionOtherwiseMatchingStepDerivator(DeriveUtils deriveUtils, PatternMatchingDerivator.MatchingKind matchingKind) -
Method Summary
Modifier and TypeMethodDescriptionprivate com.squareup.javapoet.CodeBlockfunctionsDispatchEitherImpl(TypeElement f0, EitherModel eitherModel, com.squareup.javapoet.TypeName eitherTypeName, AlgebraicDataType adt, List<DataConstructor> constructors, String argName) private com.squareup.javapoet.CodeBlockfunctionsDispatchImpl(TypeElement f0, AlgebraicDataType adt, List<DataConstructor> constructors) private com.squareup.javapoet.CodeBlockfunctionsDispatchOptionImpl(OptionModel optionModel, AlgebraicDataType adt, List<DataConstructor> constructors) (package private) static Stringprivate List<com.squareup.javapoet.MethodSpec> otherwiseLeftMethod(AlgebraicDataType adt, EitherModel eitherModel) (package private) static com.squareup.javapoet.ParameterizedTypeNameprivate List<com.squareup.javapoet.MethodSpec> private com.squareup.javapoet.MethodSpec(package private) com.squareup.javapoet.TypeSpecprivate com.squareup.javapoet.CodeBlockvisitorDispatchEitherImpl(TypeElement f0, EitherModel eitherModel, com.squareup.javapoet.TypeName eitherTypeName, AlgebraicDataType adt, DeclaredType visitorType, VariableElement visitorParam, String argName) private com.squareup.javapoet.CodeBlockvisitorDispatchImpl(TypeElement f0, AlgebraicDataType adt, DeclaredType visitorType, VariableElement visitorParam) private com.squareup.javapoet.CodeBlockvisitorDispatchOptionImpl(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
-