Package com.squareup.javapoet
Class TypeVariableName
- java.lang.Object
-
- com.squareup.javapoet.TypeName
-
- com.squareup.javapoet.TypeVariableName
-
public final class TypeVariableName extends TypeName
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeVariableName
annotated(List<AnnotationSpec> annotations)
static TypeVariableName
get(TypeVariable<?> type)
Returns type variable equivalent totype
.static TypeVariableName
get(String name)
Returns type variable namedname
without bounds.static TypeVariableName
get(String name, TypeName... bounds)
Returns type variable namedname
withbounds
.static TypeVariableName
get(String name, Type... bounds)
Returns type variable namedname
withbounds
.static TypeVariableName
get(TypeParameterElement element)
Returns type variable equivalent toelement
.static TypeVariableName
get(TypeVariable mirror)
Returns type variable equivalent tomirror
.TypeVariableName
withBounds(TypeName... bounds)
TypeVariableName
withBounds(Type... bounds)
TypeVariableName
withBounds(List<TypeName> bounds)
TypeName
withoutAnnotations()
-
Methods inherited from class com.squareup.javapoet.TypeName
annotated, box, concatAnnotations, equals, get, get, hashCode, isAnnotated, isBoxedPrimitive, isPrimitive, toString, unbox
-
-
-
-
Method Detail
-
annotated
public TypeVariableName annotated(List<AnnotationSpec> annotations)
-
withoutAnnotations
public TypeName withoutAnnotations()
- Overrides:
withoutAnnotations
in classTypeName
-
withBounds
public TypeVariableName withBounds(Type... bounds)
-
withBounds
public TypeVariableName withBounds(TypeName... bounds)
-
withBounds
public TypeVariableName withBounds(List<TypeName> bounds)
-
get
public static TypeVariableName get(String name)
Returns type variable namedname
without bounds.
-
get
public static TypeVariableName get(String name, TypeName... bounds)
Returns type variable namedname
withbounds
.
-
get
public static TypeVariableName get(String name, Type... bounds)
Returns type variable namedname
withbounds
.
-
get
public static TypeVariableName get(TypeVariable mirror)
Returns type variable equivalent tomirror
.
-
get
public static TypeVariableName get(TypeParameterElement element)
Returns type variable equivalent toelement
.
-
get
public static TypeVariableName get(TypeVariable<?> type)
Returns type variable equivalent totype
.
-
-