Class Type.VariableResolver
- java.lang.Object
-
- org.immutables.value.processor.encode.Type.Transformer
-
- org.immutables.value.processor.encode.Type.VariableResolver
-
- All Implemented Interfaces:
com.google.common.base.Function<Type,Type>,java.util.function.Function<Type,Type>,Type.Visitor<Type>
- Enclosing interface:
- Type
public static class Type.VariableResolver extends Type.Transformer implements com.google.common.base.Function<Type,Type>
-
-
Field Summary
Fields Modifier and Type Field Description private static Type.VariableResolverEMPTYprivate Type.Nonprimitive[]substitutionsprivate Type.Variable[]variables
-
Constructor Summary
Constructors Modifier Constructor Description privateVariableResolver(Type.Variable[] variables, Type.Nonprimitive[] substitutions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Typeapply(Type type)Type.VariableResolverbind(Type.Variable variable, Type.Nonprimitive substitution)Type.VariablebyName(java.lang.String named)static Type.VariableResolverempty()booleanisEmpty()java.lang.StringtoString()Typevariable(Type.Variable variable)Type.Variable[]variables()-
Methods inherited from class org.immutables.value.processor.encode.Type.Transformer
array, defaults, extendsWildcard, parameterized, primitive, reference, superWildcard
-
-
-
-
Field Detail
-
EMPTY
private static final Type.VariableResolver EMPTY
-
variables
private final Type.Variable[] variables
-
substitutions
private final Type.Nonprimitive[] substitutions
-
-
Constructor Detail
-
VariableResolver
private VariableResolver(Type.Variable[] variables, Type.Nonprimitive[] substitutions)
-
-
Method Detail
-
empty
public static Type.VariableResolver empty()
-
isEmpty
public boolean isEmpty()
-
variables
public Type.Variable[] variables()
-
variable
public Type variable(Type.Variable variable)
- Specified by:
variablein interfaceType.Visitor<Type>- Overrides:
variablein classType.Transformer
-
byName
@Nullable public Type.Variable byName(java.lang.String named)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
bind
public Type.VariableResolver bind(Type.Variable variable, Type.Nonprimitive substitution)
-
-