public class TypeSpecDataHolder
extends java.lang.Object
com.squareup.javapoet.TypeSpec
.
This is a wrapper that is used to allow TypeSpecs to be composed. It is a dumb wrapper - any checking of the semantics will be done in the TypeSpec itself.
Modifier and Type | Class and Description |
---|---|
static class |
TypeSpecDataHolder.Builder |
static class |
TypeSpecDataHolder.JavadocSpec |
Modifier and Type | Method and Description |
---|---|
void |
addToTypeSpec(TypeSpec.Builder typeSpec) |
ImmutableList<AnnotationSpec> |
getAnnotationSpecs() |
ImmutableList<FieldSpec> |
getFieldSpecs() |
ImmutableList<TypeSpecDataHolder.JavadocSpec> |
getJavadocSpecs() |
ImmutableList<MethodSpec> |
getMethodSpecs() |
ImmutableList<TypeName> |
getSuperInterfaces() |
ImmutableList<TypeSpec> |
getTypeSpecs() |
static TypeSpecDataHolder.Builder |
newBuilder() |
public ImmutableList<TypeSpecDataHolder.JavadocSpec> getJavadocSpecs()
public ImmutableList<AnnotationSpec> getAnnotationSpecs()
public ImmutableList<FieldSpec> getFieldSpecs()
public ImmutableList<MethodSpec> getMethodSpecs()
public ImmutableList<TypeSpec> getTypeSpecs()
public ImmutableList<TypeName> getSuperInterfaces()
public static TypeSpecDataHolder.Builder newBuilder()
public void addToTypeSpec(TypeSpec.Builder typeSpec)