Class OptionModels
java.lang.Object
org.derive4j.processor.api.OptionModels
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprivate static final classprivate static final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncases()static ExecutableElementgetNoneConstructor(OptionModel optionModel) static ExecutableElementgetSomeConstructor(OptionModel optionModel) static TypeElementgetTypeElement(OptionModel optionModel) static OptionModellazy(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 OptionModeloptionModel(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)
-