public final class ConstructorWriter extends Modifiable implements HasClassReferences
| Modifier and Type | Class and Description |
|---|---|
static interface |
Writable.Context |
| Modifier and Type | Method and Description |
|---|---|
VariableWriter |
addParameter(Class<?> type,
String name) |
VariableWriter |
addParameter(TypeElement type,
String name) |
VariableWriter |
addParameter(TypeName type,
String name) |
VariableWriter |
addParameter(TypeWriter type,
String name) |
BlockWriter |
body() |
Map<String,TypeName> |
parameters() |
Set<ClassName> |
referencedClasses() |
Appendable |
write(Appendable appendable,
Writable.Context context) |
addModifiers, addModifiers, annotate, annotatepublic VariableWriter addParameter(Class<?> type, String name)
public VariableWriter addParameter(TypeElement type, String name)
public VariableWriter addParameter(TypeWriter type, String name)
public VariableWriter addParameter(TypeName type, String name)
public BlockWriter body()
public Set<ClassName> referencedClasses()
referencedClasses in interface HasClassReferencespublic Appendable write(Appendable appendable, Writable.Context context) throws IOException
IOExceptionCopyright © 2015 Google, Inc.. All Rights Reserved.