| Package | Description |
|---|---|
| org.inferred.freebuilder.processor.util | |
| org.inferred.freebuilder.processor.util.feature |
| Modifier and Type | Method and Description |
|---|---|
<T extends Feature<T>> |
SourceStringBuilder.feature(FeatureType<T> feature) |
<T extends Feature<T>> |
SourceBuilder.feature(FeatureType<T> featureType)
Returns the instance of
featureType appropriate for the source being written. |
<T extends Feature<T>> |
CompilationUnitBuilder.feature(FeatureType<T> feature) |
| Modifier and Type | Method and Description |
|---|---|
static SourceBuilder |
SourceStringBuilder.simple(Feature<?>... features)
Returns a
SourceStringBuilder that always shortens types, even if that causes
conflicts. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Feature<T extends Feature<T>>
A feature encapsulates the availability of a type or source level feature that can be used in
the source written to a
SourceBuilder, such as Java language-level features, or Guava
types and methods. |
class |
FeatureType<F extends Feature<F>>
Algorithm to select the correct instance of a given feature type for a processing environment,
and the default to use in tests when an explicit value has not been registered for that feature.
|
| Modifier and Type | Class and Description |
|---|---|
class |
FunctionPackage
Types in the java.util.function package, if available.
|
class |
GuavaLibrary
Whether the Guava library is available or not.
|
class |
SourceLevel
Compliance levels which are idiomatically supported by this processor.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Feature<T>> |
StaticFeatureSet.get(FeatureType<T> featureType)
Returns the registered instance of
featureType, or the value of
FeatureType.testDefault() if no explicit instance was registered with this set. |
<T extends Feature<T>> |
FeatureSet.get(FeatureType<T> featureType)
Returns an instance of
featureType. |
<T extends Feature<T>> |
EnvironmentFeatureSet.get(FeatureType<T> featureType) |
| Constructor and Description |
|---|
StaticFeatureSet(Feature<?>... features)
Creates a feature set which will return
features when StaticFeatureSet.get(org.inferred.freebuilder.processor.util.feature.FeatureType<T>) is called for the
appropriate type. |
Copyright © 2016 Google, Inc.. All rights reserved.