@Immutable public class TypeSpecDataHolder extends Object
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(com.squareup.javapoet.TypeSpec.Builder typeSpec) |
ImmutableList<com.squareup.javapoet.AnnotationSpec> |
getAnnotationSpecs() |
ImmutableList<com.squareup.javapoet.FieldSpec> |
getFieldSpecs() |
ImmutableList<TypeSpecDataHolder.JavadocSpec> |
getJavadocSpecs() |
ImmutableList<com.squareup.javapoet.MethodSpec> |
getMethodSpecs() |
ImmutableList<com.squareup.javapoet.TypeName> |
getSuperInterfaces() |
ImmutableList<com.squareup.javapoet.TypeSpec> |
getTypeSpecs() |
static TypeSpecDataHolder.Builder |
newBuilder() |
public ImmutableList<TypeSpecDataHolder.JavadocSpec> getJavadocSpecs()
public ImmutableList<com.squareup.javapoet.AnnotationSpec> getAnnotationSpecs()
public ImmutableList<com.squareup.javapoet.FieldSpec> getFieldSpecs()
public ImmutableList<com.squareup.javapoet.MethodSpec> getMethodSpecs()
public ImmutableList<com.squareup.javapoet.TypeSpec> getTypeSpecs()
public ImmutableList<com.squareup.javapoet.TypeName> getSuperInterfaces()
public static TypeSpecDataHolder.Builder newBuilder()
public void addToTypeSpec(com.squareup.javapoet.TypeSpec.Builder typeSpec)