Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
C
- canonicalName() - Method in interface org.tquadrat.foundation.javacomposer.ClassName
-
Returns the canonical form of the class name.
- canonicalName() - Method in class org.tquadrat.foundation.javacomposer.internal.ClassNameImpl
-
Returns the canonical form of the class name.
- CASES_OMITTED - Enum constant in enum class org.tquadrat.foundation.javacomposer.SuppressableWarnings
-
Some possible cases in a
switchstatement have been omitted purposely. - CAST - Enum constant in enum class org.tquadrat.foundation.javacomposer.SuppressableWarnings
-
An unnecessary cast is used.
- CAST_TO_CONCRETE_CLASS - Enum constant in enum class org.tquadrat.foundation.javacomposer.SuppressableWarnings
-
An object is cast to a concrete class, instead to one of the interfaces implemented by that class.
- CHAR - Static variable in class org.tquadrat.foundation.javacomposer.Primitives
-
The type name for
char. - CHAR_PRIMITIVE - Static variable in class org.tquadrat.foundation.javacomposer.internal.TypeNameImpl
-
The type name for
char. - characterLiteralWithoutSingleQuotes(char) - Static method in class org.tquadrat.foundation.javacomposer.internal.Util
-
Translates the given character into a String; when that character is a special character, it will be escaped properly so that it can be used in a Java String literal.
- CLASS - Enum constant in enum class org.tquadrat.foundation.javacomposer.internal.TypeSpecImpl.Kind
-
The type is a regular class.
- CLASS_REFERENCES_SUBCLASS - Enum constant in enum class org.tquadrat.foundation.javacomposer.SuppressableWarnings
-
A class or interface references one of its own subclasses/implementations.
- CLASS_WITH_TOO_MANY_FIELDS - Enum constant in enum class org.tquadrat.foundation.javacomposer.SuppressableWarnings
-
The current class has too many fields according to the configured metric value.
- CLASS_WITH_TOO_MANY_METHODS - Enum constant in enum class org.tquadrat.foundation.javacomposer.SuppressableWarnings
-
The current class or interface has too many methods according to the configured metric value.
- classBuilder(CharSequence) - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Creates a builder for a regular class.
- classBuilder(ClassName) - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Creates a builder for a regular class.
- ClassName - Interface in org.tquadrat.foundation.javacomposer
-
The specification for a fully-qualified class name for top-level and member classes.
- ClassNameImpl - Class in org.tquadrat.foundation.javacomposer.internal
-
The implementation of
ClassNamefor a fully-qualified class name for top-level and member classes. - ClassNameImpl(CharSequence, Optional<ClassNameImpl>, CharSequence) - Constructor for class org.tquadrat.foundation.javacomposer.internal.ClassNameImpl
-
Creates a new
ClassNameImplinstance. - ClassNameImpl(CharSequence, Optional<ClassNameImpl>, CharSequence, List<AnnotationSpecImpl>) - Constructor for class org.tquadrat.foundation.javacomposer.internal.ClassNameImpl
-
Creates a new
ClassNameImplinstance. - ClassNameImpl(CharSequence, ClassNameImpl, CharSequence) - Constructor for class org.tquadrat.foundation.javacomposer.internal.ClassNameImpl
-
Creates a new
ClassNameImplinstance. - ClassNameImpl(CharSequence, ClassNameImpl, CharSequence, List<AnnotationSpecImpl>) - Constructor for class org.tquadrat.foundation.javacomposer.internal.ClassNameImpl
-
Creates a new
ClassNameImplinstance. - ClassSpecImpl - Class in org.tquadrat.foundation.javacomposer.internal
-
The implementation of
TypeSpecfor a class. - ClassSpecImpl(ClassSpecImpl) - Constructor for class org.tquadrat.foundation.javacomposer.internal.ClassSpecImpl
-
Creates a dummy type spec for type-resolution in CodeWriter only while emitting the type declaration but before entering the type body.
- ClassSpecImpl(ClassSpecImpl.BuilderImpl) - Constructor for class org.tquadrat.foundation.javacomposer.internal.ClassSpecImpl
-
Creates a new
TypeClassSpecImplinstance. - ClassSpecImpl.BuilderImpl - Class in org.tquadrat.foundation.javacomposer.internal
-
The implementation of
TypeSpec.Builderfor a class. - clone() - Method in class org.tquadrat.foundation.javacomposer.NameAllocator
-
Creates a deep copy of this
NameAllocator. - close() - Method in class org.tquadrat.foundation.javacomposer.internal.LineWrapper
-
This implementation flushes any outstanding text and forbid future writes to this line wrapper.
- code() - Method in class org.tquadrat.foundation.javacomposer.internal.LambdaSpecImpl.BuilderImpl
-
Returns the code for the lambda body.
- CodeBlock - Interface in org.tquadrat.foundation.javacomposer
-
The definition of a fragment for a
*.javafile, potentially containing declarations, statements, and documentation. - CodeBlock.Builder - Interface in org.tquadrat.foundation.javacomposer
-
The definition of a builder for a new instance of an implementation of
CodeBlock. - codeBlockBuilder() - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Creates a builder for an instance of
CodeBlock. - Code block format strings - Search tag in package org.tquadrat.foundation.javacomposer
- Section
- CodeBlockImpl - Class in org.tquadrat.foundation.javacomposer.internal
-
The implementation of
CodeBlockfor a fragment of a*.javafile. - CodeBlockImpl(CodeBlockImpl.BuilderImpl) - Constructor for class org.tquadrat.foundation.javacomposer.internal.CodeBlockImpl
-
Creates a new
CodeBlockImplinstance. - CodeBlockImpl.BuilderImpl - Class in org.tquadrat.foundation.javacomposer.internal
-
The implementation of
CodeBlock.Builderas the builder for a newCodeBlockImplinstance. - CodeBlockImpl.CodeBlockJoiner - Class in org.tquadrat.foundation.javacomposer.internal
-
A helper class that supports to join code blocks.
- CodeBlockJoiner(String, CodeBlockImpl.BuilderImpl) - Constructor for class org.tquadrat.foundation.javacomposer.internal.CodeBlockImpl.CodeBlockJoiner
-
Creates a new
CodeBlockJoinerinstance. - codeBlockOf(String, Object...) - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Creates a new
CodeBlockinstance from the given format and arguments. - Code Control Flow - Search tag in package org.tquadrat.foundation.javacomposer
- Section
- CodeProcessorPREVIEW - Interface in org.tquadrat.foundation.javacomposer
-
An implementation of
StringTemplate.ProcessorPREVIEW that creates an instance ofCodeBlockfrom the given String template. - CodeProcessorImpl - Class in org.tquadrat.foundation.javacomposer.internal
-
An implementation of
CodeProcessorPREVIEW that creates an instance ofCodeBlockfrom the given String template. - CodeProcessorImpl(JavaComposer) - Constructor for class org.tquadrat.foundation.javacomposer.internal.CodeProcessorImpl
-
Creates a new instance of
CodeProcessor. - CodeWriter - Class in org.tquadrat.foundation.javacomposer.internal
-
Converts a
JavaFileto a string suitable to both human- and javac-consumption. - CodeWriter(Appendable) - Constructor for class org.tquadrat.foundation.javacomposer.internal.CodeWriter
-
Deprecated, for removal: This API element is subject to removal in a future version.
- CodeWriter(Appendable, Layout, String, Map<String, ClassNameImpl>, Set<String>) - Constructor for class org.tquadrat.foundation.javacomposer.internal.CodeWriter
-
Deprecated, for removal: This API element is subject to removal in a future version.Use
CodeWriter(JavaComposer, Appendable)instead. - CodeWriter(Appendable, Layout, Set<String>) - Constructor for class org.tquadrat.foundation.javacomposer.internal.CodeWriter
-
Deprecated, for removal: This API element is subject to removal in a future version.Use
CodeWriter(JavaComposer, Appendable)instead. - CodeWriter(JavaComposer, Appendable) - Constructor for class org.tquadrat.foundation.javacomposer.internal.CodeWriter
-
Creates a new
CodeWriterinstance. - CodeWriter(JavaComposer, Appendable, Map<String, ClassNameImpl>, Set<String>) - Constructor for class org.tquadrat.foundation.javacomposer.internal.CodeWriter
-
Creates a new
CodeWriterinstance. - CodeWriter(JavaComposer, Appendable, Set<String>) - Constructor for class org.tquadrat.foundation.javacomposer.internal.CodeWriter
-
Creates a new
CodeWriterinstance. - CodeWriter.CommentType - Enum Class in org.tquadrat.foundation.javacomposer.internal
-
The comment types.
- COLLECTION_DECLARED_AS_CONCRETE_CLASS - Enum constant in enum class org.tquadrat.foundation.javacomposer.SuppressableWarnings
- CommentType() - Constructor for enum class org.tquadrat.foundation.javacomposer.internal.CodeWriter.CommentType
- compareMethodSpecs(MethodSpec, MethodSpec) - Static method in class org.tquadrat.foundation.javacomposer.internal.TypeSpecImpl
-
Compares two instances of
MethodSpecfor their sort order. - compareTo(ClassName) - Method in interface org.tquadrat.foundation.javacomposer.ClassName
- compareTo(ClassName) - Method in class org.tquadrat.foundation.javacomposer.internal.ClassNameImpl
- componentType() - Method in interface org.tquadrat.foundation.javacomposer.ArrayTypeName
-
Returns this array's component type.
- componentType() - Method in class org.tquadrat.foundation.javacomposer.internal.ArrayTypeNameImpl
-
Returns this array's component type.
- composer() - Method in class org.tquadrat.foundation.javacomposer.internal.TypeSpecImpl.BuilderImpl
-
Returns the reference to the factory.
- concatAnnotations(Collection<AnnotationSpec>) - Method in class org.tquadrat.foundation.javacomposer.internal.TypeNameImpl
-
Combines the annotations of this instance with the given ones.
- CONSTRUCTOR - Static variable in interface org.tquadrat.foundation.javacomposer.MethodSpec
-
The "name" for a method that is in fact a constructor: "<init>".
- constructorBuilder() - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Creates a builder that builds an instance of
MethodSpecfor a constructor. - Constructors - Search tag in package org.tquadrat.foundation.javacomposer
- Section
- createAnnotation(Annotation) - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Creates an instance of
AnnotationSpecfrom the givenAnnotationinstance. - createAnnotation(Annotation, boolean) - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Creates an instance of
AnnotationSpecfrom the givenAnnotationinstance. - createAnnotation(AnnotationMirror) - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Creates an instance of
AnnotationSpecfrom the givenAnnotationMirrorinstance. - createClassVersionAnnotation() - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Returns a
@ClassVersionannotation with a default text forClassVersion.sourceVersion(). - createClassVersionAnnotation(String) - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Returns a
@ClassVersionannotation with the text forClassVersion.sourceVersion(). - createComment4Constant(CodeBlock) - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Creates the comment for a constant.
- createConstant(CharSequence, int, CodeBlock) - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Creates an integer constant.
- createConstant(CharSequence, Type, CodeBlock, CodeBlock) - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Creates a constant.
- createConstant(CharSequence, String, CodeBlock) - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Creates a String constant.
- createConstant(CharSequence, TypeName, Number, CodeBlock) - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Creates a numerical constant.
- createConstant(CharSequence, TypeName, CodeBlock, CodeBlock) - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Creates a constant.
A constant is an initialisedpublic final staticfield. - createCopy() - Method in class org.tquadrat.foundation.javacomposer.internal.AnnotationTypeSpecImpl
-
Creates a dummy copy of the type spec that is used by
TypeSpecImpl.emit(CodeWriter, String, Set)internally. - createCopy() - Method in class org.tquadrat.foundation.javacomposer.internal.ClassSpecImpl
-
Creates a dummy copy of the type spec that is used by
TypeSpecImpl.emit(CodeWriter, String, Set)internally. - createCopy() - Method in class org.tquadrat.foundation.javacomposer.internal.EnumSpecImpl
-
Creates a dummy copy of the type spec that is used by
TypeSpecImpl.emit(CodeWriter, String, Set)internally. - createCopy() - Method in class org.tquadrat.foundation.javacomposer.internal.InterfaceSpecImpl
-
Creates a dummy copy of the type spec that is used by
TypeSpecImpl.emit(CodeWriter, String, Set)internally. - createCopy() - Method in class org.tquadrat.foundation.javacomposer.internal.RecordSpecImpl
-
Creates a dummy copy of the type spec that is used by
TypeSpecImpl.emit(CodeWriter, String, Set)internally. - createCopy() - Method in class org.tquadrat.foundation.javacomposer.internal.TypeSpecImpl
-
Creates a dummy copy of the type spec that is used by
TypeSpecImpl.emit(CodeWriter, String, Set)internally. - createDebugOutput(boolean) - Static method in class org.tquadrat.foundation.javacomposer.internal.Util
-
Creates the debug output.
- createEqualsBuilder() - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Returns a builder for an implementation of the method
Object.equals(Object)that just needs the method body for completion. - createEqualsMethod(CodeBlock) - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Returns a
MethodSpecinstance for an implementation of the methodObject.equals(Object). - createHashCodeBuilder() - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Returns a builder for an implementation of the method
Object.hashCode()that just needs the method body for completion. - createHashCodeMethod(Collection<? extends FieldSpec>) - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Returns a
MethodSpecinstance for an implementation of the methodObject.hashCode(). - createHashCodeMethod(CodeBlock) - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Returns a
MethodSpecinstance for an implementation of the methodObject.hashCode(). - createHashCodeMethod(FieldSpec...) - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Returns a
MethodSpecinstance for an implementation of the methodObject.hashCode(). - createInheritDocComment() - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Returns a code block with a comment for overriding methods:
- createMethod(ExecutableElement) - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Creates a
MethodSpecfor the givenExecutableElement. - createParameter(Parameter) - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Creates an instance of
ParameterSpecfrom the givenParameterinstance. - createParameter(VariableElement) - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Creates an instance of
ParameterSpecfrom the givenVariableElementinstance. - createReturnStatement() - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Creates a return statement with a comment, using
retValueas the name for the return variable. - createReturnStatement(CharSequence) - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Creates a return statement with a comment.
- createStaticClassBuilder(CharSequence) - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Returns a builder for a static class.
- createSuppressWarningsAnnotation(Collection<SuppressableWarnings>) - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Returns a
@SuppressWarningsannotation with the given values. - createSuppressWarningsAnnotation(JavaComposer, SuppressableWarnings...) - Static method in enum class org.tquadrat.foundation.javacomposer.SuppressableWarnings
-
Creates an
AnnotationSpecinstance for the@SuppressWarningsannotation. - createSuppressWarningsAnnotation(SuppressableWarnings...) - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Returns a
@SuppressWarningsannotation with the given values. - createSuppressWarningsCommentForIDEA(JavaComposer, SuppressableWarnings...) - Static method in enum class org.tquadrat.foundation.javacomposer.SuppressableWarnings
-
Creates a comment (for IntelliJ IDEA) that suppresses the given warnings.
- createToStringBuilder() - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Returns a builder for an implementation of the method
Object.toString()that just needs the method body for completion. - createToStringMethod(CodeBlock) - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Returns a
MethodSpecinstance for an implementation of the methodObject.toString(). - createUtilityClassAnnotation() - Method in class org.tquadrat.foundation.javacomposer.JavaComposer
-
Returns a
@UtilityClassannotation.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

CodeWriter(JavaComposer, Appendable)instead.