Uses of Interface
org.tquadrat.foundation.javacomposer.ClassName
Packages that use ClassName
Package
Description
JavaComposer is a Java toolkit for the generation of Java source
code.
The implementations for the interfaces from the package
org.tquadrat.foundation.javacomposer.-
Uses of ClassName in org.tquadrat.foundation.javacomposer
Methods in org.tquadrat.foundation.javacomposer that return ClassNameModifier and TypeMethodDescriptionClassName.annotated(List<AnnotationSpec> annotations) Creates a new instance for an implementation ofClassNameas a copy of this one, but with the given annotations added.static ClassNameClassName.from(CharSequence packageName, CharSequence simpleName, CharSequence... simpleNames) Returns a class name created from the given parts.
For example, calling this method with package name"java.util"and simple names"Map"and"Entry"yieldsjava.util.Map.Entry.static ClassNameCreates a new instance for an implementation ofClassNamefrom an instance ofClass.static ClassNameClassName.from(TypeElement element) Returns the class name for the givenTypeElementinstance.ClassName.nestedClass(CharSequence name) Returns a new instance for an implementation ofClassNamefor the specifiednameas nested inside this class.ClassName.peerClass(CharSequence name) Creates a class that shares the same enclosing package or class.ParameterizedTypeName.rawType()Returns the raw type for this parameterised type name.ClassName.topLevelClassName()Returns the top class in this nesting group.ClassName.withoutAnnotations()Creates a new instance for an implementation ofClassNameas a copy of this one, but without any annotations.Methods in org.tquadrat.foundation.javacomposer that return types with arguments of type ClassNameModifier and TypeMethodDescriptionClassName.parentClass()Returns the enclosing class, likeMapforjava.util.Map.Entry.Methods in org.tquadrat.foundation.javacomposer with parameters of type ClassNameModifier and TypeMethodDescriptionFieldSpec.Builder.addAnnotation(ClassName annotation) Adds an annotation for the field.MethodSpec.Builder.addAnnotation(ClassName annotationClass) Adds an annotation for the method.ParameterSpec.Builder.addAnnotation(ClassName annotationClassName) Adds an annotation for the parameter.TypeSpec.Builder.addAnnotation(ClassName annotation) Adds an annotation for the type to build.CodeBlock.Builder.addStaticImport(ClassName className, String... names) Adds a static import.JavaFile.Builder.addStaticImport(ClassName className, String... names) Adds a static import.MethodSpec.Builder.addStaticImport(ClassName className, String... names) Adds a static import.TypeSpec.Builder.addStaticImport(ClassName className, String... names) Adds a static import.final AnnotationSpec.BuilderJavaComposer.annotationBuilder(ClassName type) Creates a builder for an instance of an implementation forAnnotationSpecfrom the givenClassNameinstance.final TypeSpec.BuilderJavaComposer.annotationTypeBuilder(ClassName className) Creates a builder for an annotation.final TypeSpec.BuilderJavaComposer.classBuilder(ClassName className) Creates a builder for a regular class.intfinal TypeSpec.BuilderJavaComposer.enumBuilder(ClassName className) Creates a builder for anenumtype.static ParameterizedTypeNameReturns a parameterised type, applying the given type arguments to the given raw type.final TypeSpec.BuilderJavaComposer.interfaceBuilder(ClassName className) Creates a builder for an interface.final TypeSpec.BuilderJavaComposer.recordBuilder(ClassName className) Creates a builder for a record. -
Uses of ClassName in org.tquadrat.foundation.javacomposer.internal
Classes in org.tquadrat.foundation.javacomposer.internal that implement ClassNameModifier and TypeClassDescriptionfinal classThe implementation ofClassNamefor a fully-qualified class name for top-level and member classes.Methods in org.tquadrat.foundation.javacomposer.internal that return types with arguments of type ClassNameModifier and TypeMethodDescriptionClassNameImpl.parentClass()Returns the enclosing class, likeMapforjava.util.Map.Entry.Methods in org.tquadrat.foundation.javacomposer.internal with parameters of type ClassNameModifier and TypeMethodDescriptionFieldSpecImpl.BuilderImpl.addAnnotation(ClassName annotation) Adds an annotation for the field.MethodSpecImpl.BuilderImpl.addAnnotation(ClassName annotationClass) Adds an annotation for the method.ParameterSpecImpl.BuilderImpl.addAnnotation(ClassName annotationClassName) Adds an annotation for the parameter.final TypeSpecImpl.BuilderImplTypeSpecImpl.BuilderImpl.addAnnotation(ClassName annotation) Adds an annotation for the type to build.CodeBlockImpl.BuilderImpl.addStaticImport(ClassName className, String... names) Adds a static import.final JavaFileImpl.BuilderImplJavaFileImpl.BuilderImpl.addStaticImport(ClassName className, String... names) Adds a static import.MethodSpecImpl.BuilderImpl.addStaticImport(ClassName className, String... names) Adds a static import.final TypeSpecImpl.BuilderImplTypeSpecImpl.BuilderImpl.addStaticImport(ClassName className, String... names) Adds a static import.final intstatic final ParameterizedTypeNameImplReturns a parameterised type, applying the given type arguments to the given raw type.
