Package org.derive4j.processor.api.model
Class MultipleConstructorsSupport.CasesMatchers.PartialMatcher<R>
- java.lang.Object
-
- org.derive4j.processor.api.model.MultipleConstructorsSupport.CasesMatchers.PartialMatcher<R>
-
- Direct Known Subclasses:
MultipleConstructorsSupport.CasesMatchers.TotalMatcher_FunctionsDispatch
- Enclosing class:
- MultipleConstructorsSupport.CasesMatchers
public static class MultipleConstructorsSupport.CasesMatchers.PartialMatcher<R> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.Function<java.util.List<DataConstructor>,R>
functionsDispatch
private MultipleConstructorsSupport.VisitorDispatchMapper<R>
visitorDispatch
-
Constructor Summary
Constructors Constructor Description PartialMatcher(MultipleConstructorsSupport.VisitorDispatchMapper<R> visitorDispatch, java.util.function.Function<java.util.List<DataConstructor>,R> functionsDispatch)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.function.Function<MultipleConstructors,R>
otherwise(java.util.function.Supplier<R> otherwise)
java.util.function.Function<MultipleConstructors,R>
otherwise_(R r)
java.util.function.Function<MultipleConstructors,java.util.Optional<R>>
otherwiseEmpty()
-
-
-
Field Detail
-
visitorDispatch
private final MultipleConstructorsSupport.VisitorDispatchMapper<R> visitorDispatch
-
functionsDispatch
private final java.util.function.Function<java.util.List<DataConstructor>,R> functionsDispatch
-
-
Constructor Detail
-
PartialMatcher
PartialMatcher(MultipleConstructorsSupport.VisitorDispatchMapper<R> visitorDispatch, java.util.function.Function<java.util.List<DataConstructor>,R> functionsDispatch)
-
-
Method Detail
-
otherwise
public final java.util.function.Function<MultipleConstructors,R> otherwise(java.util.function.Supplier<R> otherwise)
-
otherwise_
public final java.util.function.Function<MultipleConstructors,R> otherwise_(R r)
-
otherwiseEmpty
public final java.util.function.Function<MultipleConstructors,java.util.Optional<R>> otherwiseEmpty()
-
-