Uses of Class
com.squareup.javapoet.ClassName
-
Uses of ClassName in com.squareup.javapoet
Fields in com.squareup.javapoet declared as ClassNameModifier and TypeFieldDescriptionprivate static final ClassNameTypeName.BOXED_BOOLEANprivate static final ClassNameTypeName.BOXED_BYTEprivate static final ClassNameTypeName.BOXED_CHARprivate static final ClassNameTypeName.BOXED_DOUBLEprivate static final ClassNameTypeName.BOXED_FLOATprivate static final ClassNameTypeName.BOXED_INTprivate static final ClassNameTypeName.BOXED_LONGprivate static final ClassNameTypeName.BOXED_SHORTprivate static final ClassNameTypeName.BOXED_VOID(package private) final ClassNameClassName.enclosingClassNameThe enclosing class, or null if this is not enclosed in another class.static final ClassNameClassName.OBJECTstatic final ClassNameTypeName.OBJECTfinal ClassNameParameterizedTypeName.rawTypeFields in com.squareup.javapoet with type parameters of type ClassNameMethods in com.squareup.javapoet that return ClassNameModifier and TypeMethodDescriptionClassName.annotated(List<AnnotationSpec> annotations) static ClassNameReturns a newClassNameinstance for the given fully-qualified class name string.ClassName.enclosingClassName()Returns the enclosing class, likeMapforMap.Entry.static ClassNamestatic ClassNameReturns a class name created from the given parts.static ClassNameClassName.get(TypeElement element) Returns the class name forelement.ClassName.nestedClass(String name) Returns a newClassNameinstance for the specifiednameas nested inside this class.Returns a class that shares the same enclosing package or class.private ClassNameReturns the class referenced bysimpleName, using the current nesting context and imports.private ClassNameCodeWriter.stackClassName(int stackDepth, String simpleName) Returns the class namedsimpleNamewhen nested in the class atstackDepth.ClassName.topLevelClassName()Returns the top class in this nesting group.ClassName.withoutAnnotations()Methods in com.squareup.javapoet that return types with arguments of type ClassNameModifier and TypeMethodDescriptionClassName.enclosingClasses()Returns all enclosing classes in this, outermost first.CodeWriter.importedTypes()CodeWriter.suggestedImports()Returns the types that should have been imported for this code.Methods in com.squareup.javapoet with parameters of type ClassNameModifier and TypeMethodDescriptionFieldSpec.Builder.addAnnotation(ClassName annotation) MethodSpec.Builder.addAnnotation(ClassName annotation) ParameterSpec.Builder.addAnnotation(ClassName annotation) TypeSpec.Builder.addAnnotation(ClassName annotation) JavaFile.Builder.addStaticImport(ClassName className, String... names) static TypeSpec.BuilderTypeSpec.annotationBuilder(ClassName className) static AnnotationSpec.Builderstatic TypeSpec.BuilderTypeSpec.classBuilder(ClassName className) intstatic TypeSpec.BuilderTypeSpec.enumBuilder(ClassName className) static ParameterizedTypeNameReturns a parameterized type, applyingtypeArgumentstorawType.private voidCodeWriter.importableType(ClassName className) static TypeSpec.BuilderTypeSpec.interfaceBuilder(ClassName className) (package private) StringCodeWriter.lookupName(ClassName className) Returns the best name to identifyclassNamewith in the current context.Constructors in com.squareup.javapoet with parameters of type ClassNameModifierConstructorDescriptionprivateprivateClassName(String packageName, ClassName enclosingClassName, String simpleName, List<AnnotationSpec> annotations) (package private)ParameterizedTypeName(ParameterizedTypeName enclosingType, ClassName rawType, List<TypeName> typeArguments) privateParameterizedTypeName(ParameterizedTypeName enclosingType, ClassName rawType, List<TypeName> typeArguments, List<AnnotationSpec> annotations) Constructor parameters in com.squareup.javapoet with type arguments of type ClassNameModifierConstructorDescription(package private)CodeWriter(Appendable out, String indent, Map<String, ClassName> importedTypes, Set<String> staticImports, Set<String> alwaysQualify)