| Package | Description |
|---|---|
| org.inferred.freebuilder.processor | |
| org.inferred.freebuilder.processor.util |
| Modifier and Type | Method and Description |
|---|---|
protected void |
PropertyCodeGenerator.addAccessorAnnotations(SourceBuilder code) |
abstract void |
PropertyCodeGenerator.addBuilderFieldAccessors(SourceBuilder code,
Metadata metadata)
Add the accessor methods for the property to the builder's source code.
|
abstract void |
PropertyCodeGenerator.addBuilderFieldDeclaration(SourceBuilder code)
Add the field declaration for the property to the builder's source code.
|
abstract void |
PropertyCodeGenerator.addClear(SourceBuilder code,
String template)
Adds a clear call for the property given a template builder to the builder's source code.
|
abstract void |
PropertyCodeGenerator.addFinalFieldAssignment(SourceBuilder code,
String finalField,
String builder)
Add the final assignment of the property to the value object's source code.
|
abstract void |
PropertyCodeGenerator.addMergeFromBuilder(SourceBuilder code,
Metadata metadata,
String builder)
Add a merge from builder for the property to the builder's source code.
|
abstract void |
PropertyCodeGenerator.addMergeFromValue(SourceBuilder code,
String value)
Add a merge from value for the property to the builder's source code.
|
abstract void |
BuilderFactory.addNewBuilder(SourceBuilder code,
ParameterizedType builderType)
Adds a code snippet calling the Builder factory method.
|
abstract void |
PropertyCodeGenerator.addPartialClear(SourceBuilder code)
Adds a partial clear call for the property to the builder's source code.
|
void |
PropertyCodeGenerator.addPartialFieldAssignment(SourceBuilder code,
String finalField,
String builder)
Add the final assignment of the property to the partial value object's source code.
|
void |
PropertyCodeGenerator.addReadValueFragment(SourceBuilder code,
String finalField)
Adds a fragment converting the value object's field to the property's type.
|
abstract void |
PropertyCodeGenerator.addSetFromResult(SourceBuilder code,
String builder,
String variable)
Adds a set call for the property from a function result to the builder's source code.
|
void |
Metadata.Visibility.addTo(SourceBuilder code) |
void |
PropertyCodeGenerator.addValueFieldDeclaration(SourceBuilder code,
String finalField)
Add the field declaration for the property to the value's source code.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CompilationUnitWriter
|
class |
SourceStringBuilder
A
SourceBuilder that writes to a StringBuilder. |
| Modifier and Type | Method and Description |
|---|---|
SourceBuilder |
SourceStringBuilder.add(Excerpt excerpt) |
SourceBuilder |
SourceBuilder.add(Excerpt excerpt)
Equivalent to
add("%s", excerpt). |
SourceBuilder |
CompilationUnitWriter.add(Excerpt excerpt) |
SourceBuilder |
SourceStringBuilder.add(String fmt,
Object... args) |
SourceBuilder |
SourceBuilder.add(String fmt,
Object... args)
Appends formatted text to the source.
|
SourceBuilder |
SourceStringBuilder.addLine(String fmt,
Object... args) |
SourceBuilder |
SourceBuilder.addLine(String fmt,
Object... args)
Appends a formatted line of code to the source.
|
static SourceBuilder |
SourceStringBuilder.simple(SourceLevel sourceLevel,
boolean isGuavaAvailable)
Returns a
SourceStringBuilder that always shortens types, even if that causes
conflicts. |
| Modifier and Type | Method and Description |
|---|---|
static void |
AnnotationSource.addSource(SourceBuilder code,
AnnotationMirror annotation)
Adds a source-code representation of
annotation to . |
void |
ParameterizedType.addTo(SourceBuilder source) |
void |
Excerpt.addTo(SourceBuilder source) |
Copyright © 2016 Google, Inc.. All rights reserved.