Uses of Class
com.squareup.javapoet.TypeName
-
-
Uses of TypeName in com.squareup.javapoet
Subclasses of TypeName in com.squareup.javapoet Modifier and Type Class Description classArrayTypeNameclassClassNameA fully-qualified class name for top-level and member classes.classParameterizedTypeNameclassTypeVariableNameclassWildcardTypeNameFields in com.squareup.javapoet declared as TypeName Modifier and Type Field Description static TypeNameTypeName. BOOLEANstatic TypeNameTypeName. BYTEstatic TypeNameTypeName. CHARTypeNameArrayTypeName. componentTypestatic TypeNameTypeName. DOUBLEstatic TypeNameTypeName. FLOATstatic TypeNameTypeName. INTstatic TypeNameTypeName. LONGTypeNameMethodSpec. returnTypestatic TypeNameTypeName. SHORTTypeNameTypeSpec. superclassTypeNameAnnotationSpec. typeTypeNameFieldSpec. typeTypeNameParameterSpec. typestatic TypeNameTypeName. VOIDFields in com.squareup.javapoet with type parameters of type TypeName Modifier and Type Field Description List<TypeName>TypeVariableName. boundsList<TypeName>MethodSpec. exceptionsList<TypeName>WildcardTypeName. lowerBoundsList<TypeName>TypeSpec. superinterfacesList<TypeName>ParameterizedTypeName. typeArgumentsList<TypeName>WildcardTypeName. upperBoundsMethods in com.squareup.javapoet that return TypeName Modifier and Type Method Description TypeNameTypeName. annotated(AnnotationSpec... annotations)TypeNameTypeName. annotated(List<AnnotationSpec> annotations)TypeNameTypeName. box()Returns a boxed type if this is a primitive type (likeIntegerforint) orvoid.static TypeNameTypeName. get(Type type)Returns 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)TypeNameTypeName. unbox()Returns an unboxed type if this is a boxed primitive type (likeintforInteger) orVoid.TypeNameArrayTypeName. withoutAnnotations()TypeNameClassName. withoutAnnotations()TypeNameParameterizedTypeName. withoutAnnotations()TypeNameTypeName. withoutAnnotations()TypeNameTypeVariableName. withoutAnnotations()TypeNameWildcardTypeName. withoutAnnotations()Methods in com.squareup.javapoet with parameters of type TypeName Modifier and Type Method Description MethodSpec.BuilderMethodSpec.Builder. addException(TypeName exception)TypeSpec.BuilderTypeSpec.Builder. addField(TypeName type, String name, Modifier... modifiers)MethodSpec.BuilderMethodSpec.Builder. addParameter(TypeName type, String name, Modifier... modifiers)TypeSpec.BuilderTypeSpec.Builder. addSuperinterface(TypeName superinterface)static FieldSpec.BuilderFieldSpec. builder(TypeName type, String name, Modifier... modifiers)static ParameterSpec.BuilderParameterSpec. builder(TypeName type, String name, Modifier... modifiers)static ParameterizedTypeNameParameterizedTypeName. get(ClassName rawType, TypeName... typeArguments)Returns a parameterized type, applyingtypeArgumentstorawType.static TypeVariableNameTypeVariableName. get(String name, TypeName... bounds)Returns type variable namednamewithbounds.static ArrayTypeNameArrayTypeName. of(TypeName componentType)Returns an array type whose elements are all instances ofcomponentType.MethodSpec.BuilderMethodSpec.Builder. returns(TypeName returnType)static WildcardTypeNameWildcardTypeName. subtypeOf(TypeName upperBound)Returns a type that represents an unknown type that extendsbound.TypeSpec.BuilderTypeSpec.Builder. superclass(TypeName superclass)static WildcardTypeNameWildcardTypeName. supertypeOf(TypeName lowerBound)Returns a type that represents an unknown supertype ofbound.TypeVariableNameTypeVariableName. withBounds(TypeName... bounds)Method parameters in com.squareup.javapoet with type arguments of type TypeName Modifier and Type Method Description MethodSpec.BuilderMethodSpec.Builder. addExceptions(Iterable<? extends TypeName> exceptions)TypeSpec.BuilderTypeSpec.Builder. addSuperinterfaces(Iterable<? extends TypeName> superinterfaces)ParameterizedTypeNameParameterizedTypeName. nestedClass(String name, List<TypeName> typeArguments)Returns a newParameterizedTypeNameinstance for the specifiednameas nested inside this class, with the specifiedtypeArguments.TypeVariableNameTypeVariableName. withBounds(List<TypeName> bounds)
-