@Immutable public class ThriftStructMetadata extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ThriftStructMetadata.MetadataType |
| Constructor and Description |
|---|
ThriftStructMetadata(String structName,
Map<String,String> idlAnnotations,
Type structType,
Type builderType,
ThriftStructMetadata.MetadataType metadataType,
Optional<ThriftMethodInjection> builderMethod,
List<String> documentation,
List<ThriftFieldMetadata> fields,
Optional<ThriftConstructorInjection> constructorInjection,
List<ThriftMethodInjection> methodInjections) |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getBuilderClass() |
Optional<ThriftMethodInjection> |
getBuilderMethod() |
Type |
getBuilderType() |
Optional<ThriftConstructorInjection> |
getConstructorInjection() |
com.google.common.collect.ImmutableList<String> |
getDocumentation() |
ThriftFieldMetadata |
getField(int id) |
Collection<ThriftFieldMetadata> |
getFields() |
Collection<ThriftFieldMetadata> |
getFields(FieldKind type) |
Map<String,String> |
getIdlAnnotations() |
ThriftStructMetadata.MetadataType |
getMetadataType() |
List<ThriftMethodInjection> |
getMethodInjections() |
Class<?> |
getStructClass() |
String |
getStructName() |
Type |
getStructType() |
boolean |
isException() |
boolean |
isStruct() |
boolean |
isUnion() |
String |
toString() |
public ThriftStructMetadata(String structName, Map<String,String> idlAnnotations, Type structType, Type builderType, ThriftStructMetadata.MetadataType metadataType, Optional<ThriftMethodInjection> builderMethod, List<String> documentation, List<ThriftFieldMetadata> fields, Optional<ThriftConstructorInjection> constructorInjection, List<ThriftMethodInjection> methodInjections)
public String getStructName()
public Type getStructType()
public Class<?> getStructClass()
public Type getBuilderType()
public Class<?> getBuilderClass()
public ThriftStructMetadata.MetadataType getMetadataType()
public Optional<ThriftMethodInjection> getBuilderMethod()
public ThriftFieldMetadata getField(int id)
public com.google.common.collect.ImmutableList<String> getDocumentation()
public Collection<ThriftFieldMetadata> getFields(FieldKind type)
public Collection<ThriftFieldMetadata> getFields()
public Optional<ThriftConstructorInjection> getConstructorInjection()
public List<ThriftMethodInjection> getMethodInjections()
public boolean isException()
public boolean isUnion()
public boolean isStruct()
Copyright © 2012–2024. All rights reserved.