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