public ThriftTypeReference getMapValueThriftTypeReference(Type javaType) { // Maps value types are always allowed to be recursive links if (isStructType(javaType)) { /** * TODO: This gets things working, but is only necessary when this collection is * involved in a recursive chain. Otherwise, it's just introducing unnecessary * references. We should see if we can clean this up. */ return getThriftTypeReference(javaType, Recursiveness.FORCED); } else { return getThriftTypeReference(javaType, Recursiveness.NOT_ALLOWED); } }
public ThriftTypeReference getCollectionElementThriftTypeReference(Type javaType) { // Collection element types are always allowed to be recursive links if (isStructType(javaType)) { /** * TODO: This gets things working, but is only necessary when this collection is * involved in a recursive chain. Otherwise, it's just introducing unnecessary * references. We should see if we can clean this up. */ return getThriftTypeReference(javaType, Recursiveness.FORCED); } else { return getThriftTypeReference(javaType, Recursiveness.NOT_ALLOWED); } }
public ThriftTypeReference getMapKeyThriftTypeReference(Type javaType) { // Maps key types are always allowed to be recursive links if (isStructType(javaType)) { /** * TODO: This gets things working, but is only necessary when this collection is * involved in a recursive chain. Otherwise, it's just introducing unnecessary * references. We should see if we can clean this up. */ return getThriftTypeReference(javaType, Recursiveness.FORCED); } else { return getThriftTypeReference(javaType, Recursiveness.NOT_ALLOWED); } }
if (isStructType(rawType)) { return ThriftProtocolType.STRUCT;
return VOID; if (isStructType(rawType)) { ThriftStructMetadata structMetadata = getThriftStructMetadata(javaType);