Package org.derive4j.processor.api.model
Class MultipleConstructorsSupport
java.lang.Object
org.derive4j.processor.api.model.MultipleConstructorsSupport
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic interface -
Method Summary
Modifier and TypeMethodDescriptioncaseOf(MultipleConstructors multipleConstructors) cases()static <R> MultipleConstructors.Cases<R> cases(MultipleConstructorsSupport.VisitorDispatchMapper<R> visitorDispatch, Function<List<DataConstructor>, R> functionsDispatch) static List<DataConstructor> getConstructors(MultipleConstructors multipleConstructors) static Optional<VariableElement> getVisitorParam(MultipleConstructors multipleConstructors) static Optional<DeclaredType> getVisitorType(MultipleConstructors multipleConstructors) static MultipleConstructorslazy(Supplier<MultipleConstructors> multipleConstructors)
-
Method Details
-
cases
public static <R> MultipleConstructors.Cases<R> cases(MultipleConstructorsSupport.VisitorDispatchMapper<R> visitorDispatch, Function<List<DataConstructor>, R> functionsDispatch) -
lazy
-
cases
-
caseOf
public static MultipleConstructorsSupport.CaseOfMatchers.TotalMatcher_VisitorDispatch caseOf(MultipleConstructors multipleConstructors) -
getVisitorParam
-
getVisitorType
-
getConstructors
-