Package org.derive4j.processor.api.model
Class MultipleConstructors
- java.lang.Object
-
- org.derive4j.processor.api.model.MultipleConstructors
-
- Direct Known Subclasses:
MultipleConstructorsSupport.FunctionsDispatch
,MultipleConstructorsSupport.Lazy
,MultipleConstructorsSupport.VisitorDispatch
@Data(@Derive(inClass="MultipleConstructorsSupport",withVisibility=Smart)) public abstract class MultipleConstructors extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
MultipleConstructors.Cases<R>
-
Constructor Summary
Constructors Constructor Description MultipleConstructors()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.List<DataConstructor>
constructors()
static MultipleConstructors
functionsDispatch(java.util.List<DataConstructor> constructors)
boolean
isVisitorDispatch()
abstract <R> R
match(MultipleConstructors.Cases<R> cases)
static MultipleConstructors
visitorDispatch(javax.lang.model.element.VariableElement visitorParam, javax.lang.model.type.DeclaredType visitorType, java.util.List<DataConstructor> constructors)
-
-
-
Method Detail
-
visitorDispatch
public static MultipleConstructors visitorDispatch(javax.lang.model.element.VariableElement visitorParam, javax.lang.model.type.DeclaredType visitorType, java.util.List<DataConstructor> constructors)
-
functionsDispatch
public static MultipleConstructors functionsDispatch(java.util.List<DataConstructor> constructors)
-
match
public abstract <R> R match(MultipleConstructors.Cases<R> cases)
-
isVisitorDispatch
public boolean isVisitorDispatch()
-
constructors
public java.util.List<DataConstructor> constructors()
-
-