public final class TypeVariableName extends TypeName
Modifier and Type | Field and Description |
---|---|
java.util.List<TypeName> |
bounds |
java.lang.String |
name |
Modifier and Type | Method and Description |
---|---|
TypeVariableName |
annotated(java.util.List<AnnotationSpec> annotations) |
static TypeVariableName |
get(java.lang.String name)
Returns type variable named
name without bounds. |
static TypeVariableName |
get(java.lang.String name,
java.lang.reflect.Type... bounds)
Returns type variable named
name with bounds . |
static TypeVariableName |
get(java.lang.String name,
TypeName... bounds)
Returns type variable named
name with bounds . |
static TypeVariableName |
get(javax.lang.model.element.TypeParameterElement element)
Returns type variable equivalent to
element . |
static TypeVariableName |
get(javax.lang.model.type.TypeVariable mirror)
Returns type variable equivalent to
mirror . |
static TypeVariableName |
get(java.lang.reflect.TypeVariable<?> type)
Returns type variable equivalent to
type . |
TypeVariableName |
withBounds(java.util.List<? extends TypeName> bounds) |
TypeVariableName |
withBounds(java.lang.reflect.Type... bounds) |
TypeVariableName |
withBounds(TypeName... bounds) |
TypeName |
withoutAnnotations() |
annotated, box, concatAnnotations, equals, get, get, hashCode, isAnnotated, isBoxedPrimitive, isPrimitive, toString, unbox
public final java.lang.String name
public final java.util.List<TypeName> bounds
public TypeVariableName annotated(java.util.List<AnnotationSpec> annotations)
public TypeName withoutAnnotations()
withoutAnnotations
in class TypeName
public TypeVariableName withBounds(java.lang.reflect.Type... bounds)
public TypeVariableName withBounds(TypeName... bounds)
public TypeVariableName withBounds(java.util.List<? extends TypeName> bounds)
public static TypeVariableName get(java.lang.String name)
name
without bounds.public static TypeVariableName get(java.lang.String name, TypeName... bounds)
name
with bounds
.public static TypeVariableName get(java.lang.String name, java.lang.reflect.Type... bounds)
name
with bounds
.public static TypeVariableName get(javax.lang.model.type.TypeVariable mirror)
mirror
.public static TypeVariableName get(javax.lang.model.element.TypeParameterElement element)
element
.public static TypeVariableName get(java.lang.reflect.TypeVariable<?> type)
type
.Copyright © 2020 Square, Inc.. All Rights Reserved.