Package org.derive4j.processor.api.model
Class TypeRestrictions
- java.lang.Object
-
- org.derive4j.processor.api.model.TypeRestrictions
-
public final class TypeRestrictions extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TypeRestrictions.CasesMatchers
private static class
TypeRestrictions.Lazy
private static class
TypeRestrictions.TypeRestriction_
-
Constructor Summary
Constructors Modifier Constructor Description private
TypeRestrictions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TypeRestrictions.CasesMatchers.TotalMatcher_TypeRestriction
cases()
static javax.lang.model.type.TypeMirror
getRefinementType(TypeRestriction typeRestriction)
static javax.lang.model.type.TypeVariable
getRestrictedTypeVariable(TypeRestriction typeRestriction)
static DataArgument
getTypeEq(TypeRestriction typeRestriction)
static TypeRestriction
lazy(java.util.function.Supplier<TypeRestriction> typeRestriction)
static java.util.function.Function<TypeRestriction,TypeRestriction>
modRefinementType(java.util.function.Function<javax.lang.model.type.TypeMirror,javax.lang.model.type.TypeMirror> refinementTypeMod)
static java.util.function.Function<TypeRestriction,TypeRestriction>
modRestrictedTypeVariable(java.util.function.Function<javax.lang.model.type.TypeVariable,javax.lang.model.type.TypeVariable> restrictedTypeVariableMod)
static java.util.function.Function<TypeRestriction,TypeRestriction>
modTypeEq(java.util.function.Function<DataArgument,DataArgument> typeEqMod)
static java.util.function.Function<TypeRestriction,TypeRestriction>
setRefinementType(javax.lang.model.type.TypeMirror newRefinementType)
static java.util.function.Function<TypeRestriction,TypeRestriction>
setRestrictedTypeVariable(javax.lang.model.type.TypeVariable newRestrictedTypeVariable)
static java.util.function.Function<TypeRestriction,TypeRestriction>
setTypeEq(DataArgument newTypeEq)
static TypeRestriction
typeRestriction(javax.lang.model.type.TypeVariable restrictedTypeVariable, javax.lang.model.type.TypeMirror refinementType, DataArgument typeEq)
-
-
-
Method Detail
-
typeRestriction
public static TypeRestriction typeRestriction(javax.lang.model.type.TypeVariable restrictedTypeVariable, javax.lang.model.type.TypeMirror refinementType, DataArgument typeEq)
-
lazy
public static TypeRestriction lazy(java.util.function.Supplier<TypeRestriction> typeRestriction)
-
cases
public static TypeRestrictions.CasesMatchers.TotalMatcher_TypeRestriction cases()
-
getRestrictedTypeVariable
public static javax.lang.model.type.TypeVariable getRestrictedTypeVariable(TypeRestriction typeRestriction)
-
getRefinementType
public static javax.lang.model.type.TypeMirror getRefinementType(TypeRestriction typeRestriction)
-
getTypeEq
public static DataArgument getTypeEq(TypeRestriction typeRestriction)
-
setRestrictedTypeVariable
public static java.util.function.Function<TypeRestriction,TypeRestriction> setRestrictedTypeVariable(javax.lang.model.type.TypeVariable newRestrictedTypeVariable)
-
modRestrictedTypeVariable
public static java.util.function.Function<TypeRestriction,TypeRestriction> modRestrictedTypeVariable(java.util.function.Function<javax.lang.model.type.TypeVariable,javax.lang.model.type.TypeVariable> restrictedTypeVariableMod)
-
setRefinementType
public static java.util.function.Function<TypeRestriction,TypeRestriction> setRefinementType(javax.lang.model.type.TypeMirror newRefinementType)
-
modRefinementType
public static java.util.function.Function<TypeRestriction,TypeRestriction> modRefinementType(java.util.function.Function<javax.lang.model.type.TypeMirror,javax.lang.model.type.TypeMirror> refinementTypeMod)
-
setTypeEq
public static java.util.function.Function<TypeRestriction,TypeRestriction> setTypeEq(DataArgument newTypeEq)
-
modTypeEq
public static java.util.function.Function<TypeRestriction,TypeRestriction> modTypeEq(java.util.function.Function<DataArgument,DataArgument> typeEqMod)
-
-