Package org.derive4j.processor.api.model
Class DataConstructors.Constructor
- java.lang.Object
-
- org.derive4j.processor.api.model.DataConstructor
-
- org.derive4j.processor.api.model.DataConstructors.Constructor
-
- Enclosing class:
- DataConstructors
private static final class DataConstructors.Constructor extends DataConstructor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.derive4j.processor.api.model.DataConstructor
DataConstructor.Case<R>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<DataArgument>
arguments
private DataDeconstructor
deconstructor
private int
index
private java.lang.String
name
private javax.lang.model.type.DeclaredType
returnedType
private java.util.List<TypeRestriction>
typeRestrictions
private java.util.List<javax.lang.model.type.TypeVariable>
typeVariables
-
Constructor Summary
Constructors Constructor Description Constructor(java.lang.String name, int index, java.util.List<javax.lang.model.type.TypeVariable> typeVariables, java.util.List<DataArgument> arguments, java.util.List<TypeRestriction> typeRestrictions, javax.lang.model.type.DeclaredType returnedType, DataDeconstructor deconstructor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> R
match(DataConstructor.Case<R> constructor)
-
Methods inherited from class org.derive4j.processor.api.model.DataConstructor
arguments, deconstructor, index, name, returnedType, typeRestrictions, typeVariables
-
-
-
-
Field Detail
-
name
private final java.lang.String name
-
index
private final int index
-
typeVariables
private final java.util.List<javax.lang.model.type.TypeVariable> typeVariables
-
arguments
private final java.util.List<DataArgument> arguments
-
typeRestrictions
private final java.util.List<TypeRestriction> typeRestrictions
-
returnedType
private final javax.lang.model.type.DeclaredType returnedType
-
deconstructor
private final DataDeconstructor deconstructor
-
-
Constructor Detail
-
Constructor
Constructor(java.lang.String name, int index, java.util.List<javax.lang.model.type.TypeVariable> typeVariables, java.util.List<DataArgument> arguments, java.util.List<TypeRestriction> typeRestrictions, javax.lang.model.type.DeclaredType returnedType, DataDeconstructor deconstructor)
-
-
Method Detail
-
match
public <R> R match(DataConstructor.Case<R> constructor)
- Specified by:
match
in classDataConstructor
-
-