Package org.derive4j.processor.api
Class ObjectModels
java.lang.Object
org.derive4j.processor.api.ObjectModels
-
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 TypeElement
getClassModel
(ObjectModel objectModel) static ExecutableElement
getEquals
(ObjectModel objectModel) static ExecutableElement
getHashCode
(ObjectModel objectModel) static ExecutableElement
getToString
(ObjectModel objectModel) static ObjectModel
lazy
(Supplier<ObjectModel> objectModel) static Function
<ObjectModel, ObjectModel> modClassModel
(Function<TypeElement, TypeElement> classModelMod) static Function
<ObjectModel, ObjectModel> modEquals
(Function<ExecutableElement, ExecutableElement> equalsMod) static Function
<ObjectModel, ObjectModel> modHashCode
(Function<ExecutableElement, ExecutableElement> hashCodeMod) static Function
<ObjectModel, ObjectModel> modToString
(Function<ExecutableElement, ExecutableElement> toStringMod) static ObjectModel
ObjectModel
(TypeElement classModel, ExecutableElement equals, ExecutableElement hashCode, ExecutableElement toString) static Function
<ObjectModel, ObjectModel> setClassModel
(TypeElement newClassModel) static Function
<ObjectModel, ObjectModel> setEquals
(ExecutableElement newEquals) static Function
<ObjectModel, ObjectModel> setHashCode
(ExecutableElement newHashCode) static Function
<ObjectModel, ObjectModel> setToString
(ExecutableElement newToString)
-
Constructor Details
-
ObjectModels
private ObjectModels()
-
-
Method Details
-
ObjectModel
public static ObjectModel ObjectModel(TypeElement classModel, ExecutableElement equals, ExecutableElement hashCode, ExecutableElement toString) -
lazy
-
cases
-
getClassModel
-
getEquals
-
getHashCode
-
getToString
-
setClassModel
-
modClassModel
public static Function<ObjectModel,ObjectModel> modClassModel(Function<TypeElement, TypeElement> classModelMod) -
setEquals
-
modEquals
public static Function<ObjectModel,ObjectModel> modEquals(Function<ExecutableElement, ExecutableElement> equalsMod) -
setHashCode
-
modHashCode
public static Function<ObjectModel,ObjectModel> modHashCode(Function<ExecutableElement, ExecutableElement> hashCodeMod) -
setToString
-
modToString
public static Function<ObjectModel,ObjectModel> modToString(Function<ExecutableElement, ExecutableElement> toStringMod)
-