Uses of Class
org.derive4j.processor.api.model.DataConstructor
Packages that use DataConstructor
Package
Description
-
Uses of DataConstructor in org.derive4j.processor
Methods in org.derive4j.processor that return types with arguments of type DataConstructorModifier and TypeMethodDescriptionprivate DeriveResult
<DataConstructor> AdtParser.parseDataConstructor
(DeclaredType adtDeclaredType, List<TypeVariable> adtTypeParameters, DataDeconstructor deconstructor, int index) Methods in org.derive4j.processor with parameters of type DataConstructorModifier and TypeMethodDescriptionprivate com.squareup.javapoet.TypeName
CataDerivator.cataMapperTypeName
(AlgebraicDataType adt, DataConstructor dc) (package private) static com.squareup.javapoet.MethodSpec.Builder
PatternMatchingDerivator.constantMatchMethodBuilder
(AlgebraicDataType adt, DataConstructor currentConstructor) private DerivedCodeSpec
StrictConstructorDerivator.constructorSpec
(AlgebraicDataType adt, DataConstructor constructor) private Optional
<com.squareup.javapoet.MethodSpec> StrictConstructorDerivator.deriveEquals
(AlgebraicDataType adt, DataConstructor constructor) private Optional
<com.squareup.javapoet.MethodSpec> StrictConstructorDerivator.deriveHashCode
(AlgebraicDataType adt, DataConstructor constructor) private Optional
<com.squareup.javapoet.MethodSpec> StrictConstructorDerivator.deriveToString
(AlgebraicDataType adt, DataConstructor constructor) private com.squareup.javapoet.CodeBlock
TotalMatchingStepDerivator.functionDispatchImpl
(AlgebraicDataType adt, List<DataConstructor> previousConstructors, DataConstructor currentConstructor) com.squareup.javapoet.CodeBlock
DeriveUtilsImpl.lambdaImpl
(DataConstructor constructor, com.squareup.javapoet.CodeBlock impl) com.squareup.javapoet.CodeBlock
DeriveUtilsImpl.lambdaImpl
(DataConstructor constructor, String suffix, com.squareup.javapoet.CodeBlock impl) MapperDerivator.mapperApplyMethod
(DeriveConfig deriveConfig, DataConstructor dc) static String
MapperDerivator.mapperFieldName
(DataConstructor dc) (package private) static String
MapperDerivator.mapperInterfaceName
(DataConstructor dc) com.squareup.javapoet.TypeName
MapperDerivator.mapperTypeName
(AlgebraicDataType adt, DataConstructor dc) com.squareup.javapoet.TypeName
MapperDerivator.mapperTypeName
(AlgebraicDataType adt, DataConstructor dc, com.squareup.javapoet.TypeName returnType) com.squareup.javapoet.TypeName
MapperDerivator.mapperTypeName
(AlgebraicDataType adt, DataConstructor dc, TypeMirror selfReferenceType, com.squareup.javapoet.TypeName returnType) private com.squareup.javapoet.TypeSpec
MapperDerivator.mapperTypeSpec
(DataConstructor dc) private Stream
<com.squareup.javapoet.TypeVariableName> MapperDerivator.mapperVariables
(DataConstructor dc) private static com.squareup.javapoet.CodeBlock
TotalMatchingStepDerivator.oneConstructorImpl
(DataConstructor currentConstructor, AlgebraicDataType adt) com.squareup.javapoet.CodeBlock
DeriveUtilsImpl.parameterList
(DataConstructor constructor) com.squareup.javapoet.CodeBlock
DeriveUtilsImpl.parameterList
(DataConstructor constructor, String suffix) private static String
PartialMatchingStepDerivator.partialMatchBuilderClassName
(DataConstructor currentConstructor) (package private) com.squareup.javapoet.TypeSpec
PartialMatchingStepDerivator.partialMatchingStepTypeSpec
(AlgebraicDataType adt, List<DataConstructor> previousConstructors, DataConstructor currentConstructor, List<DataConstructor> nextConstructors) (package private) Stream
<com.squareup.javapoet.MethodSpec.Builder> PartialMatchingStepDerivator.partialMatchMethodBuilder
(AlgebraicDataType adt, List<DataConstructor> previousConstructors, int nbSkipConstructors, DataConstructor currentConstructor, com.squareup.javapoet.ParameterizedTypeName returnType) (package private) static boolean
StrictConstructorDerivator.smartConstructor
(DataConstructor constructor, DeriveConfig deriveConfig) (package private) com.squareup.javapoet.TypeSpec
TotalMatchingStepDerivator.stepTypeSpec
(AlgebraicDataType adt, List<DataConstructor> previousConstructors, DataConstructor currentConstructor, List<DataConstructor> nextConstructors) (package private) static String
TotalMatchingStepDerivator.totalMatchBuilderClassName
(DataConstructor currentConstructor) com.squareup.javapoet.TypeName
MapperDerivator.visitorMapperTypeName
(AlgebraicDataType adt, DataConstructor dc) private com.squareup.javapoet.CodeBlock
TotalMatchingStepDerivator.vistorDispatchImpl
(AlgebraicDataType adt, DeclaredType visitorType, VariableElement visitorParam, List<DataConstructor> previousConstructors, DataConstructor currentConstructor) Method parameters in org.derive4j.processor with type arguments of type DataConstructorModifier and TypeMethodDescriptionprivate DerivedCodeSpec
CataDerivator.cataVisitor
(AlgebraicDataType adt, DeclaredType visitorType, List<DataConstructor> constructors) private DerivedCodeSpec
MapperDerivator.createVisitorFactoryAndMappers
(AlgebraicDataType adt, DeclaredType acceptedVisitorType, List<DataConstructor> constructors) private DerivedCodeSpec
FactoryDerivator.factory
(AlgebraicDataType adt, DeclaredType visitorType, List<DataConstructor> constructors) private DeriveResult
<DerivedCodeSpec> CataDerivator.functionDispatchImpl
(AlgebraicDataType adt, List<DataConstructor> constructors) private com.squareup.javapoet.CodeBlock
TotalMatchingStepDerivator.functionDispatchImpl
(AlgebraicDataType adt, List<DataConstructor> previousConstructors, DataConstructor currentConstructor) private com.squareup.javapoet.CodeBlock
OtherwiseMatchingStepDerivator.functionsDispatchEitherImpl
(TypeElement f0, EitherModel eitherModel, com.squareup.javapoet.TypeName eitherTypeName, AlgebraicDataType adt, List<DataConstructor> constructors, String argName) private com.squareup.javapoet.CodeBlock
OtherwiseMatchingStepDerivator.functionsDispatchImpl
(TypeElement f0, AlgebraicDataType adt, List<DataConstructor> constructors) private static DerivedCodeSpec
GettersDerivator.functionsDispatchOptionalGetterImpl
(OptionModel optionModel, AlgebraicDataType adt, String arg, List<DataConstructor> constructors, DataArgument field, DeclaredType returnType) private com.squareup.javapoet.CodeBlock
OtherwiseMatchingStepDerivator.functionsDispatchOptionImpl
(OptionModel optionModel, AlgebraicDataType adt, List<DataConstructor> constructors) private static boolean
GettersDerivator.isLens
(DataArgument field, List<DataConstructor> constructors) private static com.squareup.javapoet.NameAllocator
CataDerivator.nameAllocator
(AlgebraicDataType adt, List<DataConstructor> constructors) private static com.squareup.javapoet.CodeBlock
GettersDerivator.optionalGetterLambdas
(String arg, OptionModel optionModel, List<DataConstructor> constructors, DataArgument field) (package private) com.squareup.javapoet.TypeSpec
PartialMatchingStepDerivator.partialMatchingStepTypeSpec
(AlgebraicDataType adt, List<DataConstructor> previousConstructors, DataConstructor currentConstructor, List<DataConstructor> nextConstructors) (package private) Stream
<com.squareup.javapoet.MethodSpec.Builder> PartialMatchingStepDerivator.partialMatchMethodBuilder
(AlgebraicDataType adt, List<DataConstructor> previousConstructors, int nbSkipConstructors, DataConstructor currentConstructor, com.squareup.javapoet.ParameterizedTypeName returnType) (package private) com.squareup.javapoet.TypeSpec
TotalMatchingStepDerivator.stepTypeSpec
(AlgebraicDataType adt, List<DataConstructor> previousConstructors, DataConstructor currentConstructor, List<DataConstructor> nextConstructors) (package private) static com.squareup.javapoet.ParameterizedTypeName
PartialMatchingStepDerivator.superClass
(AlgebraicDataType adt, PatternMatchingDerivator.MatchingKind matchingKind, List<DataConstructor> nextConstructors) private DeriveResult
<DerivedCodeSpec> CataDerivator.visitorDispatchImpl
(AlgebraicDataType adt, DeclaredType visitorType, List<DataConstructor> constructors) private DerivedCodeSpec
GettersDerivator.visitorDispatchOptionalGetterImpl
(OptionModel optionModel, AlgebraicDataType adt, DeclaredType visitorType, List<DataConstructor> constructors, String arg, DataArgument field, DeclaredType returnType) private com.squareup.javapoet.CodeBlock
TotalMatchingStepDerivator.vistorDispatchImpl
(AlgebraicDataType adt, DeclaredType visitorType, VariableElement visitorParam, List<DataConstructor> previousConstructors, DataConstructor currentConstructor) -
Uses of DataConstructor in org.derive4j.processor.api
Methods in org.derive4j.processor.api with parameters of type DataConstructorModifier and TypeMethodDescriptioncom.squareup.javapoet.CodeBlock
DeriveUtils.lambdaImpl
(DataConstructor constructor, com.squareup.javapoet.CodeBlock impl) com.squareup.javapoet.CodeBlock
DeriveUtils.lambdaImpl
(DataConstructor constructor, String suffix, com.squareup.javapoet.CodeBlock impl) com.squareup.javapoet.CodeBlock
DeriveUtils.parameterList
(DataConstructor constructor) com.squareup.javapoet.CodeBlock
DeriveUtils.parameterList
(DataConstructor constructor, String suffix) Method parameters in org.derive4j.processor.api with type arguments of type DataConstructorModifier and TypeMethodDescriptioncom.squareup.javapoet.CodeBlock
InstanceUtils.matchImpl
(Function<DataConstructor, com.squareup.javapoet.CodeBlock> lambdaImpl) -
Uses of DataConstructor in org.derive4j.processor.api.model
Subclasses of DataConstructor in org.derive4j.processor.api.modelModifier and TypeClassDescriptionprivate static final class
private static final class
Fields in org.derive4j.processor.api.model declared as DataConstructorModifier and TypeFieldDescriptionprivate final DataConstructor
DataConstructions.OneConstructor.constructor
private DataConstructor
DataConstructors.Lazy.evaluation
Fields in org.derive4j.processor.api.model with type parameters of type DataConstructorModifier and TypeFieldDescriptionprivate static final DataConstruction.Cases
<Optional<DataConstructor>> DataConstructions.constructorGetter
private final List
<DataConstructor> MultipleConstructorsSupport.FunctionsDispatch.constructors
private final List
<DataConstructor> MultipleConstructorsSupport.VisitorDispatch.constructors
private static final MultipleConstructors.Cases
<List<DataConstructor>> MultipleConstructorsSupport.constructorsGetter
private Supplier
<DataConstructor> DataConstructors.Lazy.expression
private final Function
<List<DataConstructor>, R> MultipleConstructorsSupport.CaseOfMatchers.PartialMatcher.functionsDispatch
private final Function
<List<DataConstructor>, R> MultipleConstructorsSupport.CasesMatchers.PartialMatcher.functionsDispatch
private final Function
<List<DataConstructor>, R> MultipleConstructorsSupport.LambdaCases.functionsDispatch
private static final Function
<DataConstruction, List<DataConstructor>> DataConstruction.getConstructors
private final Function
<DataConstructor, R> DataConstructions.CaseOfMatchers.PartialMatcher.oneConstructor
private final Function
<DataConstructor, R> DataConstructions.CasesMatchers.PartialMatcher.oneConstructor
private final Function
<DataConstructor, R> DataConstructions.LambdaCases.oneConstructor
Methods in org.derive4j.processor.api.model that return DataConstructorModifier and TypeMethodDescriptionprivate DataConstructor
DataConstructors.Lazy._evaluate()
static DataConstructor
DataConstructors.constructor
(String name, int index, List<TypeVariable> typeVariables, List<DataArgument> arguments, List<TypeRestriction> typeRestrictions, DeclaredType returnedType, DataDeconstructor deconstructor) static DataConstructor
DataConstructors.lazy
(Supplier<DataConstructor> dataConstructor) Methods in org.derive4j.processor.api.model that return types with arguments of type DataConstructorModifier and TypeMethodDescriptionfinal <R> Function
<DataConstructor, R> DataConstructors.CasesMatchers.TotalMatcher_Constructor.constructor
(DataConstructor.Case<R> constructor) final <R> Function
<DataConstructor, R> DataConstructors.CasesMatchers.TotalMatcher_Constructor.constructor_
(R r) DataConstruction.constructors()
MultipleConstructors.constructors()
static Optional
<DataConstructor> DataConstructions.getConstructor
(DataConstruction dataConstruction) static List
<DataConstructor> MultipleConstructorsSupport.getConstructors
(MultipleConstructors multipleConstructors) static Function
<DataConstructor, DataConstructor> DataConstructors.modArguments
(Function<List<DataArgument>, List<DataArgument>> argumentsMod) static Function
<DataConstructor, DataConstructor> DataConstructors.modArguments
(Function<List<DataArgument>, List<DataArgument>> argumentsMod) static Function
<DataConstructor, DataConstructor> DataConstructors.modDeconstructor
(Function<DataDeconstructor, DataDeconstructor> deconstructorMod) static Function
<DataConstructor, DataConstructor> DataConstructors.modDeconstructor
(Function<DataDeconstructor, DataDeconstructor> deconstructorMod) static Function
<DataConstructor, DataConstructor> static Function
<DataConstructor, DataConstructor> static Function
<DataConstructor, DataConstructor> static Function
<DataConstructor, DataConstructor> static Function
<DataConstructor, DataConstructor> DataConstructors.modReturnedType
(Function<DeclaredType, DeclaredType> returnedTypeMod) static Function
<DataConstructor, DataConstructor> DataConstructors.modReturnedType
(Function<DeclaredType, DeclaredType> returnedTypeMod) static Function
<DataConstructor, DataConstructor> DataConstructors.modTypeRestrictions
(Function<List<TypeRestriction>, List<TypeRestriction>> typeRestrictionsMod) static Function
<DataConstructor, DataConstructor> DataConstructors.modTypeRestrictions
(Function<List<TypeRestriction>, List<TypeRestriction>> typeRestrictionsMod) static Function
<DataConstructor, DataConstructor> DataConstructors.modTypeVariables
(Function<List<TypeVariable>, List<TypeVariable>> typeVariablesMod) static Function
<DataConstructor, DataConstructor> DataConstructors.modTypeVariables
(Function<List<TypeVariable>, List<TypeVariable>> typeVariablesMod) static Function
<DataConstructor, DataConstructor> DataConstructors.setArguments
(List<DataArgument> newArguments) static Function
<DataConstructor, DataConstructor> DataConstructors.setArguments
(List<DataArgument> newArguments) static Function
<DataConstructor, DataConstructor> DataConstructors.setDeconstructor
(DataDeconstructor newDeconstructor) static Function
<DataConstructor, DataConstructor> DataConstructors.setDeconstructor
(DataDeconstructor newDeconstructor) static Function
<DataConstructor, DataConstructor> static Function
<DataConstructor, DataConstructor> static Function
<DataConstructor, DataConstructor> static Function
<DataConstructor, DataConstructor> static Function
<DataConstructor, DataConstructor> DataConstructors.setReturnedType
(DeclaredType newReturnedType) static Function
<DataConstructor, DataConstructor> DataConstructors.setReturnedType
(DeclaredType newReturnedType) static Function
<DataConstructor, DataConstructor> DataConstructors.setTypeRestrictions
(List<TypeRestriction> newTypeRestrictions) static Function
<DataConstructor, DataConstructor> DataConstructors.setTypeRestrictions
(List<TypeRestriction> newTypeRestrictions) static Function
<DataConstructor, DataConstructor> DataConstructors.setTypeVariables
(List<TypeVariable> newTypeVariables) static Function
<DataConstructor, DataConstructor> DataConstructors.setTypeVariables
(List<TypeVariable> newTypeVariables) Methods in org.derive4j.processor.api.model with parameters of type DataConstructorModifier and TypeMethodDescriptionstatic List
<DataArgument> DataConstructors.getArguments
(DataConstructor dataConstructor) static DataDeconstructor
DataConstructors.getDeconstructor
(DataConstructor dataConstructor) static int
DataConstructors.getIndex
(DataConstructor dataConstructor) static String
DataConstructors.getName
(DataConstructor dataConstructor) static DeclaredType
DataConstructors.getReturnedType
(DataConstructor dataConstructor) static List
<TypeRestriction> DataConstructors.getTypeRestrictions
(DataConstructor dataConstructor) static List
<TypeVariable> DataConstructors.getTypeVariables
(DataConstructor dataConstructor) DataConstruction.Cases.oneConstructor
(DataConstructor constructor) static DataConstruction
DataConstruction.oneConstructor
(DataConstructor constructor) DataConstructions.LambdaCases.oneConstructor
(DataConstructor constructor) static DataConstruction
DataConstructions.oneConstructor
(DataConstructor constructor) static Function
<DataConstruction, DataConstruction> DataConstructions.setConstructor
(DataConstructor newConstructor) Method parameters in org.derive4j.processor.api.model with type arguments of type DataConstructorModifier and TypeMethodDescriptionstatic <R> MultipleConstructors.Cases
<R> MultipleConstructorsSupport.cases
(MultipleConstructorsSupport.VisitorDispatchMapper<R> visitorDispatch, Function<List<DataConstructor>, R> functionsDispatch) MultipleConstructors.Cases.functionsDispatch
(List<DataConstructor> constructors) static MultipleConstructors
MultipleConstructors.functionsDispatch
(List<DataConstructor> constructors) final R
MultipleConstructorsSupport.CaseOfMatchers.TotalMatcher_FunctionsDispatch.functionsDispatch
(Function<List<DataConstructor>, R> functionsDispatch) MultipleConstructorsSupport.CaseOfMatchers.TotalMatcher_VisitorDispatch.functionsDispatch
(Function<List<DataConstructor>, R> functionsDispatch) final Function
<MultipleConstructors, R> MultipleConstructorsSupport.CasesMatchers.TotalMatcher_FunctionsDispatch.functionsDispatch
(Function<List<DataConstructor>, R> functionsDispatch) MultipleConstructorsSupport.CasesMatchers.TotalMatcher_VisitorDispatch.functionsDispatch
(Function<List<DataConstructor>, R> functionsDispatch) MultipleConstructorsSupport.LambdaCases.functionsDispatch
(List<DataConstructor> constructors) (package private) static MultipleConstructors
MultipleConstructorsSupport.functionsDispatch0
(List<DataConstructor> constructors) static DataConstructor
DataConstructors.lazy
(Supplier<DataConstructor> dataConstructor) static Function
<DataConstruction, DataConstruction> DataConstructions.modConstructor
(Function<DataConstructor, DataConstructor> constructorMod) static Function
<DataConstruction, DataConstruction> DataConstructions.modConstructor
(Function<DataConstructor, DataConstructor> constructorMod) (package private) static Function
<MultipleConstructors, MultipleConstructors> MultipleConstructorsSupport.modConstructors0
(Function<List<DataConstructor>, List<DataConstructor>> constructorsMod) (package private) static Function
<MultipleConstructors, MultipleConstructors> MultipleConstructorsSupport.modConstructors0
(Function<List<DataConstructor>, List<DataConstructor>> constructorsMod) DataConstructions.CaseOfMatchers.TotalMatcher_MultipleConstructors.oneConstructor
(Function<DataConstructor, R> oneConstructor) DataConstructions.CaseOfMatchers.TotalMatcher_OneConstructor.oneConstructor
(Function<DataConstructor, R> oneConstructor) DataConstructions.CasesMatchers.TotalMatcher_MultipleConstructors.oneConstructor
(Function<DataConstructor, R> oneConstructor) DataConstructions.CasesMatchers.TotalMatcher_OneConstructor.oneConstructor
(Function<DataConstructor, R> oneConstructor) (package private) static Function
<MultipleConstructors, MultipleConstructors> MultipleConstructorsSupport.setConstructors0
(List<DataConstructor> newConstructors) MultipleConstructors.Cases.visitorDispatch
(VariableElement visitorParam, DeclaredType visitorType, List<DataConstructor> constructors) static MultipleConstructors
MultipleConstructors.visitorDispatch
(VariableElement visitorParam, DeclaredType visitorType, List<DataConstructor> constructors) MultipleConstructorsSupport.LambdaCases.visitorDispatch
(VariableElement visitorParam, DeclaredType visitorType, List<DataConstructor> constructors) MultipleConstructorsSupport.VisitorDispatchMapper.visitorDispatch
(VariableElement visitorParam, DeclaredType visitorType, List<DataConstructor> constructors) (package private) static MultipleConstructors
MultipleConstructorsSupport.visitorDispatch0
(VariableElement visitorParam, DeclaredType visitorType, List<DataConstructor> constructors) Constructors in org.derive4j.processor.api.model with parameters of type DataConstructorConstructor parameters in org.derive4j.processor.api.model with type arguments of type DataConstructorModifierConstructorDescription(package private)
FunctionsDispatch
(List<DataConstructor> constructors) (package private)
LambdaCases
(MultipleConstructorsSupport.VisitorDispatchMapper<R> visitorDispatch, Function<List<DataConstructor>, R> functionsDispatch) (package private)
Lazy
(Supplier<DataConstructor> dataConstructor) (package private)
PartialMatcher
(MultipleConstructors _multipleConstructors, MultipleConstructorsSupport.VisitorDispatchMapper<R> visitorDispatch, Function<List<DataConstructor>, R> functionsDispatch) (package private)
PartialMatcher
(MultipleConstructorsSupport.VisitorDispatchMapper<R> visitorDispatch, Function<List<DataConstructor>, R> functionsDispatch) (package private)
VisitorDispatch
(VariableElement visitorParam, DeclaredType visitorType, List<DataConstructor> constructors)