All Methods Static Methods Instance Methods Abstract Methods Concrete Methods
| Modifier and Type |
Method and Description |
protected void |
addBuilderMethods() |
protected void |
addConstructors(Type type) |
protected void |
addField(Field fieldField,
boolean allowReaders,
boolean allowWriters) |
protected void |
addFields(Class<?> clazz,
boolean allowReaders,
boolean allowWriters) |
protected void |
addMethod(Type type,
Method method,
boolean allowReaders,
boolean allowWriters) |
protected void |
addMethods(Type type,
boolean allowReaders,
boolean allowWriters) |
abstract ThriftStructMetadata |
build() |
protected ThriftMethodInjection |
buildBuilderConstructorInjections() |
protected abstract ThriftFieldMetadata |
buildField(Collection<io.airlift.drift.codec.metadata.FieldMetadata> input) |
protected Iterable<ThriftFieldMetadata> |
buildFieldInjections() |
protected List<ThriftMethodInjection> |
buildMethodInjections() |
protected static List<ThriftParameterInjection> |
buildParameterInjections(List<io.airlift.drift.codec.metadata.ParameterInjection> parameters) |
protected abstract Class<?> |
extractBuilderClass() |
protected Map<String,String> |
extractFieldIdlAnnotations(short fieldId,
Collection<io.airlift.drift.codec.metadata.FieldMetadata> fields) |
protected boolean |
extractFieldIsLegacyId(short id,
String fieldName,
Collection<io.airlift.drift.codec.metadata.FieldMetadata> fields) |
protected boolean |
extractFieldIsRecursiveReference(short fieldId,
Collection<io.airlift.drift.codec.metadata.FieldMetadata> fields) |
protected String |
extractFieldName(short id,
Collection<io.airlift.drift.codec.metadata.FieldMetadata> fields) |
protected ThriftField.Requiredness |
extractFieldRequiredness(short fieldId,
String fieldName,
Collection<io.airlift.drift.codec.metadata.FieldMetadata> fields) |
protected void |
extractFromConstructors() |
protected void |
extractFromFields() |
protected void |
extractFromMethods() |
protected abstract String |
extractName() |
protected abstract Map<String,String> |
extractStructIdlAnnotations() |
Class<?> |
getBuilderClass() |
MetadataErrors |
getMetadataErrors() |
protected List<io.airlift.drift.codec.metadata.ParameterInjection> |
getParameterInjections(Type type,
Annotation[][] parameterAnnotations,
Type[] parameterTypes,
List<String> parameterNames) |
Class<?> |
getStructClass() |
protected boolean |
hasThriftFieldAnnotation(Method method) |
protected Set<String> |
inferThriftFieldIds()
Assigns all fields an id if possible.
|
protected void |
inferThriftFieldIds(com.google.common.collect.Multimap<String,io.airlift.drift.codec.metadata.FieldMetadata> fieldsByName,
Set<String> fieldsWithConflictingIds) |
protected boolean |
isValidateGetter(Method method) |
protected abstract boolean |
isValidateSetter(Method method) |
protected void |
normalizeThriftFields(ThriftCatalog catalog) |
protected abstract void |
validateConstructors() |
protected void |
verifyClass(Class<? extends Annotation> annotation) |
protected void |
verifyFieldType(short id,
String name,
Collection<io.airlift.drift.codec.metadata.FieldMetadata> fields,
ThriftCatalog catalog)
Verifies that the the fields all have a supported Java type and that all fields map to the
exact same ThriftType.
|