Class DataConstructors
java.lang.Object
org.derive4j.processor.api.model.DataConstructors
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprivate static final classprivate static final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncases()static DataConstructorconstructor(String name, int index, List<TypeVariable> typeVariables, List<DataArgument> arguments, List<TypeRestriction> typeRestrictions, DeclaredType returnedType, DataDeconstructor deconstructor) static List<DataArgument> getArguments(DataConstructor dataConstructor) static DataDeconstructorgetDeconstructor(DataConstructor dataConstructor) static intgetIndex(DataConstructor dataConstructor) static StringgetName(DataConstructor dataConstructor) static DeclaredTypegetReturnedType(DataConstructor dataConstructor) static List<TypeRestriction> getTypeRestrictions(DataConstructor dataConstructor) static List<TypeVariable> getTypeVariables(DataConstructor dataConstructor) static DataConstructorlazy(Supplier<DataConstructor> dataConstructor) static Function<DataConstructor, DataConstructor> modArguments(Function<List<DataArgument>, List<DataArgument>> argumentsMod) static Function<DataConstructor, DataConstructor> modDeconstructor(Function<DataDeconstructor, DataDeconstructor> deconstructorMod) static Function<DataConstructor, DataConstructor> static Function<DataConstructor, DataConstructor> static Function<DataConstructor, DataConstructor> modReturnedType(Function<DeclaredType, DeclaredType> returnedTypeMod) static Function<DataConstructor, DataConstructor> modTypeRestrictions(Function<List<TypeRestriction>, List<TypeRestriction>> typeRestrictionsMod) static Function<DataConstructor, DataConstructor> modTypeVariables(Function<List<TypeVariable>, List<TypeVariable>> typeVariablesMod) static Function<DataConstructor, DataConstructor> setArguments(List<DataArgument> newArguments) static Function<DataConstructor, DataConstructor> setDeconstructor(DataDeconstructor newDeconstructor) static Function<DataConstructor, DataConstructor> static Function<DataConstructor, DataConstructor> static Function<DataConstructor, DataConstructor> setReturnedType(DeclaredType newReturnedType) static Function<DataConstructor, DataConstructor> setTypeRestrictions(List<TypeRestriction> newTypeRestrictions) static Function<DataConstructor, DataConstructor> setTypeVariables(List<TypeVariable> newTypeVariables)
-
Constructor Details
-
DataConstructors
private DataConstructors()
-
-
Method Details
-
constructor
public static DataConstructor constructor(String name, int index, List<TypeVariable> typeVariables, List<DataArgument> arguments, List<TypeRestriction> typeRestrictions, DeclaredType returnedType, DataDeconstructor deconstructor) -
lazy
-
cases
-
getName
-
getIndex
-
getTypeVariables
-
getArguments
-
getTypeRestrictions
-
getReturnedType
-
getDeconstructor
-
setName
-
modName
-
setIndex
-
modIndex
public static Function<DataConstructor, DataConstructor> modIndex(Function<Integer, Integer> indexMod) -
setTypeVariables
public static Function<DataConstructor, DataConstructor> setTypeVariables(List<TypeVariable> newTypeVariables) -
modTypeVariables
public static Function<DataConstructor, DataConstructor> modTypeVariables(Function<List<TypeVariable>, List<TypeVariable>> typeVariablesMod) -
setArguments
public static Function<DataConstructor, DataConstructor> setArguments(List<DataArgument> newArguments) -
modArguments
public static Function<DataConstructor, DataConstructor> modArguments(Function<List<DataArgument>, List<DataArgument>> argumentsMod) -
setTypeRestrictions
public static Function<DataConstructor, DataConstructor> setTypeRestrictions(List<TypeRestriction> newTypeRestrictions) -
modTypeRestrictions
public static Function<DataConstructor, DataConstructor> modTypeRestrictions(Function<List<TypeRestriction>, List<TypeRestriction>> typeRestrictionsMod) -
setReturnedType
public static Function<DataConstructor, DataConstructor> setReturnedType(DeclaredType newReturnedType) -
modReturnedType
public static Function<DataConstructor, DataConstructor> modReturnedType(Function<DeclaredType, DeclaredType> returnedTypeMod) -
setDeconstructor
public static Function<DataConstructor, DataConstructor> setDeconstructor(DataDeconstructor newDeconstructor) -
modDeconstructor
public static Function<DataConstructor, DataConstructor> modDeconstructor(Function<DataDeconstructor, DataDeconstructor> deconstructorMod)
-