Uses of Class
com.squareup.javapoet.TypeName
-
Uses of TypeName in com.squareup.javapoet
Subclasses of TypeName in com.squareup.javapoetModifier and TypeClassDescriptionfinal classfinal classA fully-qualified class name for top-level and member classes.final classfinal classfinal classFields in com.squareup.javapoet declared as TypeNameModifier and TypeFieldDescriptionstatic final TypeNameTypeName.BOOLEANstatic final TypeNameTypeName.BYTEstatic final TypeNameTypeName.CHARfinal TypeNameArrayTypeName.componentTypestatic final TypeNameTypeName.DOUBLEstatic final TypeNameTypeName.FLOATstatic final TypeNameTypeName.INTstatic final TypeNameTypeName.LONGprivate TypeNameMethodSpec.Builder.returnTypefinal TypeNameMethodSpec.returnTypestatic final TypeNameTypeName.SHORTprivate TypeNameTypeSpec.Builder.superclassfinal TypeNameTypeSpec.superclassprivate final TypeNameAnnotationSpec.Builder.typefinal TypeNameAnnotationSpec.typeprivate final TypeNameFieldSpec.Builder.typefinal TypeNameFieldSpec.typeprivate final TypeNameParameterSpec.Builder.typefinal TypeNameParameterSpec.typestatic final TypeNameTypeName.VOIDFields in com.squareup.javapoet with type parameters of type TypeNameModifier and TypeFieldDescriptionTypeVariableName.boundsMethodSpec.Builder.exceptionsMethodSpec.exceptionsWildcardTypeName.lowerBoundsTypeSpec.Builder.superinterfacesTypeSpec.superinterfacesParameterizedTypeName.typeArgumentsWildcardTypeName.upperBoundsMethods in com.squareup.javapoet that return TypeNameModifier and TypeMethodDescriptionfinal TypeNameTypeName.annotated(AnnotationSpec... annotations) TypeName.annotated(List<AnnotationSpec> annotations) private TypeName(package private) static TypeNameTypeName.arrayComponent(TypeName type) Returns the array component oftype, or null iftypeis not an array.TypeName.box()Returns a boxed type if this is a primitive type (likeIntegerforint) orvoid.static TypeNameReturns a type name equivalent totype.(package private) static TypeNameTypeName.get(Type type, Map<Type, TypeVariableName> map) static TypeNameTypeName.get(TypeMirror mirror) Returns a type name equivalent tomirror.(package private) static TypeNameTypeName.get(TypeMirror mirror, Map<TypeParameterElement, TypeVariableName> typeVariables) static TypeNameWildcardTypeName.get(WildcardType wildcardName) (package private) static TypeNameWildcardTypeName.get(WildcardType wildcardName, Map<Type, TypeVariableName> map) static TypeNameWildcardTypeName.get(WildcardType mirror) (package private) static TypeNameWildcardTypeName.get(WildcardType mirror, Map<TypeParameterElement, TypeVariableName> typeVariables) TypeName.unbox()Returns an unboxed type if this is a boxed primitive type (likeintforInteger) orVoid.ArrayTypeName.withoutAnnotations()ParameterizedTypeName.withoutAnnotations()TypeName.withoutAnnotations()TypeVariableName.withoutAnnotations()WildcardTypeName.withoutAnnotations()Methods in com.squareup.javapoet that return types with arguments of type TypeNameModifier and TypeMethodDescriptionConverts an array of types to a list of type names.TypeName.list(Type[] types, Map<Type, TypeVariableName> map) Methods in com.squareup.javapoet with parameters of type TypeNameModifier and TypeMethodDescriptionMethodSpec.Builder.addException(TypeName exception) MethodSpec.Builder.addParameter(TypeName type, String name, Modifier... modifiers) TypeSpec.Builder.addSuperinterface(TypeName superinterface) (package private) static TypeNameTypeName.arrayComponent(TypeName type) Returns the array component oftype, or null iftypeis not an array.(package private) static ArrayTypeNameReturnstypeas an array, or null iftypeis not an array.static FieldSpec.Builderstatic ParameterSpec.Builderstatic ParameterizedTypeNameReturns a parameterized type, applyingtypeArgumentstorawType.static TypeVariableNameReturns type variable namednamewithbounds.static ArrayTypeNameReturns an array type whose elements are all instances ofcomponentType.static WildcardTypeNameReturns a type that represents an unknown type that extendsbound.TypeSpec.Builder.superclass(TypeName superclass) static WildcardTypeNameWildcardTypeName.supertypeOf(TypeName lowerBound) Returns a type that represents an unknown supertype ofbound.(package private) ParameterSpec.BuilderTypeVariableName.withBounds(TypeName... bounds) Method parameters in com.squareup.javapoet with type arguments of type TypeNameModifier and TypeMethodDescriptionMethodSpec.Builder.addExceptions(Iterable<? extends TypeName> exceptions) TypeSpec.Builder.addSuperinterfaces(Iterable<? extends TypeName> superinterfaces) ParameterizedTypeName.nestedClass(String name, List<TypeName> typeArguments) Returns a newParameterizedTypeNameinstance for the specifiednameas nested inside this class, with the specifiedtypeArguments.private static TypeVariableNameTypeVariableName.withBounds(List<? extends TypeName> bounds) Constructors in com.squareup.javapoet with parameters of type TypeNameModifierConstructorDescriptionprivateArrayTypeName(TypeName componentType) privateArrayTypeName(TypeName componentType, List<AnnotationSpec> annotations) privateprivateprivateConstructor parameters in com.squareup.javapoet with type arguments of type TypeNameModifierConstructorDescription(package private)ParameterizedTypeName(ParameterizedTypeName enclosingType, ClassName rawType, List<TypeName> typeArguments) privateParameterizedTypeName(ParameterizedTypeName enclosingType, ClassName rawType, List<TypeName> typeArguments, List<AnnotationSpec> annotations) privateTypeVariableName(String name, List<TypeName> bounds) privateTypeVariableName(String name, List<TypeName> bounds, List<AnnotationSpec> annotations) privateWildcardTypeName(List<TypeName> upperBounds, List<TypeName> lowerBounds) privateWildcardTypeName(List<TypeName> upperBounds, List<TypeName> lowerBounds, List<AnnotationSpec> annotations)