Package org.derive4j.processor.api
Class OptionModels
java.lang.Object
org.derive4j.processor.api.OptionModels
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
private static final class
private static final class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncases()
static ExecutableElement
getNoneConstructor
(OptionModel optionModel) static ExecutableElement
getSomeConstructor
(OptionModel optionModel) static TypeElement
getTypeElement
(OptionModel optionModel) static OptionModel
lazy
(Supplier<OptionModel> optionModel) static Function
<OptionModel, OptionModel> modNoneConstructor
(Function<ExecutableElement, ExecutableElement> noneConstructorMod) static Function
<OptionModel, OptionModel> modSomeConstructor
(Function<ExecutableElement, ExecutableElement> someConstructorMod) static Function
<OptionModel, OptionModel> modTypeElement
(Function<TypeElement, TypeElement> typeElementMod) static OptionModel
optionModel
(TypeElement typeElement, ExecutableElement noneConstructor, ExecutableElement someConstructor) static Function
<OptionModel, OptionModel> setNoneConstructor
(ExecutableElement newNoneConstructor) static Function
<OptionModel, OptionModel> setSomeConstructor
(ExecutableElement newSomeConstructor) static Function
<OptionModel, OptionModel> setTypeElement
(TypeElement newTypeElement)
-
Constructor Details
-
OptionModels
private OptionModels()
-
-
Method Details
-
optionModel
public static OptionModel optionModel(TypeElement typeElement, ExecutableElement noneConstructor, ExecutableElement someConstructor) -
lazy
-
cases
-
getTypeElement
-
getNoneConstructor
-
getSomeConstructor
-
setTypeElement
-
modTypeElement
public static Function<OptionModel,OptionModel> modTypeElement(Function<TypeElement, TypeElement> typeElementMod) -
setNoneConstructor
public static Function<OptionModel,OptionModel> setNoneConstructor(ExecutableElement newNoneConstructor) -
modNoneConstructor
public static Function<OptionModel,OptionModel> modNoneConstructor(Function<ExecutableElement, ExecutableElement> noneConstructorMod) -
setSomeConstructor
public static Function<OptionModel,OptionModel> setSomeConstructor(ExecutableElement newSomeConstructor) -
modSomeConstructor
public static Function<OptionModel,OptionModel> modSomeConstructor(Function<ExecutableElement, ExecutableElement> someConstructorMod)
-