Class DataDeconstructors
java.lang.Object
org.derive4j.processor.api.model.DataDeconstructors
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprivate static final classprivate static final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncases()static DataDeconstructordeconstructor(VariableElement visitorParam, DeclaredType visitorType, ExecutableType methodType, ExecutableType visitorMethodType, ExecutableElement method, List<TypeVariable> argumentTypeVariables, TypeVariable returnTypeVariable) static List<TypeVariable> getArgumentTypeVariables(DataDeconstructor dataDeconstructor) static ExecutableElementgetMethod(DataDeconstructor dataDeconstructor) static ExecutableTypegetMethodType(DataDeconstructor dataDeconstructor) static TypeVariablegetReturnTypeVariable(DataDeconstructor dataDeconstructor) static ExecutableTypegetVisitorMethodType(DataDeconstructor dataDeconstructor) static VariableElementgetVisitorParam(DataDeconstructor dataDeconstructor) static DeclaredTypegetVisitorType(DataDeconstructor dataDeconstructor) static DataDeconstructorlazy(Supplier<DataDeconstructor> dataDeconstructor) static Function<DataDeconstructor, DataDeconstructor> modArgumentTypeVariables(Function<List<TypeVariable>, List<TypeVariable>> argumentTypeVariablesMod) static Function<DataDeconstructor, DataDeconstructor> modMethod(Function<ExecutableElement, ExecutableElement> methodMod) static Function<DataDeconstructor, DataDeconstructor> modMethodType(Function<ExecutableType, ExecutableType> methodTypeMod) static Function<DataDeconstructor, DataDeconstructor> modReturnTypeVariable(Function<TypeVariable, TypeVariable> returnTypeVariableMod) static Function<DataDeconstructor, DataDeconstructor> modVisitorMethodType(Function<ExecutableType, ExecutableType> visitorMethodTypeMod) static Function<DataDeconstructor, DataDeconstructor> modVisitorParam(Function<VariableElement, VariableElement> visitorParamMod) static Function<DataDeconstructor, DataDeconstructor> modVisitorType(Function<DeclaredType, DeclaredType> visitorTypeMod) static Function<DataDeconstructor, DataDeconstructor> setArgumentTypeVariables(List<TypeVariable> newArgumentTypeVariables) static Function<DataDeconstructor, DataDeconstructor> setMethod(ExecutableElement newMethod) static Function<DataDeconstructor, DataDeconstructor> setMethodType(ExecutableType newMethodType) static Function<DataDeconstructor, DataDeconstructor> setReturnTypeVariable(TypeVariable newReturnTypeVariable) static Function<DataDeconstructor, DataDeconstructor> setVisitorMethodType(ExecutableType newVisitorMethodType) static Function<DataDeconstructor, DataDeconstructor> setVisitorParam(VariableElement newVisitorParam) static Function<DataDeconstructor, DataDeconstructor> setVisitorType(DeclaredType newVisitorType)
-
Constructor Details
-
DataDeconstructors
private DataDeconstructors()
-
-
Method Details
-
deconstructor
public static DataDeconstructor deconstructor(VariableElement visitorParam, DeclaredType visitorType, ExecutableType methodType, ExecutableType visitorMethodType, ExecutableElement method, List<TypeVariable> argumentTypeVariables, TypeVariable returnTypeVariable) -
lazy
-
cases
-
getVisitorParam
-
getVisitorType
-
getMethodType
-
getVisitorMethodType
-
getMethod
-
getArgumentTypeVariables
-
getReturnTypeVariable
-
setVisitorParam
public static Function<DataDeconstructor, DataDeconstructor> setVisitorParam(VariableElement newVisitorParam) -
modVisitorParam
public static Function<DataDeconstructor, DataDeconstructor> modVisitorParam(Function<VariableElement, VariableElement> visitorParamMod) -
setVisitorType
public static Function<DataDeconstructor, DataDeconstructor> setVisitorType(DeclaredType newVisitorType) -
modVisitorType
public static Function<DataDeconstructor, DataDeconstructor> modVisitorType(Function<DeclaredType, DeclaredType> visitorTypeMod) -
setMethodType
public static Function<DataDeconstructor, DataDeconstructor> setMethodType(ExecutableType newMethodType) -
modMethodType
public static Function<DataDeconstructor, DataDeconstructor> modMethodType(Function<ExecutableType, ExecutableType> methodTypeMod) -
setVisitorMethodType
public static Function<DataDeconstructor, DataDeconstructor> setVisitorMethodType(ExecutableType newVisitorMethodType) -
modVisitorMethodType
public static Function<DataDeconstructor, DataDeconstructor> modVisitorMethodType(Function<ExecutableType, ExecutableType> visitorMethodTypeMod) -
setMethod
-
modMethod
public static Function<DataDeconstructor, DataDeconstructor> modMethod(Function<ExecutableElement, ExecutableElement> methodMod) -
setArgumentTypeVariables
public static Function<DataDeconstructor, DataDeconstructor> setArgumentTypeVariables(List<TypeVariable> newArgumentTypeVariables) -
modArgumentTypeVariables
public static Function<DataDeconstructor, DataDeconstructor> modArgumentTypeVariables(Function<List<TypeVariable>, List<TypeVariable>> argumentTypeVariablesMod) -
setReturnTypeVariable
public static Function<DataDeconstructor, DataDeconstructor> setReturnTypeVariable(TypeVariable newReturnTypeVariable) -
modReturnTypeVariable
public static Function<DataDeconstructor, DataDeconstructor> modReturnTypeVariable(Function<TypeVariable, TypeVariable> returnTypeVariableMod)
-