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.LONGfinal TypeNameMethodSpec.returnTypestatic final TypeNameTypeName.SHORTfinal TypeNameTypeSpec.superclassfinal TypeNameAnnotationSpec.typefinal TypeNameFieldSpec.typefinal TypeNameParameterSpec.typestatic final TypeNameTypeName.VOIDFields in com.squareup.javapoet with type parameters of type TypeNameModifier and TypeFieldDescriptionTypeVariableName.boundsMethodSpec.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) TypeName.box()Returns a boxed type if this is a primitive type (likeIntegerforint) orvoid.static TypeNameReturns a type name equivalent totype.static TypeNameTypeName.get(TypeMirror mirror) Returns a type name equivalent tomirror.static TypeNameWildcardTypeName.get(WildcardType wildcardName) static TypeNameWildcardTypeName.get(WildcardType mirror) 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 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) 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.TypeVariableName.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.TypeVariableName.withBounds(List<? extends TypeName> bounds)