public class LazyName extends Excerpt
ValueType.FieldReceiver| Constructor and Description |
|---|
LazyName(java.lang.String preferredName,
Excerpt definition)
A LazyName, when first used, determines a unique name, using
preferredName if
still available, and registers the definition to be added later. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFields(ValueType.FieldReceiver fields)
Implement this method to report the name and value of each field.
|
static void |
addLazyDefinitions(SourceBuilder code)
Finds all lazily-declared classes and methods and adds their definitions to the source.
|
void |
addTo(SourceBuilder code) |
protected static org.inferred.freebuilder.processor.util.LazyName.Declaration |
declare(LazyName lazyName,
Scope scope)
Declare a name for
lazyName in scope, using preferredName if possible. |
org.inferred.freebuilder.processor.util.Scope.Level |
level() |
public LazyName(java.lang.String preferredName,
Excerpt definition)
preferredName if
still available, and registers the definition to be added later.public static void addLazyDefinitions(SourceBuilder code)
protected void addFields(ValueType.FieldReceiver fields)
ValueTypepublic org.inferred.freebuilder.processor.util.Scope.Level level()
public void addTo(SourceBuilder code)