javatype.cxx (ff7655f0) | javatype.cxx (9d8e7fba) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 860 unchanged lines hidden (view full) --- 869 buf.append('L'); 870 buf.append(className); 871 buf.append(';'); 872 rtl::OString classDescriptor(buf.makeStringAndClear()); 873 {for (sal_uInt16 i = 0; i < fields; ++i) { 874 RTConstValue fieldValue(reader.getFieldValue(i)); 875 if (fieldValue.m_type != RT_TYPE_INT32 876 || reader.getFieldFlags(i) != RT_ACCESS_CONST | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 860 unchanged lines hidden (view full) --- 869 buf.append('L'); 870 buf.append(className); 871 buf.append(';'); 872 rtl::OString classDescriptor(buf.makeStringAndClear()); 873 {for (sal_uInt16 i = 0; i < fields; ++i) { 874 RTConstValue fieldValue(reader.getFieldValue(i)); 875 if (fieldValue.m_type != RT_TYPE_INT32 876 || reader.getFieldFlags(i) != RT_ACCESS_CONST |
877 || reader.getFieldTypeName(i).getLength() != 0) | 877 || !reader.getFieldTypeName(i).isEmpty()) |
878 { 879 throw CannotDumpException( 880 rtl::OString( 881 RTL_CONSTASCII_STRINGPARAM("Bad type information"))); //TODO 882 } 883 rtl::OString fieldName( 884 codemaker::convertString(reader.getFieldName(i))); 885 cf->addField( --- 1977 unchanged lines hidden (view full) --- 2863 RTL_CONSTASCII_STRINGPARAM("com/sun/star/uno/TypeClass"))); 2864 dependencies->insert( 2865 rtl::OString( 2866 RTL_CONSTASCII_STRINGPARAM( 2867 "com/sun/star/uno/XComponentContext"))); 2868 for (sal_uInt16 i = 0; i < methods; ++i) { 2869 rtl::OString name(codemaker::convertString( 2870 reader.getMethodName(i))); | 878 { 879 throw CannotDumpException( 880 rtl::OString( 881 RTL_CONSTASCII_STRINGPARAM("Bad type information"))); //TODO 882 } 883 rtl::OString fieldName( 884 codemaker::convertString(reader.getFieldName(i))); 885 cf->addField( --- 1977 unchanged lines hidden (view full) --- 2863 RTL_CONSTASCII_STRINGPARAM("com/sun/star/uno/TypeClass"))); 2864 dependencies->insert( 2865 rtl::OString( 2866 RTL_CONSTASCII_STRINGPARAM( 2867 "com/sun/star/uno/XComponentContext"))); 2868 for (sal_uInt16 i = 0; i < methods; ++i) { 2869 rtl::OString name(codemaker::convertString( 2870 reader.getMethodName(i))); |
2871 bool defaultCtor = name.getLength() == 0; | 2871 bool defaultCtor = name.isEmpty(); |
2872 if (reader.getMethodFlags(i) != RT_MODE_TWOWAY 2873 || (!reader.getMethodReturnTypeName(i).equalsAsciiL( 2874 RTL_CONSTASCII_STRINGPARAM("void"))) 2875 || (defaultCtor 2876 && (methods != 1 || reader.getMethodParameterCount(i) != 0 2877 || reader.getMethodExceptionCount(i) != 0))) 2878 { 2879 throw CannotDumpException( --- 491 unchanged lines hidden --- | 2872 if (reader.getMethodFlags(i) != RT_MODE_TWOWAY 2873 || (!reader.getMethodReturnTypeName(i).equalsAsciiL( 2874 RTL_CONSTASCII_STRINGPARAM("void"))) 2875 || (defaultCtor 2876 && (methods != 1 || reader.getMethodParameterCount(i) != 0 2877 || reader.getMethodExceptionCount(i) != 0))) 2878 { 2879 throw CannotDumpException( --- 491 unchanged lines hidden --- |