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 TypeVariableNameannotated(List<AnnotationSpec> annotations)static TypeVariableNameget(TypeVariable<?> type)Returns type variable equivalent totype.static TypeVariableNameget(String name)Returns type variable namednamewithout bounds.static TypeVariableNameget(String name, TypeName... bounds)Returns type variable namednamewithbounds.static TypeVariableNameget(String name, Type... bounds)Returns type variable namednamewithbounds.static TypeVariableNameget(TypeParameterElement element)Returns type variable equivalent toelement.static TypeVariableNameget(TypeVariable mirror)Returns type variable equivalent tomirror.TypeVariableNamewithBounds(TypeName... bounds)TypeVariableNamewithBounds(Type... bounds)TypeVariableNamewithBounds(List<TypeName> bounds)TypeNamewithoutAnnotations()-
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:
withoutAnnotationsin 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 namednamewithout bounds.
-
get
public static TypeVariableName get(String name, TypeName... bounds)
Returns type variable namednamewithbounds.
-
get
public static TypeVariableName get(String name, Type... bounds)
Returns type variable namednamewithbounds.
-
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.
-
-