Modifier and Type | Field and Description |
---|---|
java.util.List<TypeVariableName> |
TypeSpec.typeVariables |
private java.util.List<TypeVariableName> |
TypeSpec.Builder.typeVariables |
java.util.List<TypeVariableName> |
MethodSpec.typeVariables |
private java.util.List<TypeVariableName> |
MethodSpec.Builder.typeVariables |
Modifier and Type | Method and Description |
---|---|
TypeVariableName |
TypeVariableName.annotated(java.util.List<AnnotationSpec> annotations) |
static TypeVariableName |
TypeVariableName.get(java.lang.String name)
Returns type variable named
name without bounds. |
static TypeVariableName |
TypeVariableName.get(java.lang.String name,
java.lang.reflect.Type... bounds)
Returns type variable named
name with bounds . |
static TypeVariableName |
TypeVariableName.get(java.lang.String name,
TypeName... bounds)
Returns type variable named
name with bounds . |
static TypeVariableName |
TypeVariableName.get(javax.lang.model.element.TypeParameterElement element)
Returns type variable equivalent to
element . |
static TypeVariableName |
TypeVariableName.get(javax.lang.model.type.TypeVariable mirror)
Returns type variable equivalent to
mirror . |
static TypeVariableName |
TypeVariableName.get(java.lang.reflect.TypeVariable<?> type)
Returns type variable equivalent to
type . |
(package private) static TypeVariableName |
TypeVariableName.get(java.lang.reflect.TypeVariable<?> type,
java.util.Map<java.lang.reflect.Type,TypeVariableName> map) |
(package private) static TypeVariableName |
TypeVariableName.get(javax.lang.model.type.TypeVariable mirror,
java.util.Map<javax.lang.model.element.TypeParameterElement,TypeVariableName> typeVariables)
Make a TypeVariableName for the given TypeMirror.
|
private static TypeVariableName |
TypeVariableName.of(java.lang.String name,
java.util.List<TypeName> bounds) |
TypeVariableName |
TypeVariableName.withBounds(java.util.List<TypeName> bounds) |
TypeVariableName |
TypeVariableName.withBounds(java.lang.reflect.Type... bounds) |
TypeVariableName |
TypeVariableName.withBounds(TypeName... bounds) |
Modifier and Type | Method and Description |
---|---|
TypeSpec.Builder |
TypeSpec.Builder.addTypeVariable(TypeVariableName typeVariable) |
MethodSpec.Builder |
MethodSpec.Builder.addTypeVariable(TypeVariableName typeVariable) |
Modifier and Type | Method and Description |
---|---|
TypeSpec.Builder |
TypeSpec.Builder.addTypeVariables(java.lang.Iterable<TypeVariableName> typeVariables) |
MethodSpec.Builder |
MethodSpec.Builder.addTypeVariables(java.lang.Iterable<TypeVariableName> typeVariables) |
void |
CodeWriter.emitTypeVariables(java.util.List<TypeVariableName> typeVariables)
Emit type variables with their bounds.
|
(package private) static ArrayTypeName |
ArrayTypeName.get(javax.lang.model.type.ArrayType mirror,
java.util.Map<javax.lang.model.element.TypeParameterElement,TypeVariableName> typeVariables) |
(package private) static ArrayTypeName |
ArrayTypeName.get(java.lang.reflect.GenericArrayType type,
java.util.Map<java.lang.reflect.Type,TypeVariableName> map) |
(package private) static ParameterizedTypeName |
ParameterizedTypeName.get(java.lang.reflect.ParameterizedType type,
java.util.Map<java.lang.reflect.Type,TypeVariableName> map)
Returns a parameterized type equivalent to
type . |
(package private) static TypeName |
TypeName.get(java.lang.reflect.Type type,
java.util.Map<java.lang.reflect.Type,TypeVariableName> map) |
(package private) static TypeName |
TypeName.get(javax.lang.model.type.TypeMirror mirror,
java.util.Map<javax.lang.model.element.TypeParameterElement,TypeVariableName> typeVariables) |
(package private) static TypeVariableName |
TypeVariableName.get(java.lang.reflect.TypeVariable<?> type,
java.util.Map<java.lang.reflect.Type,TypeVariableName> map) |
(package private) static TypeVariableName |
TypeVariableName.get(javax.lang.model.type.TypeVariable mirror,
java.util.Map<javax.lang.model.element.TypeParameterElement,TypeVariableName> typeVariables)
Make a TypeVariableName for the given TypeMirror.
|
(package private) static TypeName |
WildcardTypeName.get(javax.lang.model.type.WildcardType mirror,
java.util.Map<javax.lang.model.element.TypeParameterElement,TypeVariableName> typeVariables) |
(package private) static TypeName |
WildcardTypeName.get(java.lang.reflect.WildcardType wildcardName,
java.util.Map<java.lang.reflect.Type,TypeVariableName> map) |
(package private) static java.util.List<TypeName> |
TypeName.list(java.lang.reflect.Type[] types,
java.util.Map<java.lang.reflect.Type,TypeVariableName> map) |