| Package | Description |
|---|---|
| org.inferred.freebuilder.processor | |
| org.inferred.freebuilder.processor.util |
| Modifier and Type | Method and Description |
|---|---|
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,
TypeElement 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 |
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
|
static class |
MethodElement.MethodSourceBuilder
Closeable SourceBuilder for writing methods. |
class |
SourceStringBuilder
A
SourceBuilder that writes to a StringBuilder. |
| Modifier and Type | Method and Description |
|---|---|
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 |
SourceBuilders.withIndent(SourceBuilder delegate,
int indent)
|
| Modifier and Type | Method and Description |
|---|---|
MethodElement.MethodSourceBuilder |
MethodElement.startWritingTo(SourceBuilder builder)
Writes the signature of this
MethodElement out to builder, and returns another
SourceBuilder to append the method implementation to. |
static SourceBuilder |
SourceBuilders.withIndent(SourceBuilder delegate,
int indent)
|
Copyright © 2015 Google, Inc.. All rights reserved.