Lines Matching refs:New

15  * New: Support `TYPE_USE` annotations on each enclosing `ClassName`.
16 * New: Work around a compiler bug in `TypeName.get(TypeElement)`. There was a problem getting an
24 * New: `$Z` as an optional newline (zero-width space) if a line may exceed 100 chars.
25 * New: `CodeBlock.join()` and `CodeBlock.joining()` let you join codeblocks by delimiters.
26 * New: Add `CodeBlock.Builder.isEmpty()`.
27 * New: `addStatement(CodeBlock)` overloads for `CodeBlock` and `MethodSpec`.
39 * New: `MethodSpec.Builder.addNamedCode()` and `TypeSpec.anonymousClassBuilder(CodeBlock)`.
45 * New: Basic support for line wrapping. Use `$W` to insert a Wrappable Whitespace character. It'll
47 * New: Named arguments in `CodeBlock`. These are intended to make larger code snippets easier to
65 * New: `addJavadoc(CodeBlock)` overloads for TypeSpec, MethodSpec, and FieldSpec.
66 * New: `MethodSpec.addComment()` makes it easy to add a `// single-line comment.`
67 * New: `ClassName.getReflectionName()` returns a string like `java.util.Map$Entry`.
76 * New: Support parameterized types that enclose other types, like `Outer<String>.Inner`.
77 * New: `TypeName.isBoxedPrimitive()`.
90 * New: Revive `CodeBlock.of()`, a handy factory method for building code blocks.
91 * New: Add `TypeSpec` factory methods that take a `ClassName`.
92 * New: `TypeName.annotated()` adds an annotation to a type.
93 * New: `TypeVariableName.withBounds()` adds bounds to a type variable.
94 * New: `TypeSpec.Builder.addInitializerBlock()` adds an instance initializer.
112 * New: `import static`! See `JavaFile.Builder.addStaticImport()` variants.
113 * New: Overload `NameAllocator.newName(String)` for creating a one-off name without a tag.
123 * New: `AnnotationSpec.get(Annotation)`.
124 * New: Type annotations! `TypeName.annotated()` can attach annotations like `@Nullable` directly to
126 * New: `equals()` and `hashCode()` on `AnnotationSpec`, `CodeBlock`, `FieldSpec`, `JavaFile`,
128 * New: `NameAllocator.clone()` to refine a NameAllocator for use in an inner scope code block.
137 * New: `NameAllocator` API makes it easy to declare non-conflicting names.
138 * New: Support annotations on enum values.
147 * New: Arguments may have positional indexes like `$1T` and `$2N`. Indexes can be used to refer to
149 * New: Permit Javadoc on enum constants.
150 * New: Class initializer blocks with `addStaticBlock()`.
157 * New: Eager validation of argument types like `$T` and `$N`.
158 * New: `MethodSpec.varargs(boolean)` to generate varags methods.
159 * New: `AnnotationSpec.get()` and `MethodSpec.overriding()` to create annotations and methods from
161 * New: `JavaFile.toJavaFileObject()`.
162 * New: Java 8 `DEFAULT` modifier.
163 * New: `toBuilder()` methods to build upon objects already constructed.
164 * New: Generate `@interface` annotation types.
165 * New: `TypeName.box()` and `TypeName.unbox()` convenience APIs.
185 * New: `StringLiteral` type which encapsulates the behavior of `stringLiteral`.
194 * New: Methods in interfaces will always have no body declaration.
195 * New: Control flow begin declaration now supports String format arguments.
203 * New: Properly indent hanging lines in field initializers.
204 * New: `emitEnumValue` variant which exposes a boolean of whether the current value is the last.
216 * New: Configurable indent level via `setIndent`.
217 * New: `beginConstructor` method is a semantically clearer alternative for constructors.
218 * New: `emitEnumValues` method emits a list of values followed by semicolon.
250 * New: All methods now take a `Set` of `Modifier`s rather than an `int`. The `int` methods are