public GenType ConvertToGenType(BaijiType type)
            {
                var javaTypeName = ConvertToString(type);
                var baseType     = ((BaseType)type).BType;
                var gType        = GTYPE_BASETYPE_MAP[baseType];
                var genType      = new GenType(gType, javaTypeName);

                return(genType);
            }
            public GenType ConvertToGenType(BaijiType type)
            {
                var javaTypeName = ConvertToString(type);

                var listType = type as ListType;
                var genType  = new GenType(GType.List, javaTypeName);

                genType.ElementType         = typeToJavaConverter.ConvertToGenType(listType.Type);
                genType.ElementJavaTypeName = typeToJavaConverter.ConvertToString(listType.Type);
                return(genType);
            }
            public GenType ConvertToGenType(BaijiType type)
            {
                var javaTypeName = ConvertToString(type);

                var mapType = type as MapType;
                var genType = new GenType(GType.Map, javaTypeName);

                genType.KeyType           = typeToJavaConverter.ConvertToGenType(mapType.KeyType);
                genType.KeyJavaTypeName   = typeToJavaConverter.ConvertToString(mapType.KeyType);
                genType.ValueType         = typeToJavaConverter.ConvertToGenType(mapType.ValueType);
                genType.ValueJavaTypeName = typeToJavaConverter.ConvertToString(mapType.ValueType);
                return(genType);
            }