| Package | Description |
|---|---|
| org.inferred.freebuilder.processor | |
| org.inferred.freebuilder.processor.util |
| Modifier and Type | Class and Description |
|---|---|
static class |
Metadata.Visibility |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableList<Excerpt> |
Metadata.Property.getAccessorAnnotations()
Returns a list of annotations that should be applied to the accessor methods of this
property; that is, the getter method, and a single setter method that will accept the result
of the getter method as its argument.
|
abstract com.google.common.collect.ImmutableList<Excerpt> |
Metadata.getGeneratedBuilderAnnotations()
Returns a list of annotations that should be applied to the generated builder class.
|
abstract com.google.common.collect.ImmutableList<com.google.common.base.Function<Metadata,Excerpt>> |
Metadata.getNestedClasses()
Returns a list of nested classes that should be added to the generated builder class.
|
Set<? extends Excerpt> |
PropertyCodeGenerator.getStaticMethods()
Returns excerpts for any static methods added by this generator.
|
abstract com.google.common.collect.ImmutableList<Excerpt> |
Metadata.getValueTypeAnnotations()
Returns a list of annotations that should be applied to the generated value class.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ParameterizedType |
| Modifier and Type | Method and Description |
|---|---|
static Excerpt |
PreconditionExcerpts.checkArgument(Object condition,
String message,
Object... args)
Returns an excerpt equivalent to Guava's
Preconditions.checkArgument(boolean, String, Object...). |
static Excerpt |
PreconditionExcerpts.checkNotNull(Object reference)
Returns an excerpt equivalent to Guava's
Preconditions.checkNotNull(Object). |
static Excerpt |
PreconditionExcerpts.checkNotNullInline(Object reference)
Returns an excerpt equivalent to an inline call to Guava's
Preconditions.checkNotNull(Object). |
static Excerpt |
PreconditionExcerpts.checkNotNullPreamble(Object reference)
Returns an excerpt of the preamble required to emulate an inline call to Guava's
Preconditions.checkNotNull(Object) method. |
static Excerpt |
PreconditionExcerpts.checkState(Object condition,
String message,
Object... args)
Returns an excerpt equivalent to Guava's
Preconditions.checkState(boolean, String, Object...). |
Excerpt |
ParameterizedType.constructor()
Returns a source excerpt suitable for constructing an instance of this type, including "new"
keyword but excluding brackets.
|
Excerpt |
ParameterizedType.declaration()
Returns a source excerpt suitable for declaring this type, i.e.
|
Excerpt |
ParameterizedType.javadocLink()
Returns a source excerpt of a JavaDoc link to this type.
|
Excerpt |
ParameterizedType.javadocNoArgMethodLink(String memberName)
Returns a source excerpt of a JavaDoc link to a no-args method on this type.
|
Excerpt |
ParameterizedType.typeParameters()
Returns a source excerpt of the type parameters of this type, including angle brackets.
|
| Modifier and Type | Method and Description |
|---|---|
SourceBuilder |
SourceStringBuilder.add(Excerpt excerpt) |
SourceBuilder |
SourceBuilder.add(Excerpt excerpt)
Equivalent to
add("%s", excerpt). |
SourceBuilder |
CompilationUnitBuilder.add(Excerpt excerpt) |
Copyright © 2016 Google, Inc.. All rights reserved.