}
@Override
protected String extractName()
{
ThriftUnion annotation = getStructClass().getAnnotation(ThriftUnion.class);
if (annotation == null) {
return getStructClass().getSimpleName();
}
else if (!annotation.value().isEmpty()) {
return annotation.value();
}
else {
return getStructClass().getSimpleName();
}
}