diff --git a/build-common/test/org/jetbrains/kotlin/serialization/jvm/DebugJvmPackageTable.java b/build-common/test/org/jetbrains/kotlin/serialization/jvm/DebugJvmPackageTable.java
index 15992f048c0..27ca33c1153 100644
--- a/build-common/test/org/jetbrains/kotlin/serialization/jvm/DebugJvmPackageTable.java
+++ b/build-common/test/org/jetbrains/kotlin/serialization/jvm/DebugJvmPackageTable.java
@@ -99,6 +99,45 @@ public final class DebugJvmPackageTable {
*/
org.jetbrains.kotlin.serialization.jvm.DebugJvmPackageTable.PackagePartsOrBuilder getMetadataPartsOrBuilder(
int index);
+
+ /**
+ * repeated string jvm_package_name = 3;
+ *
+ *
+ * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + org.jetbrains.kotlin.protobuf.ProtocolStringList + getJvmPackageNameList(); + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + int getJvmPackageNameCount(); + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + java.lang.String getJvmPackageName(int index); + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + org.jetbrains.kotlin.protobuf.ByteString + getJvmPackageNameBytes(int index); } /** * Protobuf type {@code org.jetbrains.kotlin.serialization.jvm.PackageTable} @@ -168,6 +207,15 @@ public final class DebugJvmPackageTable { metadataParts_.add(input.readMessage(org.jetbrains.kotlin.serialization.jvm.DebugJvmPackageTable.PackageParts.PARSER, extensionRegistry)); break; } + case 26: { + org.jetbrains.kotlin.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + jvmPackageName_ = new org.jetbrains.kotlin.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + jvmPackageName_.add(bs); + break; + } } } } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { @@ -182,6 +230,9 @@ public final class DebugJvmPackageTable { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { metadataParts_ = java.util.Collections.unmodifiableList(metadataParts_); } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + jvmPackageName_ = jvmPackageName_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -323,9 +374,59 @@ public final class DebugJvmPackageTable { return metadataParts_.get(index); } + public static final int JVM_PACKAGE_NAME_FIELD_NUMBER = 3; + private org.jetbrains.kotlin.protobuf.LazyStringList jvmPackageName_; + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + public org.jetbrains.kotlin.protobuf.ProtocolStringList + getJvmPackageNameList() { + return jvmPackageName_; + } + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + public int getJvmPackageNameCount() { + return jvmPackageName_.size(); + } + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + public java.lang.String getJvmPackageName(int index) { + return jvmPackageName_.get(index); + } + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + public org.jetbrains.kotlin.protobuf.ByteString + getJvmPackageNameBytes(int index) { + return jvmPackageName_.getByteString(index); + } + private void initFields() { packageParts_ = java.util.Collections.emptyList(); metadataParts_ = java.util.Collections.emptyList(); + jvmPackageName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -358,6 +459,9 @@ public final class DebugJvmPackageTable { for (int i = 0; i < metadataParts_.size(); i++) { output.writeMessage(2, metadataParts_.get(i)); } + for (int i = 0; i < jvmPackageName_.size(); i++) { + output.writeBytes(3, jvmPackageName_.getByteString(i)); + } getUnknownFields().writeTo(output); } @@ -375,6 +479,15 @@ public final class DebugJvmPackageTable { size += org.jetbrains.kotlin.protobuf.CodedOutputStream .computeMessageSize(2, metadataParts_.get(i)); } + { + int dataSize = 0; + for (int i = 0; i < jvmPackageName_.size(); i++) { + dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeBytesSizeNoTag(jvmPackageName_.getByteString(i)); + } + size += dataSize; + size += 1 * getJvmPackageNameList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; @@ -506,6 +619,8 @@ public final class DebugJvmPackageTable { } else { metadataPartsBuilder_.clear(); } + jvmPackageName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -551,6 +666,11 @@ public final class DebugJvmPackageTable { } else { result.metadataParts_ = metadataPartsBuilder_.build(); } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + jvmPackageName_ = jvmPackageName_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.jvmPackageName_ = jvmPackageName_; onBuilt(); return result; } @@ -618,6 +738,16 @@ public final class DebugJvmPackageTable { } } } + if (!other.jvmPackageName_.isEmpty()) { + if (jvmPackageName_.isEmpty()) { + jvmPackageName_ = other.jvmPackageName_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureJvmPackageNameIsMutable(); + jvmPackageName_.addAll(other.jvmPackageName_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); return this; } @@ -1281,6 +1411,144 @@ public final class DebugJvmPackageTable { return metadataPartsBuilder_; } + private org.jetbrains.kotlin.protobuf.LazyStringList jvmPackageName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + private void ensureJvmPackageNameIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + jvmPackageName_ = new org.jetbrains.kotlin.protobuf.LazyStringArrayList(jvmPackageName_); + bitField0_ |= 0x00000004; + } + } + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + public org.jetbrains.kotlin.protobuf.ProtocolStringList + getJvmPackageNameList() { + return jvmPackageName_.getUnmodifiableView(); + } + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + public int getJvmPackageNameCount() { + return jvmPackageName_.size(); + } + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + public java.lang.String getJvmPackageName(int index) { + return jvmPackageName_.get(index); + } + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + public org.jetbrains.kotlin.protobuf.ByteString + getJvmPackageNameBytes(int index) { + return jvmPackageName_.getByteString(index); + } + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + public Builder setJvmPackageName( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJvmPackageNameIsMutable(); + jvmPackageName_.set(index, value); + onChanged(); + return this; + } + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + public Builder addJvmPackageName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJvmPackageNameIsMutable(); + jvmPackageName_.add(value); + onChanged(); + return this; + } + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + public Builder addAllJvmPackageName( + java.lang.Iterable
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + public Builder clearJvmPackageName() { + jvmPackageName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + public Builder addJvmPackageNameBytes( + org.jetbrains.kotlin.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJvmPackageNameIsMutable(); + jvmPackageName_.add(value); + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.jvm.PackageTable) } @@ -1311,109 +1579,189 @@ public final class DebugJvmPackageTable { getPackageFqNameBytes(); /** - *
repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
org.jetbrains.kotlin.protobuf.ProtocolStringList
- getClassNameList();
+ getShortClassNameList();
/**
- * repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
- int getClassNameCount();
+ int getShortClassNameCount();
/**
- * repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
- java.lang.String getClassName(int index);
+ java.lang.String getShortClassName(int index);
/**
- * repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
org.jetbrains.kotlin.protobuf.ByteString
- getClassNameBytes(int index);
+ getShortClassNameBytes(int index);
/**
- * repeated int32 multifile_facade_id = 3 [packed = true];
+ * repeated int32 multifile_facade_short_name_id = 3 [packed = true];
*
*
- * For each class name listed above, index of the name of the corresponding multi-file facade class in multifile_facade_name + 1,
+ * For each name in short_class_name, index of the name of the corresponding multi-file facade class in multifile_facade_short_name + 1,
* or 0 if the class is not a multi-file part. If there's no value in this list at some index, the value is assumed to be 0.
* (e.g. if there are no multi-file classes in the module, this list is not going to exist at all)
*
*/
- java.util.Listrepeated int32 multifile_facade_id = 3 [packed = true];
+ * repeated int32 multifile_facade_short_name_id = 3 [packed = true];
*
*
- * For each class name listed above, index of the name of the corresponding multi-file facade class in multifile_facade_name + 1,
+ * For each name in short_class_name, index of the name of the corresponding multi-file facade class in multifile_facade_short_name + 1,
* or 0 if the class is not a multi-file part. If there's no value in this list at some index, the value is assumed to be 0.
* (e.g. if there are no multi-file classes in the module, this list is not going to exist at all)
*
*/
- int getMultifileFacadeIdCount();
+ int getMultifileFacadeShortNameIdCount();
/**
- * repeated int32 multifile_facade_id = 3 [packed = true];
+ * repeated int32 multifile_facade_short_name_id = 3 [packed = true];
*
*
- * For each class name listed above, index of the name of the corresponding multi-file facade class in multifile_facade_name + 1,
+ * For each name in short_class_name, index of the name of the corresponding multi-file facade class in multifile_facade_short_name + 1,
* or 0 if the class is not a multi-file part. If there's no value in this list at some index, the value is assumed to be 0.
* (e.g. if there are no multi-file classes in the module, this list is not going to exist at all)
*
*/
- int getMultifileFacadeId(int index);
+ int getMultifileFacadeShortNameId(int index);
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
org.jetbrains.kotlin.protobuf.ProtocolStringList
- getMultifileFacadeNameList();
+ getMultifileFacadeShortNameList();
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
- int getMultifileFacadeNameCount();
+ int getMultifileFacadeShortNameCount();
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
- java.lang.String getMultifileFacadeName(int index);
+ java.lang.String getMultifileFacadeShortName(int index);
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
org.jetbrains.kotlin.protobuf.ByteString
- getMultifileFacadeNameBytes(int index);
+ getMultifileFacadeShortNameBytes(int index);
+
+ /**
+ * repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + org.jetbrains.kotlin.protobuf.ProtocolStringList + getClassWithJvmPackageNameShortNameList(); + /** + *
repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + int getClassWithJvmPackageNameShortNameCount(); + /** + *
repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + java.lang.String getClassWithJvmPackageNameShortName(int index); + /** + *
repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + org.jetbrains.kotlin.protobuf.ByteString + getClassWithJvmPackageNameShortNameBytes(int index); + + /** + *
repeated int32 class_with_jvm_package_name_package_id = 6 [packed = true];
+ *
+ * + * For each name in class_with_jvm_package_name_short_name, the index (into PackageTable#jvm_package_name) of the JVM package name. + * This list should have at least one element, otherwise classes with JVM package names are going to be ignored completely. + * If there's no value in this list at some index other than 0, the value is assumed to be the same as the value of the last element + * of this list. The intended use case for this optimization is to have just a list of a single element in the most frequent case + * when a bunch of files from the same Kotlin package have the same JVM package name. + *+ */ + java.util.List
repeated int32 class_with_jvm_package_name_package_id = 6 [packed = true];
+ *
+ * + * For each name in class_with_jvm_package_name_short_name, the index (into PackageTable#jvm_package_name) of the JVM package name. + * This list should have at least one element, otherwise classes with JVM package names are going to be ignored completely. + * If there's no value in this list at some index other than 0, the value is assumed to be the same as the value of the last element + * of this list. The intended use case for this optimization is to have just a list of a single element in the most frequent case + * when a bunch of files from the same Kotlin package have the same JVM package name. + *+ */ + int getClassWithJvmPackageNamePackageIdCount(); + /** + *
repeated int32 class_with_jvm_package_name_package_id = 6 [packed = true];
+ *
+ * + * For each name in class_with_jvm_package_name_short_name, the index (into PackageTable#jvm_package_name) of the JVM package name. + * This list should have at least one element, otherwise classes with JVM package names are going to be ignored completely. + * If there's no value in this list at some index other than 0, the value is assumed to be the same as the value of the last element + * of this list. The intended use case for this optimization is to have just a list of a single element in the most frequent case + * when a bunch of files from the same Kotlin package have the same JVM package name. + *+ */ + int getClassWithJvmPackageNamePackageId(int index); } /** * Protobuf type {@code org.jetbrains.kotlin.serialization.jvm.PackageParts} @@ -1476,29 +1824,29 @@ public final class DebugJvmPackageTable { case 18: { org.jetbrains.kotlin.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - className_ = new org.jetbrains.kotlin.protobuf.LazyStringArrayList(); + shortClassName_ = new org.jetbrains.kotlin.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } - className_.add(bs); + shortClassName_.add(bs); break; } case 24: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - multifileFacadeId_ = new java.util.ArrayList
repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
public org.jetbrains.kotlin.protobuf.ProtocolStringList
- getClassNameList() {
- return className_;
+ getShortClassNameList() {
+ return shortClassName_;
}
/**
- * repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
- public int getClassNameCount() {
- return className_.size();
+ public int getShortClassNameCount() {
+ return shortClassName_.size();
}
/**
- * repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
- public java.lang.String getClassName(int index) {
- return className_.get(index);
+ public java.lang.String getShortClassName(int index) {
+ return shortClassName_.get(index);
}
/**
- * repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
public org.jetbrains.kotlin.protobuf.ByteString
- getClassNameBytes(int index) {
- return className_.getByteString(index);
+ getShortClassNameBytes(int index) {
+ return shortClassName_.getByteString(index);
}
- public static final int MULTIFILE_FACADE_ID_FIELD_NUMBER = 3;
- private java.util.Listrepeated int32 multifile_facade_id = 3 [packed = true];
+ * repeated int32 multifile_facade_short_name_id = 3 [packed = true];
*
*
- * For each class name listed above, index of the name of the corresponding multi-file facade class in multifile_facade_name + 1,
+ * For each name in short_class_name, index of the name of the corresponding multi-file facade class in multifile_facade_short_name + 1,
* or 0 if the class is not a multi-file part. If there's no value in this list at some index, the value is assumed to be 0.
* (e.g. if there are no multi-file classes in the module, this list is not going to exist at all)
*
*/
public java.util.Listrepeated int32 multifile_facade_id = 3 [packed = true];
+ * repeated int32 multifile_facade_short_name_id = 3 [packed = true];
*
*
- * For each class name listed above, index of the name of the corresponding multi-file facade class in multifile_facade_name + 1,
+ * For each name in short_class_name, index of the name of the corresponding multi-file facade class in multifile_facade_short_name + 1,
* or 0 if the class is not a multi-file part. If there's no value in this list at some index, the value is assumed to be 0.
* (e.g. if there are no multi-file classes in the module, this list is not going to exist at all)
*
*/
- public int getMultifileFacadeIdCount() {
- return multifileFacadeId_.size();
+ public int getMultifileFacadeShortNameIdCount() {
+ return multifileFacadeShortNameId_.size();
}
/**
- * repeated int32 multifile_facade_id = 3 [packed = true];
+ * repeated int32 multifile_facade_short_name_id = 3 [packed = true];
*
*
- * For each class name listed above, index of the name of the corresponding multi-file facade class in multifile_facade_name + 1,
+ * For each name in short_class_name, index of the name of the corresponding multi-file facade class in multifile_facade_short_name + 1,
* or 0 if the class is not a multi-file part. If there's no value in this list at some index, the value is assumed to be 0.
* (e.g. if there are no multi-file classes in the module, this list is not going to exist at all)
*
*/
- public int getMultifileFacadeId(int index) {
- return multifileFacadeId_.get(index);
+ public int getMultifileFacadeShortNameId(int index) {
+ return multifileFacadeShortNameId_.get(index);
}
- private int multifileFacadeIdMemoizedSerializedSize = -1;
+ private int multifileFacadeShortNameIdMemoizedSerializedSize = -1;
- public static final int MULTIFILE_FACADE_NAME_FIELD_NUMBER = 4;
- private org.jetbrains.kotlin.protobuf.LazyStringList multifileFacadeName_;
+ public static final int MULTIFILE_FACADE_SHORT_NAME_FIELD_NUMBER = 4;
+ private org.jetbrains.kotlin.protobuf.LazyStringList multifileFacadeShortName_;
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
public org.jetbrains.kotlin.protobuf.ProtocolStringList
- getMultifileFacadeNameList() {
- return multifileFacadeName_;
+ getMultifileFacadeShortNameList() {
+ return multifileFacadeShortName_;
}
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
- public int getMultifileFacadeNameCount() {
- return multifileFacadeName_.size();
+ public int getMultifileFacadeShortNameCount() {
+ return multifileFacadeShortName_.size();
}
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
- public java.lang.String getMultifileFacadeName(int index) {
- return multifileFacadeName_.get(index);
+ public java.lang.String getMultifileFacadeShortName(int index) {
+ return multifileFacadeShortName_.get(index);
}
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
public org.jetbrains.kotlin.protobuf.ByteString
- getMultifileFacadeNameBytes(int index) {
- return multifileFacadeName_.getByteString(index);
+ getMultifileFacadeShortNameBytes(int index) {
+ return multifileFacadeShortName_.getByteString(index);
}
+ public static final int CLASS_WITH_JVM_PACKAGE_NAME_SHORT_NAME_FIELD_NUMBER = 5;
+ private org.jetbrains.kotlin.protobuf.LazyStringList classWithJvmPackageNameShortName_;
+ /**
+ * repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + public org.jetbrains.kotlin.protobuf.ProtocolStringList + getClassWithJvmPackageNameShortNameList() { + return classWithJvmPackageNameShortName_; + } + /** + *
repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + public int getClassWithJvmPackageNameShortNameCount() { + return classWithJvmPackageNameShortName_.size(); + } + /** + *
repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + public java.lang.String getClassWithJvmPackageNameShortName(int index) { + return classWithJvmPackageNameShortName_.get(index); + } + /** + *
repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + public org.jetbrains.kotlin.protobuf.ByteString + getClassWithJvmPackageNameShortNameBytes(int index) { + return classWithJvmPackageNameShortName_.getByteString(index); + } + + public static final int CLASS_WITH_JVM_PACKAGE_NAME_PACKAGE_ID_FIELD_NUMBER = 6; + private java.util.List
repeated int32 class_with_jvm_package_name_package_id = 6 [packed = true];
+ *
+ * + * For each name in class_with_jvm_package_name_short_name, the index (into PackageTable#jvm_package_name) of the JVM package name. + * This list should have at least one element, otherwise classes with JVM package names are going to be ignored completely. + * If there's no value in this list at some index other than 0, the value is assumed to be the same as the value of the last element + * of this list. The intended use case for this optimization is to have just a list of a single element in the most frequent case + * when a bunch of files from the same Kotlin package have the same JVM package name. + *+ */ + public java.util.List
repeated int32 class_with_jvm_package_name_package_id = 6 [packed = true];
+ *
+ * + * For each name in class_with_jvm_package_name_short_name, the index (into PackageTable#jvm_package_name) of the JVM package name. + * This list should have at least one element, otherwise classes with JVM package names are going to be ignored completely. + * If there's no value in this list at some index other than 0, the value is assumed to be the same as the value of the last element + * of this list. The intended use case for this optimization is to have just a list of a single element in the most frequent case + * when a bunch of files from the same Kotlin package have the same JVM package name. + *+ */ + public int getClassWithJvmPackageNamePackageIdCount() { + return classWithJvmPackageNamePackageId_.size(); + } + /** + *
repeated int32 class_with_jvm_package_name_package_id = 6 [packed = true];
+ *
+ * + * For each name in class_with_jvm_package_name_short_name, the index (into PackageTable#jvm_package_name) of the JVM package name. + * This list should have at least one element, otherwise classes with JVM package names are going to be ignored completely. + * If there's no value in this list at some index other than 0, the value is assumed to be the same as the value of the last element + * of this list. The intended use case for this optimization is to have just a list of a single element in the most frequent case + * when a bunch of files from the same Kotlin package have the same JVM package name. + *+ */ + public int getClassWithJvmPackageNamePackageId(int index) { + return classWithJvmPackageNamePackageId_.get(index); + } + private int classWithJvmPackageNamePackageIdMemoizedSerializedSize = -1; + private void initFields() { packageFqName_ = ""; - className_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; - multifileFacadeId_ = java.util.Collections.emptyList(); - multifileFacadeName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + shortClassName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + multifileFacadeShortNameId_ = java.util.Collections.emptyList(); + multifileFacadeShortName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + classWithJvmPackageNameShortName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + classWithJvmPackageNamePackageId_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -1764,18 +2250,28 @@ public final class DebugJvmPackageTable { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getPackageFqNameBytes()); } - for (int i = 0; i < className_.size(); i++) { - output.writeBytes(2, className_.getByteString(i)); + for (int i = 0; i < shortClassName_.size(); i++) { + output.writeBytes(2, shortClassName_.getByteString(i)); } - if (getMultifileFacadeIdList().size() > 0) { + if (getMultifileFacadeShortNameIdList().size() > 0) { output.writeRawVarint32(26); - output.writeRawVarint32(multifileFacadeIdMemoizedSerializedSize); + output.writeRawVarint32(multifileFacadeShortNameIdMemoizedSerializedSize); } - for (int i = 0; i < multifileFacadeId_.size(); i++) { - output.writeInt32NoTag(multifileFacadeId_.get(i)); + for (int i = 0; i < multifileFacadeShortNameId_.size(); i++) { + output.writeInt32NoTag(multifileFacadeShortNameId_.get(i)); } - for (int i = 0; i < multifileFacadeName_.size(); i++) { - output.writeBytes(4, multifileFacadeName_.getByteString(i)); + for (int i = 0; i < multifileFacadeShortName_.size(); i++) { + output.writeBytes(4, multifileFacadeShortName_.getByteString(i)); + } + for (int i = 0; i < classWithJvmPackageNameShortName_.size(); i++) { + output.writeBytes(5, classWithJvmPackageNameShortName_.getByteString(i)); + } + if (getClassWithJvmPackageNamePackageIdList().size() > 0) { + output.writeRawVarint32(50); + output.writeRawVarint32(classWithJvmPackageNamePackageIdMemoizedSerializedSize); + } + for (int i = 0; i < classWithJvmPackageNamePackageId_.size(); i++) { + output.writeInt32NoTag(classWithJvmPackageNamePackageId_.get(i)); } getUnknownFields().writeTo(output); } @@ -1792,35 +2288,58 @@ public final class DebugJvmPackageTable { } { int dataSize = 0; - for (int i = 0; i < className_.size(); i++) { + for (int i = 0; i < shortClassName_.size(); i++) { dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream - .computeBytesSizeNoTag(className_.getByteString(i)); + .computeBytesSizeNoTag(shortClassName_.getByteString(i)); } size += dataSize; - size += 1 * getClassNameList().size(); + size += 1 * getShortClassNameList().size(); } { int dataSize = 0; - for (int i = 0; i < multifileFacadeId_.size(); i++) { + for (int i = 0; i < multifileFacadeShortNameId_.size(); i++) { dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream - .computeInt32SizeNoTag(multifileFacadeId_.get(i)); + .computeInt32SizeNoTag(multifileFacadeShortNameId_.get(i)); } size += dataSize; - if (!getMultifileFacadeIdList().isEmpty()) { + if (!getMultifileFacadeShortNameIdList().isEmpty()) { size += 1; size += org.jetbrains.kotlin.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } - multifileFacadeIdMemoizedSerializedSize = dataSize; + multifileFacadeShortNameIdMemoizedSerializedSize = dataSize; } { int dataSize = 0; - for (int i = 0; i < multifileFacadeName_.size(); i++) { + for (int i = 0; i < multifileFacadeShortName_.size(); i++) { dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream - .computeBytesSizeNoTag(multifileFacadeName_.getByteString(i)); + .computeBytesSizeNoTag(multifileFacadeShortName_.getByteString(i)); } size += dataSize; - size += 1 * getMultifileFacadeNameList().size(); + size += 1 * getMultifileFacadeShortNameList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < classWithJvmPackageNameShortName_.size(); i++) { + dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeBytesSizeNoTag(classWithJvmPackageNameShortName_.getByteString(i)); + } + size += dataSize; + size += 1 * getClassWithJvmPackageNameShortNameList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < classWithJvmPackageNamePackageId_.size(); i++) { + dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32SizeNoTag(classWithJvmPackageNamePackageId_.get(i)); + } + size += dataSize; + if (!getClassWithJvmPackageNamePackageIdList().isEmpty()) { + size += 1; + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + classWithJvmPackageNamePackageIdMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; @@ -1941,12 +2460,16 @@ public final class DebugJvmPackageTable { super.clear(); packageFqName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); - className_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + shortClassName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); - multifileFacadeId_ = java.util.Collections.emptyList(); + multifileFacadeShortNameId_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); - multifileFacadeName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + multifileFacadeShortName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); + classWithJvmPackageNameShortName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + classWithJvmPackageNamePackageId_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); return this; } @@ -1980,20 +2503,30 @@ public final class DebugJvmPackageTable { } result.packageFqName_ = packageFqName_; if (((bitField0_ & 0x00000002) == 0x00000002)) { - className_ = className_.getUnmodifiableView(); + shortClassName_ = shortClassName_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } - result.className_ = className_; + result.shortClassName_ = shortClassName_; if (((bitField0_ & 0x00000004) == 0x00000004)) { - multifileFacadeId_ = java.util.Collections.unmodifiableList(multifileFacadeId_); + multifileFacadeShortNameId_ = java.util.Collections.unmodifiableList(multifileFacadeShortNameId_); bitField0_ = (bitField0_ & ~0x00000004); } - result.multifileFacadeId_ = multifileFacadeId_; + result.multifileFacadeShortNameId_ = multifileFacadeShortNameId_; if (((bitField0_ & 0x00000008) == 0x00000008)) { - multifileFacadeName_ = multifileFacadeName_.getUnmodifiableView(); + multifileFacadeShortName_ = multifileFacadeShortName_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } - result.multifileFacadeName_ = multifileFacadeName_; + result.multifileFacadeShortName_ = multifileFacadeShortName_; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + classWithJvmPackageNameShortName_ = classWithJvmPackageNameShortName_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.classWithJvmPackageNameShortName_ = classWithJvmPackageNameShortName_; + if (((bitField0_ & 0x00000020) == 0x00000020)) { + classWithJvmPackageNamePackageId_ = java.util.Collections.unmodifiableList(classWithJvmPackageNamePackageId_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.classWithJvmPackageNamePackageId_ = classWithJvmPackageNamePackageId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -2015,33 +2548,53 @@ public final class DebugJvmPackageTable { packageFqName_ = other.packageFqName_; onChanged(); } - if (!other.className_.isEmpty()) { - if (className_.isEmpty()) { - className_ = other.className_; + if (!other.shortClassName_.isEmpty()) { + if (shortClassName_.isEmpty()) { + shortClassName_ = other.shortClassName_; bitField0_ = (bitField0_ & ~0x00000002); } else { - ensureClassNameIsMutable(); - className_.addAll(other.className_); + ensureShortClassNameIsMutable(); + shortClassName_.addAll(other.shortClassName_); } onChanged(); } - if (!other.multifileFacadeId_.isEmpty()) { - if (multifileFacadeId_.isEmpty()) { - multifileFacadeId_ = other.multifileFacadeId_; + if (!other.multifileFacadeShortNameId_.isEmpty()) { + if (multifileFacadeShortNameId_.isEmpty()) { + multifileFacadeShortNameId_ = other.multifileFacadeShortNameId_; bitField0_ = (bitField0_ & ~0x00000004); } else { - ensureMultifileFacadeIdIsMutable(); - multifileFacadeId_.addAll(other.multifileFacadeId_); + ensureMultifileFacadeShortNameIdIsMutable(); + multifileFacadeShortNameId_.addAll(other.multifileFacadeShortNameId_); } onChanged(); } - if (!other.multifileFacadeName_.isEmpty()) { - if (multifileFacadeName_.isEmpty()) { - multifileFacadeName_ = other.multifileFacadeName_; + if (!other.multifileFacadeShortName_.isEmpty()) { + if (multifileFacadeShortName_.isEmpty()) { + multifileFacadeShortName_ = other.multifileFacadeShortName_; bitField0_ = (bitField0_ & ~0x00000008); } else { - ensureMultifileFacadeNameIsMutable(); - multifileFacadeName_.addAll(other.multifileFacadeName_); + ensureMultifileFacadeShortNameIsMutable(); + multifileFacadeShortName_.addAll(other.multifileFacadeShortName_); + } + onChanged(); + } + if (!other.classWithJvmPackageNameShortName_.isEmpty()) { + if (classWithJvmPackageNameShortName_.isEmpty()) { + classWithJvmPackageNameShortName_ = other.classWithJvmPackageNameShortName_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureClassWithJvmPackageNameShortNameIsMutable(); + classWithJvmPackageNameShortName_.addAll(other.classWithJvmPackageNameShortName_); + } + onChanged(); + } + if (!other.classWithJvmPackageNamePackageId_.isEmpty()) { + if (classWithJvmPackageNamePackageId_.isEmpty()) { + classWithJvmPackageNamePackageId_ = other.classWithJvmPackageNamePackageId_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureClassWithJvmPackageNamePackageIdIsMutable(); + classWithJvmPackageNamePackageId_.addAll(other.classWithJvmPackageNamePackageId_); } onChanged(); } @@ -2152,377 +2705,646 @@ public final class DebugJvmPackageTable { return this; } - private org.jetbrains.kotlin.protobuf.LazyStringList className_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; - private void ensureClassNameIsMutable() { + private org.jetbrains.kotlin.protobuf.LazyStringList shortClassName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + private void ensureShortClassNameIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { - className_ = new org.jetbrains.kotlin.protobuf.LazyStringArrayList(className_); + shortClassName_ = new org.jetbrains.kotlin.protobuf.LazyStringArrayList(shortClassName_); bitField0_ |= 0x00000002; } } /** - *
repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
public org.jetbrains.kotlin.protobuf.ProtocolStringList
- getClassNameList() {
- return className_.getUnmodifiableView();
+ getShortClassNameList() {
+ return shortClassName_.getUnmodifiableView();
}
/**
- * repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
- public int getClassNameCount() {
- return className_.size();
+ public int getShortClassNameCount() {
+ return shortClassName_.size();
}
/**
- * repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
- public java.lang.String getClassName(int index) {
- return className_.get(index);
+ public java.lang.String getShortClassName(int index) {
+ return shortClassName_.get(index);
}
/**
- * repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
public org.jetbrains.kotlin.protobuf.ByteString
- getClassNameBytes(int index) {
- return className_.getByteString(index);
+ getShortClassNameBytes(int index) {
+ return shortClassName_.getByteString(index);
}
/**
- * repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
- public Builder setClassName(
+ public Builder setShortClassName(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- ensureClassNameIsMutable();
- className_.set(index, value);
+ ensureShortClassNameIsMutable();
+ shortClassName_.set(index, value);
onChanged();
return this;
}
/**
- * repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
- public Builder addClassName(
+ public Builder addShortClassName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- ensureClassNameIsMutable();
- className_.add(value);
+ ensureShortClassNameIsMutable();
+ shortClassName_.add(value);
onChanged();
return this;
}
/**
- * repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
- public Builder addAllClassName(
+ public Builder addAllShortClassName(
java.lang.Iterablerepeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
- public Builder clearClassName() {
- className_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY;
+ public Builder clearShortClassName() {
+ shortClassName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
- * repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
- public Builder addClassNameBytes(
+ public Builder addShortClassNameBytes(
org.jetbrains.kotlin.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- ensureClassNameIsMutable();
- className_.add(value);
+ ensureShortClassNameIsMutable();
+ shortClassName_.add(value);
onChanged();
return this;
}
- private java.util.Listrepeated int32 multifile_facade_id = 3 [packed = true];
+ * repeated int32 multifile_facade_short_name_id = 3 [packed = true];
*
*
- * For each class name listed above, index of the name of the corresponding multi-file facade class in multifile_facade_name + 1,
+ * For each name in short_class_name, index of the name of the corresponding multi-file facade class in multifile_facade_short_name + 1,
* or 0 if the class is not a multi-file part. If there's no value in this list at some index, the value is assumed to be 0.
* (e.g. if there are no multi-file classes in the module, this list is not going to exist at all)
*
*/
public java.util.Listrepeated int32 multifile_facade_id = 3 [packed = true];
+ * repeated int32 multifile_facade_short_name_id = 3 [packed = true];
*
*
- * For each class name listed above, index of the name of the corresponding multi-file facade class in multifile_facade_name + 1,
+ * For each name in short_class_name, index of the name of the corresponding multi-file facade class in multifile_facade_short_name + 1,
* or 0 if the class is not a multi-file part. If there's no value in this list at some index, the value is assumed to be 0.
* (e.g. if there are no multi-file classes in the module, this list is not going to exist at all)
*
*/
- public int getMultifileFacadeIdCount() {
- return multifileFacadeId_.size();
+ public int getMultifileFacadeShortNameIdCount() {
+ return multifileFacadeShortNameId_.size();
}
/**
- * repeated int32 multifile_facade_id = 3 [packed = true];
+ * repeated int32 multifile_facade_short_name_id = 3 [packed = true];
*
*
- * For each class name listed above, index of the name of the corresponding multi-file facade class in multifile_facade_name + 1,
+ * For each name in short_class_name, index of the name of the corresponding multi-file facade class in multifile_facade_short_name + 1,
* or 0 if the class is not a multi-file part. If there's no value in this list at some index, the value is assumed to be 0.
* (e.g. if there are no multi-file classes in the module, this list is not going to exist at all)
*
*/
- public int getMultifileFacadeId(int index) {
- return multifileFacadeId_.get(index);
+ public int getMultifileFacadeShortNameId(int index) {
+ return multifileFacadeShortNameId_.get(index);
}
/**
- * repeated int32 multifile_facade_id = 3 [packed = true];
+ * repeated int32 multifile_facade_short_name_id = 3 [packed = true];
*
*
- * For each class name listed above, index of the name of the corresponding multi-file facade class in multifile_facade_name + 1,
+ * For each name in short_class_name, index of the name of the corresponding multi-file facade class in multifile_facade_short_name + 1,
* or 0 if the class is not a multi-file part. If there's no value in this list at some index, the value is assumed to be 0.
* (e.g. if there are no multi-file classes in the module, this list is not going to exist at all)
*
*/
- public Builder setMultifileFacadeId(
+ public Builder setMultifileFacadeShortNameId(
int index, int value) {
- ensureMultifileFacadeIdIsMutable();
- multifileFacadeId_.set(index, value);
+ ensureMultifileFacadeShortNameIdIsMutable();
+ multifileFacadeShortNameId_.set(index, value);
onChanged();
return this;
}
/**
- * repeated int32 multifile_facade_id = 3 [packed = true];
+ * repeated int32 multifile_facade_short_name_id = 3 [packed = true];
*
*
- * For each class name listed above, index of the name of the corresponding multi-file facade class in multifile_facade_name + 1,
+ * For each name in short_class_name, index of the name of the corresponding multi-file facade class in multifile_facade_short_name + 1,
* or 0 if the class is not a multi-file part. If there's no value in this list at some index, the value is assumed to be 0.
* (e.g. if there are no multi-file classes in the module, this list is not going to exist at all)
*
*/
- public Builder addMultifileFacadeId(int value) {
- ensureMultifileFacadeIdIsMutable();
- multifileFacadeId_.add(value);
+ public Builder addMultifileFacadeShortNameId(int value) {
+ ensureMultifileFacadeShortNameIdIsMutable();
+ multifileFacadeShortNameId_.add(value);
onChanged();
return this;
}
/**
- * repeated int32 multifile_facade_id = 3 [packed = true];
+ * repeated int32 multifile_facade_short_name_id = 3 [packed = true];
*
*
- * For each class name listed above, index of the name of the corresponding multi-file facade class in multifile_facade_name + 1,
+ * For each name in short_class_name, index of the name of the corresponding multi-file facade class in multifile_facade_short_name + 1,
* or 0 if the class is not a multi-file part. If there's no value in this list at some index, the value is assumed to be 0.
* (e.g. if there are no multi-file classes in the module, this list is not going to exist at all)
*
*/
- public Builder addAllMultifileFacadeId(
+ public Builder addAllMultifileFacadeShortNameId(
java.lang.Iterable extends java.lang.Integer> values) {
- ensureMultifileFacadeIdIsMutable();
+ ensureMultifileFacadeShortNameIdIsMutable();
org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll(
- values, multifileFacadeId_);
+ values, multifileFacadeShortNameId_);
onChanged();
return this;
}
/**
- * repeated int32 multifile_facade_id = 3 [packed = true];
+ * repeated int32 multifile_facade_short_name_id = 3 [packed = true];
*
*
- * For each class name listed above, index of the name of the corresponding multi-file facade class in multifile_facade_name + 1,
+ * For each name in short_class_name, index of the name of the corresponding multi-file facade class in multifile_facade_short_name + 1,
* or 0 if the class is not a multi-file part. If there's no value in this list at some index, the value is assumed to be 0.
* (e.g. if there are no multi-file classes in the module, this list is not going to exist at all)
*
*/
- public Builder clearMultifileFacadeId() {
- multifileFacadeId_ = java.util.Collections.emptyList();
+ public Builder clearMultifileFacadeShortNameId() {
+ multifileFacadeShortNameId_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
- private org.jetbrains.kotlin.protobuf.LazyStringList multifileFacadeName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY;
- private void ensureMultifileFacadeNameIsMutable() {
+ private org.jetbrains.kotlin.protobuf.LazyStringList multifileFacadeShortName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY;
+ private void ensureMultifileFacadeShortNameIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
- multifileFacadeName_ = new org.jetbrains.kotlin.protobuf.LazyStringArrayList(multifileFacadeName_);
+ multifileFacadeShortName_ = new org.jetbrains.kotlin.protobuf.LazyStringArrayList(multifileFacadeShortName_);
bitField0_ |= 0x00000008;
}
}
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
public org.jetbrains.kotlin.protobuf.ProtocolStringList
- getMultifileFacadeNameList() {
- return multifileFacadeName_.getUnmodifiableView();
+ getMultifileFacadeShortNameList() {
+ return multifileFacadeShortName_.getUnmodifiableView();
}
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
- public int getMultifileFacadeNameCount() {
- return multifileFacadeName_.size();
+ public int getMultifileFacadeShortNameCount() {
+ return multifileFacadeShortName_.size();
}
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
- public java.lang.String getMultifileFacadeName(int index) {
- return multifileFacadeName_.get(index);
+ public java.lang.String getMultifileFacadeShortName(int index) {
+ return multifileFacadeShortName_.get(index);
}
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
public org.jetbrains.kotlin.protobuf.ByteString
- getMultifileFacadeNameBytes(int index) {
- return multifileFacadeName_.getByteString(index);
+ getMultifileFacadeShortNameBytes(int index) {
+ return multifileFacadeShortName_.getByteString(index);
}
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
- public Builder setMultifileFacadeName(
+ public Builder setMultifileFacadeShortName(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- ensureMultifileFacadeNameIsMutable();
- multifileFacadeName_.set(index, value);
+ ensureMultifileFacadeShortNameIsMutable();
+ multifileFacadeShortName_.set(index, value);
onChanged();
return this;
}
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
- public Builder addMultifileFacadeName(
+ public Builder addMultifileFacadeShortName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- ensureMultifileFacadeNameIsMutable();
- multifileFacadeName_.add(value);
+ ensureMultifileFacadeShortNameIsMutable();
+ multifileFacadeShortName_.add(value);
onChanged();
return this;
}
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
- public Builder addAllMultifileFacadeName(
+ public Builder addAllMultifileFacadeShortName(
java.lang.Iterablerepeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
- public Builder clearMultifileFacadeName() {
- multifileFacadeName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY;
+ public Builder clearMultifileFacadeShortName() {
+ multifileFacadeShortName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
- public Builder addMultifileFacadeNameBytes(
+ public Builder addMultifileFacadeShortNameBytes(
org.jetbrains.kotlin.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- ensureMultifileFacadeNameIsMutable();
- multifileFacadeName_.add(value);
+ ensureMultifileFacadeShortNameIsMutable();
+ multifileFacadeShortName_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private org.jetbrains.kotlin.protobuf.LazyStringList classWithJvmPackageNameShortName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY;
+ private void ensureClassWithJvmPackageNameShortNameIsMutable() {
+ if (!((bitField0_ & 0x00000010) == 0x00000010)) {
+ classWithJvmPackageNameShortName_ = new org.jetbrains.kotlin.protobuf.LazyStringArrayList(classWithJvmPackageNameShortName_);
+ bitField0_ |= 0x00000010;
+ }
+ }
+ /**
+ * repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + public org.jetbrains.kotlin.protobuf.ProtocolStringList + getClassWithJvmPackageNameShortNameList() { + return classWithJvmPackageNameShortName_.getUnmodifiableView(); + } + /** + *
repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + public int getClassWithJvmPackageNameShortNameCount() { + return classWithJvmPackageNameShortName_.size(); + } + /** + *
repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + public java.lang.String getClassWithJvmPackageNameShortName(int index) { + return classWithJvmPackageNameShortName_.get(index); + } + /** + *
repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + public org.jetbrains.kotlin.protobuf.ByteString + getClassWithJvmPackageNameShortNameBytes(int index) { + return classWithJvmPackageNameShortName_.getByteString(index); + } + /** + *
repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + public Builder setClassWithJvmPackageNameShortName( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureClassWithJvmPackageNameShortNameIsMutable(); + classWithJvmPackageNameShortName_.set(index, value); + onChanged(); + return this; + } + /** + *
repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + public Builder addClassWithJvmPackageNameShortName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureClassWithJvmPackageNameShortNameIsMutable(); + classWithJvmPackageNameShortName_.add(value); + onChanged(); + return this; + } + /** + *
repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + public Builder addAllClassWithJvmPackageNameShortName( + java.lang.Iterable
repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + public Builder clearClassWithJvmPackageNameShortName() { + classWithJvmPackageNameShortName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + public Builder addClassWithJvmPackageNameShortNameBytes( + org.jetbrains.kotlin.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureClassWithJvmPackageNameShortNameIsMutable(); + classWithJvmPackageNameShortName_.add(value); + onChanged(); + return this; + } + + private java.util.List
repeated int32 class_with_jvm_package_name_package_id = 6 [packed = true];
+ *
+ * + * For each name in class_with_jvm_package_name_short_name, the index (into PackageTable#jvm_package_name) of the JVM package name. + * This list should have at least one element, otherwise classes with JVM package names are going to be ignored completely. + * If there's no value in this list at some index other than 0, the value is assumed to be the same as the value of the last element + * of this list. The intended use case for this optimization is to have just a list of a single element in the most frequent case + * when a bunch of files from the same Kotlin package have the same JVM package name. + *+ */ + public java.util.List
repeated int32 class_with_jvm_package_name_package_id = 6 [packed = true];
+ *
+ * + * For each name in class_with_jvm_package_name_short_name, the index (into PackageTable#jvm_package_name) of the JVM package name. + * This list should have at least one element, otherwise classes with JVM package names are going to be ignored completely. + * If there's no value in this list at some index other than 0, the value is assumed to be the same as the value of the last element + * of this list. The intended use case for this optimization is to have just a list of a single element in the most frequent case + * when a bunch of files from the same Kotlin package have the same JVM package name. + *+ */ + public int getClassWithJvmPackageNamePackageIdCount() { + return classWithJvmPackageNamePackageId_.size(); + } + /** + *
repeated int32 class_with_jvm_package_name_package_id = 6 [packed = true];
+ *
+ * + * For each name in class_with_jvm_package_name_short_name, the index (into PackageTable#jvm_package_name) of the JVM package name. + * This list should have at least one element, otherwise classes with JVM package names are going to be ignored completely. + * If there's no value in this list at some index other than 0, the value is assumed to be the same as the value of the last element + * of this list. The intended use case for this optimization is to have just a list of a single element in the most frequent case + * when a bunch of files from the same Kotlin package have the same JVM package name. + *+ */ + public int getClassWithJvmPackageNamePackageId(int index) { + return classWithJvmPackageNamePackageId_.get(index); + } + /** + *
repeated int32 class_with_jvm_package_name_package_id = 6 [packed = true];
+ *
+ * + * For each name in class_with_jvm_package_name_short_name, the index (into PackageTable#jvm_package_name) of the JVM package name. + * This list should have at least one element, otherwise classes with JVM package names are going to be ignored completely. + * If there's no value in this list at some index other than 0, the value is assumed to be the same as the value of the last element + * of this list. The intended use case for this optimization is to have just a list of a single element in the most frequent case + * when a bunch of files from the same Kotlin package have the same JVM package name. + *+ */ + public Builder setClassWithJvmPackageNamePackageId( + int index, int value) { + ensureClassWithJvmPackageNamePackageIdIsMutable(); + classWithJvmPackageNamePackageId_.set(index, value); + onChanged(); + return this; + } + /** + *
repeated int32 class_with_jvm_package_name_package_id = 6 [packed = true];
+ *
+ * + * For each name in class_with_jvm_package_name_short_name, the index (into PackageTable#jvm_package_name) of the JVM package name. + * This list should have at least one element, otherwise classes with JVM package names are going to be ignored completely. + * If there's no value in this list at some index other than 0, the value is assumed to be the same as the value of the last element + * of this list. The intended use case for this optimization is to have just a list of a single element in the most frequent case + * when a bunch of files from the same Kotlin package have the same JVM package name. + *+ */ + public Builder addClassWithJvmPackageNamePackageId(int value) { + ensureClassWithJvmPackageNamePackageIdIsMutable(); + classWithJvmPackageNamePackageId_.add(value); + onChanged(); + return this; + } + /** + *
repeated int32 class_with_jvm_package_name_package_id = 6 [packed = true];
+ *
+ * + * For each name in class_with_jvm_package_name_short_name, the index (into PackageTable#jvm_package_name) of the JVM package name. + * This list should have at least one element, otherwise classes with JVM package names are going to be ignored completely. + * If there's no value in this list at some index other than 0, the value is assumed to be the same as the value of the last element + * of this list. The intended use case for this optimization is to have just a list of a single element in the most frequent case + * when a bunch of files from the same Kotlin package have the same JVM package name. + *+ */ + public Builder addAllClassWithJvmPackageNamePackageId( + java.lang.Iterable extends java.lang.Integer> values) { + ensureClassWithJvmPackageNamePackageIdIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, classWithJvmPackageNamePackageId_); + onChanged(); + return this; + } + /** + *
repeated int32 class_with_jvm_package_name_package_id = 6 [packed = true];
+ *
+ * + * For each name in class_with_jvm_package_name_short_name, the index (into PackageTable#jvm_package_name) of the JVM package name. + * This list should have at least one element, otherwise classes with JVM package names are going to be ignored completely. + * If there's no value in this list at some index other than 0, the value is assumed to be the same as the value of the last element + * of this list. The intended use case for this optimization is to have just a list of a single element in the most frequent case + * when a bunch of files from the same Kotlin package have the same JVM package name. + *+ */ + public Builder clearClassWithJvmPackageNamePackageId() { + classWithJvmPackageNamePackageId_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2559,15 +3381,19 @@ public final class DebugJvmPackageTable { java.lang.String[] descriptorData = { "\n=core/descriptor.loader.java/src/jvm_pa" + "ckage_table.debug.proto\022&org.jetbrains.k" + - "otlin.serialization.jvm\"\251\001\n\014PackageTable" + + "otlin.serialization.jvm\"\303\001\n\014PackageTable" + "\022K\n\rpackage_parts\030\001 \003(\01324.org.jetbrains." + "kotlin.serialization.jvm.PackageParts\022L\n" + "\016metadata_parts\030\002 \003(\01324.org.jetbrains.ko" + - "tlin.serialization.jvm.PackageParts\"{\n\014P" + - "ackageParts\022\027\n\017package_fq_name\030\001 \002(\t\022\022\n\n" + - "class_name\030\002 \003(\t\022\037\n\023multifile_facade_id\030" + - "\003 \003(\005B\002\020\001\022\035\n\025multifile_facade_name\030\004 \003(\t", - "B\026B\024DebugJvmPackageTable" + "tlin.serialization.jvm.PackageParts\022\030\n\020j" + + "vm_package_name\030\003 \003(\t\"\366\001\n\014PackageParts\022\027" + + "\n\017package_fq_name\030\001 \002(\t\022\030\n\020short_class_n" + + "ame\030\002 \003(\t\022*\n\036multifile_facade_short_name", + "_id\030\003 \003(\005B\002\020\001\022#\n\033multifile_facade_short_" + + "name\030\004 \003(\t\022.\n&class_with_jvm_package_nam" + + "e_short_name\030\005 \003(\t\0222\n&class_with_jvm_pac" + + "kage_name_package_id\030\006 \003(\005B\002\020\001B\026B\024DebugJ" + + "vmPackageTable" }; org.jetbrains.kotlin.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new org.jetbrains.kotlin.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -2586,13 +3412,13 @@ public final class DebugJvmPackageTable { internal_static_org_jetbrains_kotlin_serialization_jvm_PackageTable_fieldAccessorTable = new org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_jetbrains_kotlin_serialization_jvm_PackageTable_descriptor, - new java.lang.String[] { "PackageParts", "MetadataParts", }); + new java.lang.String[] { "PackageParts", "MetadataParts", "JvmPackageName", }); internal_static_org_jetbrains_kotlin_serialization_jvm_PackageParts_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_org_jetbrains_kotlin_serialization_jvm_PackageParts_fieldAccessorTable = new org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_jetbrains_kotlin_serialization_jvm_PackageParts_descriptor, - new java.lang.String[] { "PackageFqName", "ClassName", "MultifileFacadeId", "MultifileFacadeName", }); + new java.lang.String[] { "PackageFqName", "ShortClassName", "MultifileFacadeShortNameId", "MultifileFacadeShortName", "ClassWithJvmPackageNameShortName", "ClassWithJvmPackageNamePackageId", }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/compiler/backend/src/org/jetbrains/kotlin/codegen/ClassFileFactory.java b/compiler/backend/src/org/jetbrains/kotlin/codegen/ClassFileFactory.java index 00cb81608b9..559c8bc7281 100644 --- a/compiler/backend/src/org/jetbrains/kotlin/codegen/ClassFileFactory.java +++ b/compiler/backend/src/org/jetbrains/kotlin/codegen/ClassFileFactory.java @@ -197,9 +197,9 @@ public class ClassFileFactory implements OutputFileCollection { private PackagePartRegistry buildNewPackagePartRegistry(@NotNull FqName packageFqName) { String packageFqNameAsString = packageFqName.asString(); - return (partShortName, facadeShortName) -> { + return (partInternalName, facadeInternalName) -> { PackageParts packageParts = partsGroupedByPackage.computeIfAbsent(packageFqNameAsString, PackageParts::new); - packageParts.addPart(partShortName, facadeShortName); + packageParts.addPart(partInternalName, facadeInternalName); }; } diff --git a/compiler/backend/src/org/jetbrains/kotlin/codegen/MultifileClassCodegen.kt b/compiler/backend/src/org/jetbrains/kotlin/codegen/MultifileClassCodegen.kt index 939db10c883..3b0474ebd89 100644 --- a/compiler/backend/src/org/jetbrains/kotlin/codegen/MultifileClassCodegen.kt +++ b/compiler/backend/src/org/jetbrains/kotlin/codegen/MultifileClassCodegen.kt @@ -209,7 +209,7 @@ class MultifileClassCodegenImpl( if (!state.generateDeclaredClassFilter.shouldGeneratePackagePart(file) || !file.hasDeclarationsForPartClass()) return - packagePartRegistry.addPart(partType.internalName.substringAfterLast('/'), facadeClassType.internalName.substringAfterLast('/')) + packagePartRegistry.addPart(partType.internalName, facadeClassType.internalName) val builder = state.factory.newVisitor(MultifileClassPart(file, packageFragment), partType, file) diff --git a/compiler/backend/src/org/jetbrains/kotlin/codegen/PackageCodegenImpl.java b/compiler/backend/src/org/jetbrains/kotlin/codegen/PackageCodegenImpl.java index b2e912240f3..e20d0e84bb8 100644 --- a/compiler/backend/src/org/jetbrains/kotlin/codegen/PackageCodegenImpl.java +++ b/compiler/backend/src/org/jetbrains/kotlin/codegen/PackageCodegenImpl.java @@ -20,7 +20,6 @@ import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.progress.ProcessCanceledException; import com.intellij.openapi.vfs.VirtualFile; import com.intellij.util.SmartList; -import kotlin.text.StringsKt; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.jetbrains.kotlin.codegen.context.PackageContext; @@ -123,8 +122,7 @@ public class PackageCodegenImpl implements PackageCodegen { if (!generatePackagePart || !state.getGenerateDeclaredClassFilter().shouldGeneratePackagePart(file)) return; - String name = fileClassType.getInternalName(); - packagePartRegistry.addPart(StringsKt.substringAfterLast(name, '/', name), null); + packagePartRegistry.addPart(fileClassType.getInternalName(), null); ClassBuilder builder = state.getFactory().newVisitor(JvmDeclarationOriginKt.PackagePart(file, packageFragment), fileClassType, file); diff --git a/compiler/backend/src/org/jetbrains/kotlin/codegen/PackagePartRegistry.kt b/compiler/backend/src/org/jetbrains/kotlin/codegen/PackagePartRegistry.kt index 453fa63bafe..5cd23ad1299 100644 --- a/compiler/backend/src/org/jetbrains/kotlin/codegen/PackagePartRegistry.kt +++ b/compiler/backend/src/org/jetbrains/kotlin/codegen/PackagePartRegistry.kt @@ -17,5 +17,5 @@ package org.jetbrains.kotlin.codegen interface PackagePartRegistry { - fun addPart(partShortName: String, facadeShortName: String?) + fun addPart(partInternalName: String, facadeInternalName: String?) } diff --git a/compiler/backend/src/org/jetbrains/kotlin/codegen/classFileUtils.kt b/compiler/backend/src/org/jetbrains/kotlin/codegen/classFileUtils.kt index 2192bcdc4f8..fca92b66ba0 100644 --- a/compiler/backend/src/org/jetbrains/kotlin/codegen/classFileUtils.kt +++ b/compiler/backend/src/org/jetbrains/kotlin/codegen/classFileUtils.kt @@ -22,6 +22,7 @@ import org.jetbrains.kotlin.codegen.state.GenerationState import org.jetbrains.kotlin.load.kotlin.JvmMetadataVersion import org.jetbrains.kotlin.load.kotlin.ModuleMapping import org.jetbrains.kotlin.load.kotlin.PackageParts +import org.jetbrains.kotlin.resolve.jvm.JvmClassName import org.jetbrains.kotlin.serialization.jvm.JvmPackageTable import java.io.ByteArrayOutputStream @@ -43,9 +44,8 @@ private fun Iterable
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + org.jetbrains.kotlin.protobuf.ProtocolStringList + getJvmPackageNameList(); + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + int getJvmPackageNameCount(); + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + java.lang.String getJvmPackageName(int index); + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + org.jetbrains.kotlin.protobuf.ByteString + getJvmPackageNameBytes(int index); } /** * Protobuf type {@code org.jetbrains.kotlin.serialization.jvm.PackageTable} @@ -130,6 +169,15 @@ public final class JvmPackageTable { metadataParts_.add(input.readMessage(org.jetbrains.kotlin.serialization.jvm.JvmPackageTable.PackageParts.PARSER, extensionRegistry)); break; } + case 26: { + org.jetbrains.kotlin.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + jvmPackageName_ = new org.jetbrains.kotlin.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + jvmPackageName_.add(bs); + break; + } } } } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { @@ -144,6 +192,9 @@ public final class JvmPackageTable { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { metadataParts_ = java.util.Collections.unmodifiableList(metadataParts_); } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + jvmPackageName_ = jvmPackageName_.getUnmodifiableView(); + } try { unknownFieldsCodedOutput.flush(); } catch (java.io.IOException e) { @@ -279,9 +330,59 @@ public final class JvmPackageTable { return metadataParts_.get(index); } + public static final int JVM_PACKAGE_NAME_FIELD_NUMBER = 3; + private org.jetbrains.kotlin.protobuf.LazyStringList jvmPackageName_; + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + public org.jetbrains.kotlin.protobuf.ProtocolStringList + getJvmPackageNameList() { + return jvmPackageName_; + } + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + public int getJvmPackageNameCount() { + return jvmPackageName_.size(); + } + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + public java.lang.String getJvmPackageName(int index) { + return jvmPackageName_.get(index); + } + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + public org.jetbrains.kotlin.protobuf.ByteString + getJvmPackageNameBytes(int index) { + return jvmPackageName_.getByteString(index); + } + private void initFields() { packageParts_ = java.util.Collections.emptyList(); metadataParts_ = java.util.Collections.emptyList(); + jvmPackageName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -314,6 +415,9 @@ public final class JvmPackageTable { for (int i = 0; i < metadataParts_.size(); i++) { output.writeMessage(2, metadataParts_.get(i)); } + for (int i = 0; i < jvmPackageName_.size(); i++) { + output.writeBytes(3, jvmPackageName_.getByteString(i)); + } output.writeRawBytes(unknownFields); } @@ -331,6 +435,15 @@ public final class JvmPackageTable { size += org.jetbrains.kotlin.protobuf.CodedOutputStream .computeMessageSize(2, metadataParts_.get(i)); } + { + int dataSize = 0; + for (int i = 0; i < jvmPackageName_.size(); i++) { + dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeBytesSizeNoTag(jvmPackageName_.getByteString(i)); + } + size += dataSize; + size += 1 * getJvmPackageNameList().size(); + } size += unknownFields.size(); memoizedSerializedSize = size; return size; @@ -429,6 +542,8 @@ public final class JvmPackageTable { bitField0_ = (bitField0_ & ~0x00000001); metadataParts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); + jvmPackageName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -461,6 +576,11 @@ public final class JvmPackageTable { bitField0_ = (bitField0_ & ~0x00000002); } result.metadataParts_ = metadataParts_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + jvmPackageName_ = jvmPackageName_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.jvmPackageName_ = jvmPackageName_; return result; } @@ -485,6 +605,16 @@ public final class JvmPackageTable { metadataParts_.addAll(other.metadataParts_); } + } + if (!other.jvmPackageName_.isEmpty()) { + if (jvmPackageName_.isEmpty()) { + jvmPackageName_ = other.jvmPackageName_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureJvmPackageNameIsMutable(); + jvmPackageName_.addAll(other.jvmPackageName_); + } + } setUnknownFields( getUnknownFields().concat(other.unknownFields)); @@ -872,6 +1002,144 @@ public final class JvmPackageTable { return this; } + private org.jetbrains.kotlin.protobuf.LazyStringList jvmPackageName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + private void ensureJvmPackageNameIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + jvmPackageName_ = new org.jetbrains.kotlin.protobuf.LazyStringArrayList(jvmPackageName_); + bitField0_ |= 0x00000004; + } + } + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + public org.jetbrains.kotlin.protobuf.ProtocolStringList + getJvmPackageNameList() { + return jvmPackageName_.getUnmodifiableView(); + } + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + public int getJvmPackageNameCount() { + return jvmPackageName_.size(); + } + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + public java.lang.String getJvmPackageName(int index) { + return jvmPackageName_.get(index); + } + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + public org.jetbrains.kotlin.protobuf.ByteString + getJvmPackageNameBytes(int index) { + return jvmPackageName_.getByteString(index); + } + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + public Builder setJvmPackageName( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJvmPackageNameIsMutable(); + jvmPackageName_.set(index, value); + + return this; + } + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + public Builder addJvmPackageName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJvmPackageNameIsMutable(); + jvmPackageName_.add(value); + + return this; + } + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + public Builder addAllJvmPackageName( + java.lang.Iterable
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + public Builder clearJvmPackageName() { + jvmPackageName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + + return this; + } + /** + *
repeated string jvm_package_name = 3;
+ *
+ * + * Values of @JvmPackageName annotation used in this module; can be referenced in PackageParts#class_with_jvm_package_name_package_id. + * The names here are dot-separated, e.g. "org.foo.bar" + *+ */ + public Builder addJvmPackageNameBytes( + org.jetbrains.kotlin.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJvmPackageNameIsMutable(); + jvmPackageName_.add(value); + + return this; + } + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.jvm.PackageTable) } @@ -902,109 +1170,189 @@ public final class JvmPackageTable { getPackageFqNameBytes(); /** - *
repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
org.jetbrains.kotlin.protobuf.ProtocolStringList
- getClassNameList();
+ getShortClassNameList();
/**
- * repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
- int getClassNameCount();
+ int getShortClassNameCount();
/**
- * repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
- java.lang.String getClassName(int index);
+ java.lang.String getShortClassName(int index);
/**
- * repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
org.jetbrains.kotlin.protobuf.ByteString
- getClassNameBytes(int index);
+ getShortClassNameBytes(int index);
/**
- * repeated int32 multifile_facade_id = 3 [packed = true];
+ * repeated int32 multifile_facade_short_name_id = 3 [packed = true];
*
*
- * For each class name listed above, index of the name of the corresponding multi-file facade class in multifile_facade_name + 1,
+ * For each name in short_class_name, index of the name of the corresponding multi-file facade class in multifile_facade_short_name + 1,
* or 0 if the class is not a multi-file part. If there's no value in this list at some index, the value is assumed to be 0.
* (e.g. if there are no multi-file classes in the module, this list is not going to exist at all)
*
*/
- java.util.Listrepeated int32 multifile_facade_id = 3 [packed = true];
+ * repeated int32 multifile_facade_short_name_id = 3 [packed = true];
*
*
- * For each class name listed above, index of the name of the corresponding multi-file facade class in multifile_facade_name + 1,
+ * For each name in short_class_name, index of the name of the corresponding multi-file facade class in multifile_facade_short_name + 1,
* or 0 if the class is not a multi-file part. If there's no value in this list at some index, the value is assumed to be 0.
* (e.g. if there are no multi-file classes in the module, this list is not going to exist at all)
*
*/
- int getMultifileFacadeIdCount();
+ int getMultifileFacadeShortNameIdCount();
/**
- * repeated int32 multifile_facade_id = 3 [packed = true];
+ * repeated int32 multifile_facade_short_name_id = 3 [packed = true];
*
*
- * For each class name listed above, index of the name of the corresponding multi-file facade class in multifile_facade_name + 1,
+ * For each name in short_class_name, index of the name of the corresponding multi-file facade class in multifile_facade_short_name + 1,
* or 0 if the class is not a multi-file part. If there's no value in this list at some index, the value is assumed to be 0.
* (e.g. if there are no multi-file classes in the module, this list is not going to exist at all)
*
*/
- int getMultifileFacadeId(int index);
+ int getMultifileFacadeShortNameId(int index);
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
org.jetbrains.kotlin.protobuf.ProtocolStringList
- getMultifileFacadeNameList();
+ getMultifileFacadeShortNameList();
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
- int getMultifileFacadeNameCount();
+ int getMultifileFacadeShortNameCount();
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
- java.lang.String getMultifileFacadeName(int index);
+ java.lang.String getMultifileFacadeShortName(int index);
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
org.jetbrains.kotlin.protobuf.ByteString
- getMultifileFacadeNameBytes(int index);
+ getMultifileFacadeShortNameBytes(int index);
+
+ /**
+ * repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + org.jetbrains.kotlin.protobuf.ProtocolStringList + getClassWithJvmPackageNameShortNameList(); + /** + *
repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + int getClassWithJvmPackageNameShortNameCount(); + /** + *
repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + java.lang.String getClassWithJvmPackageNameShortName(int index); + /** + *
repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + org.jetbrains.kotlin.protobuf.ByteString + getClassWithJvmPackageNameShortNameBytes(int index); + + /** + *
repeated int32 class_with_jvm_package_name_package_id = 6 [packed = true];
+ *
+ * + * For each name in class_with_jvm_package_name_short_name, the index (into PackageTable#jvm_package_name) of the JVM package name. + * This list should have at least one element, otherwise classes with JVM package names are going to be ignored completely. + * If there's no value in this list at some index other than 0, the value is assumed to be the same as the value of the last element + * of this list. The intended use case for this optimization is to have just a list of a single element in the most frequent case + * when a bunch of files from the same Kotlin package have the same JVM package name. + *+ */ + java.util.List
repeated int32 class_with_jvm_package_name_package_id = 6 [packed = true];
+ *
+ * + * For each name in class_with_jvm_package_name_short_name, the index (into PackageTable#jvm_package_name) of the JVM package name. + * This list should have at least one element, otherwise classes with JVM package names are going to be ignored completely. + * If there's no value in this list at some index other than 0, the value is assumed to be the same as the value of the last element + * of this list. The intended use case for this optimization is to have just a list of a single element in the most frequent case + * when a bunch of files from the same Kotlin package have the same JVM package name. + *+ */ + int getClassWithJvmPackageNamePackageIdCount(); + /** + *
repeated int32 class_with_jvm_package_name_package_id = 6 [packed = true];
+ *
+ * + * For each name in class_with_jvm_package_name_short_name, the index (into PackageTable#jvm_package_name) of the JVM package name. + * This list should have at least one element, otherwise classes with JVM package names are going to be ignored completely. + * If there's no value in this list at some index other than 0, the value is assumed to be the same as the value of the last element + * of this list. The intended use case for this optimization is to have just a list of a single element in the most frequent case + * when a bunch of files from the same Kotlin package have the same JVM package name. + *+ */ + int getClassWithJvmPackageNamePackageId(int index); } /** * Protobuf type {@code org.jetbrains.kotlin.serialization.jvm.PackageParts} @@ -1065,29 +1413,29 @@ public final class JvmPackageTable { case 18: { org.jetbrains.kotlin.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - className_ = new org.jetbrains.kotlin.protobuf.LazyStringArrayList(); + shortClassName_ = new org.jetbrains.kotlin.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } - className_.add(bs); + shortClassName_.add(bs); break; } case 24: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - multifileFacadeId_ = new java.util.ArrayList
repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
public org.jetbrains.kotlin.protobuf.ProtocolStringList
- getClassNameList() {
- return className_;
+ getShortClassNameList() {
+ return shortClassName_;
}
/**
- * repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
- public int getClassNameCount() {
- return className_.size();
+ public int getShortClassNameCount() {
+ return shortClassName_.size();
}
/**
- * repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
- public java.lang.String getClassName(int index) {
- return className_.get(index);
+ public java.lang.String getShortClassName(int index) {
+ return shortClassName_.get(index);
}
/**
- * repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
public org.jetbrains.kotlin.protobuf.ByteString
- getClassNameBytes(int index) {
- return className_.getByteString(index);
+ getShortClassNameBytes(int index) {
+ return shortClassName_.getByteString(index);
}
- public static final int MULTIFILE_FACADE_ID_FIELD_NUMBER = 3;
- private java.util.Listrepeated int32 multifile_facade_id = 3 [packed = true];
+ * repeated int32 multifile_facade_short_name_id = 3 [packed = true];
*
*
- * For each class name listed above, index of the name of the corresponding multi-file facade class in multifile_facade_name + 1,
+ * For each name in short_class_name, index of the name of the corresponding multi-file facade class in multifile_facade_short_name + 1,
* or 0 if the class is not a multi-file part. If there's no value in this list at some index, the value is assumed to be 0.
* (e.g. if there are no multi-file classes in the module, this list is not going to exist at all)
*
*/
public java.util.Listrepeated int32 multifile_facade_id = 3 [packed = true];
+ * repeated int32 multifile_facade_short_name_id = 3 [packed = true];
*
*
- * For each class name listed above, index of the name of the corresponding multi-file facade class in multifile_facade_name + 1,
+ * For each name in short_class_name, index of the name of the corresponding multi-file facade class in multifile_facade_short_name + 1,
* or 0 if the class is not a multi-file part. If there's no value in this list at some index, the value is assumed to be 0.
* (e.g. if there are no multi-file classes in the module, this list is not going to exist at all)
*
*/
- public int getMultifileFacadeIdCount() {
- return multifileFacadeId_.size();
+ public int getMultifileFacadeShortNameIdCount() {
+ return multifileFacadeShortNameId_.size();
}
/**
- * repeated int32 multifile_facade_id = 3 [packed = true];
+ * repeated int32 multifile_facade_short_name_id = 3 [packed = true];
*
*
- * For each class name listed above, index of the name of the corresponding multi-file facade class in multifile_facade_name + 1,
+ * For each name in short_class_name, index of the name of the corresponding multi-file facade class in multifile_facade_short_name + 1,
* or 0 if the class is not a multi-file part. If there's no value in this list at some index, the value is assumed to be 0.
* (e.g. if there are no multi-file classes in the module, this list is not going to exist at all)
*
*/
- public int getMultifileFacadeId(int index) {
- return multifileFacadeId_.get(index);
+ public int getMultifileFacadeShortNameId(int index) {
+ return multifileFacadeShortNameId_.get(index);
}
- private int multifileFacadeIdMemoizedSerializedSize = -1;
+ private int multifileFacadeShortNameIdMemoizedSerializedSize = -1;
- public static final int MULTIFILE_FACADE_NAME_FIELD_NUMBER = 4;
- private org.jetbrains.kotlin.protobuf.LazyStringList multifileFacadeName_;
+ public static final int MULTIFILE_FACADE_SHORT_NAME_FIELD_NUMBER = 4;
+ private org.jetbrains.kotlin.protobuf.LazyStringList multifileFacadeShortName_;
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
public org.jetbrains.kotlin.protobuf.ProtocolStringList
- getMultifileFacadeNameList() {
- return multifileFacadeName_;
+ getMultifileFacadeShortNameList() {
+ return multifileFacadeShortName_;
}
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
- public int getMultifileFacadeNameCount() {
- return multifileFacadeName_.size();
+ public int getMultifileFacadeShortNameCount() {
+ return multifileFacadeShortName_.size();
}
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
- public java.lang.String getMultifileFacadeName(int index) {
- return multifileFacadeName_.get(index);
+ public java.lang.String getMultifileFacadeShortName(int index) {
+ return multifileFacadeShortName_.get(index);
}
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
public org.jetbrains.kotlin.protobuf.ByteString
- getMultifileFacadeNameBytes(int index) {
- return multifileFacadeName_.getByteString(index);
+ getMultifileFacadeShortNameBytes(int index) {
+ return multifileFacadeShortName_.getByteString(index);
}
+ public static final int CLASS_WITH_JVM_PACKAGE_NAME_SHORT_NAME_FIELD_NUMBER = 5;
+ private org.jetbrains.kotlin.protobuf.LazyStringList classWithJvmPackageNameShortName_;
+ /**
+ * repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + public org.jetbrains.kotlin.protobuf.ProtocolStringList + getClassWithJvmPackageNameShortNameList() { + return classWithJvmPackageNameShortName_; + } + /** + *
repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + public int getClassWithJvmPackageNameShortNameCount() { + return classWithJvmPackageNameShortName_.size(); + } + /** + *
repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + public java.lang.String getClassWithJvmPackageNameShortName(int index) { + return classWithJvmPackageNameShortName_.get(index); + } + /** + *
repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + public org.jetbrains.kotlin.protobuf.ByteString + getClassWithJvmPackageNameShortNameBytes(int index) { + return classWithJvmPackageNameShortName_.getByteString(index); + } + + public static final int CLASS_WITH_JVM_PACKAGE_NAME_PACKAGE_ID_FIELD_NUMBER = 6; + private java.util.List
repeated int32 class_with_jvm_package_name_package_id = 6 [packed = true];
+ *
+ * + * For each name in class_with_jvm_package_name_short_name, the index (into PackageTable#jvm_package_name) of the JVM package name. + * This list should have at least one element, otherwise classes with JVM package names are going to be ignored completely. + * If there's no value in this list at some index other than 0, the value is assumed to be the same as the value of the last element + * of this list. The intended use case for this optimization is to have just a list of a single element in the most frequent case + * when a bunch of files from the same Kotlin package have the same JVM package name. + *+ */ + public java.util.List
repeated int32 class_with_jvm_package_name_package_id = 6 [packed = true];
+ *
+ * + * For each name in class_with_jvm_package_name_short_name, the index (into PackageTable#jvm_package_name) of the JVM package name. + * This list should have at least one element, otherwise classes with JVM package names are going to be ignored completely. + * If there's no value in this list at some index other than 0, the value is assumed to be the same as the value of the last element + * of this list. The intended use case for this optimization is to have just a list of a single element in the most frequent case + * when a bunch of files from the same Kotlin package have the same JVM package name. + *+ */ + public int getClassWithJvmPackageNamePackageIdCount() { + return classWithJvmPackageNamePackageId_.size(); + } + /** + *
repeated int32 class_with_jvm_package_name_package_id = 6 [packed = true];
+ *
+ * + * For each name in class_with_jvm_package_name_short_name, the index (into PackageTable#jvm_package_name) of the JVM package name. + * This list should have at least one element, otherwise classes with JVM package names are going to be ignored completely. + * If there's no value in this list at some index other than 0, the value is assumed to be the same as the value of the last element + * of this list. The intended use case for this optimization is to have just a list of a single element in the most frequent case + * when a bunch of files from the same Kotlin package have the same JVM package name. + *+ */ + public int getClassWithJvmPackageNamePackageId(int index) { + return classWithJvmPackageNamePackageId_.get(index); + } + private int classWithJvmPackageNamePackageIdMemoizedSerializedSize = -1; + private void initFields() { packageFqName_ = ""; - className_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; - multifileFacadeId_ = java.util.Collections.emptyList(); - multifileFacadeName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + shortClassName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + multifileFacadeShortNameId_ = java.util.Collections.emptyList(); + multifileFacadeShortName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + classWithJvmPackageNameShortName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + classWithJvmPackageNamePackageId_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -1347,18 +1833,28 @@ public final class JvmPackageTable { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getPackageFqNameBytes()); } - for (int i = 0; i < className_.size(); i++) { - output.writeBytes(2, className_.getByteString(i)); + for (int i = 0; i < shortClassName_.size(); i++) { + output.writeBytes(2, shortClassName_.getByteString(i)); } - if (getMultifileFacadeIdList().size() > 0) { + if (getMultifileFacadeShortNameIdList().size() > 0) { output.writeRawVarint32(26); - output.writeRawVarint32(multifileFacadeIdMemoizedSerializedSize); + output.writeRawVarint32(multifileFacadeShortNameIdMemoizedSerializedSize); } - for (int i = 0; i < multifileFacadeId_.size(); i++) { - output.writeInt32NoTag(multifileFacadeId_.get(i)); + for (int i = 0; i < multifileFacadeShortNameId_.size(); i++) { + output.writeInt32NoTag(multifileFacadeShortNameId_.get(i)); } - for (int i = 0; i < multifileFacadeName_.size(); i++) { - output.writeBytes(4, multifileFacadeName_.getByteString(i)); + for (int i = 0; i < multifileFacadeShortName_.size(); i++) { + output.writeBytes(4, multifileFacadeShortName_.getByteString(i)); + } + for (int i = 0; i < classWithJvmPackageNameShortName_.size(); i++) { + output.writeBytes(5, classWithJvmPackageNameShortName_.getByteString(i)); + } + if (getClassWithJvmPackageNamePackageIdList().size() > 0) { + output.writeRawVarint32(50); + output.writeRawVarint32(classWithJvmPackageNamePackageIdMemoizedSerializedSize); + } + for (int i = 0; i < classWithJvmPackageNamePackageId_.size(); i++) { + output.writeInt32NoTag(classWithJvmPackageNamePackageId_.get(i)); } output.writeRawBytes(unknownFields); } @@ -1375,35 +1871,58 @@ public final class JvmPackageTable { } { int dataSize = 0; - for (int i = 0; i < className_.size(); i++) { + for (int i = 0; i < shortClassName_.size(); i++) { dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream - .computeBytesSizeNoTag(className_.getByteString(i)); + .computeBytesSizeNoTag(shortClassName_.getByteString(i)); } size += dataSize; - size += 1 * getClassNameList().size(); + size += 1 * getShortClassNameList().size(); } { int dataSize = 0; - for (int i = 0; i < multifileFacadeId_.size(); i++) { + for (int i = 0; i < multifileFacadeShortNameId_.size(); i++) { dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream - .computeInt32SizeNoTag(multifileFacadeId_.get(i)); + .computeInt32SizeNoTag(multifileFacadeShortNameId_.get(i)); } size += dataSize; - if (!getMultifileFacadeIdList().isEmpty()) { + if (!getMultifileFacadeShortNameIdList().isEmpty()) { size += 1; size += org.jetbrains.kotlin.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } - multifileFacadeIdMemoizedSerializedSize = dataSize; + multifileFacadeShortNameIdMemoizedSerializedSize = dataSize; } { int dataSize = 0; - for (int i = 0; i < multifileFacadeName_.size(); i++) { + for (int i = 0; i < multifileFacadeShortName_.size(); i++) { dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream - .computeBytesSizeNoTag(multifileFacadeName_.getByteString(i)); + .computeBytesSizeNoTag(multifileFacadeShortName_.getByteString(i)); } size += dataSize; - size += 1 * getMultifileFacadeNameList().size(); + size += 1 * getMultifileFacadeShortNameList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < classWithJvmPackageNameShortName_.size(); i++) { + dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeBytesSizeNoTag(classWithJvmPackageNameShortName_.getByteString(i)); + } + size += dataSize; + size += 1 * getClassWithJvmPackageNameShortNameList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < classWithJvmPackageNamePackageId_.size(); i++) { + dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32SizeNoTag(classWithJvmPackageNamePackageId_.get(i)); + } + size += dataSize; + if (!getClassWithJvmPackageNamePackageIdList().isEmpty()) { + size += 1; + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + classWithJvmPackageNamePackageIdMemoizedSerializedSize = dataSize; } size += unknownFields.size(); memoizedSerializedSize = size; @@ -1501,12 +2020,16 @@ public final class JvmPackageTable { super.clear(); packageFqName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); - className_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + shortClassName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); - multifileFacadeId_ = java.util.Collections.emptyList(); + multifileFacadeShortNameId_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); - multifileFacadeName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + multifileFacadeShortName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); + classWithJvmPackageNameShortName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + classWithJvmPackageNamePackageId_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); return this; } @@ -1535,20 +2058,30 @@ public final class JvmPackageTable { } result.packageFqName_ = packageFqName_; if (((bitField0_ & 0x00000002) == 0x00000002)) { - className_ = className_.getUnmodifiableView(); + shortClassName_ = shortClassName_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } - result.className_ = className_; + result.shortClassName_ = shortClassName_; if (((bitField0_ & 0x00000004) == 0x00000004)) { - multifileFacadeId_ = java.util.Collections.unmodifiableList(multifileFacadeId_); + multifileFacadeShortNameId_ = java.util.Collections.unmodifiableList(multifileFacadeShortNameId_); bitField0_ = (bitField0_ & ~0x00000004); } - result.multifileFacadeId_ = multifileFacadeId_; + result.multifileFacadeShortNameId_ = multifileFacadeShortNameId_; if (((bitField0_ & 0x00000008) == 0x00000008)) { - multifileFacadeName_ = multifileFacadeName_.getUnmodifiableView(); + multifileFacadeShortName_ = multifileFacadeShortName_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } - result.multifileFacadeName_ = multifileFacadeName_; + result.multifileFacadeShortName_ = multifileFacadeShortName_; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + classWithJvmPackageNameShortName_ = classWithJvmPackageNameShortName_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.classWithJvmPackageNameShortName_ = classWithJvmPackageNameShortName_; + if (((bitField0_ & 0x00000020) == 0x00000020)) { + classWithJvmPackageNamePackageId_ = java.util.Collections.unmodifiableList(classWithJvmPackageNamePackageId_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.classWithJvmPackageNamePackageId_ = classWithJvmPackageNamePackageId_; result.bitField0_ = to_bitField0_; return result; } @@ -1560,33 +2093,53 @@ public final class JvmPackageTable { packageFqName_ = other.packageFqName_; } - if (!other.className_.isEmpty()) { - if (className_.isEmpty()) { - className_ = other.className_; + if (!other.shortClassName_.isEmpty()) { + if (shortClassName_.isEmpty()) { + shortClassName_ = other.shortClassName_; bitField0_ = (bitField0_ & ~0x00000002); } else { - ensureClassNameIsMutable(); - className_.addAll(other.className_); + ensureShortClassNameIsMutable(); + shortClassName_.addAll(other.shortClassName_); } } - if (!other.multifileFacadeId_.isEmpty()) { - if (multifileFacadeId_.isEmpty()) { - multifileFacadeId_ = other.multifileFacadeId_; + if (!other.multifileFacadeShortNameId_.isEmpty()) { + if (multifileFacadeShortNameId_.isEmpty()) { + multifileFacadeShortNameId_ = other.multifileFacadeShortNameId_; bitField0_ = (bitField0_ & ~0x00000004); } else { - ensureMultifileFacadeIdIsMutable(); - multifileFacadeId_.addAll(other.multifileFacadeId_); + ensureMultifileFacadeShortNameIdIsMutable(); + multifileFacadeShortNameId_.addAll(other.multifileFacadeShortNameId_); } } - if (!other.multifileFacadeName_.isEmpty()) { - if (multifileFacadeName_.isEmpty()) { - multifileFacadeName_ = other.multifileFacadeName_; + if (!other.multifileFacadeShortName_.isEmpty()) { + if (multifileFacadeShortName_.isEmpty()) { + multifileFacadeShortName_ = other.multifileFacadeShortName_; bitField0_ = (bitField0_ & ~0x00000008); } else { - ensureMultifileFacadeNameIsMutable(); - multifileFacadeName_.addAll(other.multifileFacadeName_); + ensureMultifileFacadeShortNameIsMutable(); + multifileFacadeShortName_.addAll(other.multifileFacadeShortName_); + } + + } + if (!other.classWithJvmPackageNameShortName_.isEmpty()) { + if (classWithJvmPackageNameShortName_.isEmpty()) { + classWithJvmPackageNameShortName_ = other.classWithJvmPackageNameShortName_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureClassWithJvmPackageNameShortNameIsMutable(); + classWithJvmPackageNameShortName_.addAll(other.classWithJvmPackageNameShortName_); + } + + } + if (!other.classWithJvmPackageNamePackageId_.isEmpty()) { + if (classWithJvmPackageNamePackageId_.isEmpty()) { + classWithJvmPackageNamePackageId_ = other.classWithJvmPackageNamePackageId_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureClassWithJvmPackageNamePackageIdIsMutable(); + classWithJvmPackageNamePackageId_.addAll(other.classWithJvmPackageNamePackageId_); } } @@ -1698,377 +2251,646 @@ public final class JvmPackageTable { return this; } - private org.jetbrains.kotlin.protobuf.LazyStringList className_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; - private void ensureClassNameIsMutable() { + private org.jetbrains.kotlin.protobuf.LazyStringList shortClassName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + private void ensureShortClassNameIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { - className_ = new org.jetbrains.kotlin.protobuf.LazyStringArrayList(className_); + shortClassName_ = new org.jetbrains.kotlin.protobuf.LazyStringArrayList(shortClassName_); bitField0_ |= 0x00000002; } } /** - *
repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
public org.jetbrains.kotlin.protobuf.ProtocolStringList
- getClassNameList() {
- return className_.getUnmodifiableView();
+ getShortClassNameList() {
+ return shortClassName_.getUnmodifiableView();
}
/**
- * repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
- public int getClassNameCount() {
- return className_.size();
+ public int getShortClassNameCount() {
+ return shortClassName_.size();
}
/**
- * repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
- public java.lang.String getClassName(int index) {
- return className_.get(index);
+ public java.lang.String getShortClassName(int index) {
+ return shortClassName_.get(index);
}
/**
- * repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
public org.jetbrains.kotlin.protobuf.ByteString
- getClassNameBytes(int index) {
- return className_.getByteString(index);
+ getShortClassNameBytes(int index) {
+ return shortClassName_.getByteString(index);
}
/**
- * repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
- public Builder setClassName(
+ public Builder setShortClassName(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- ensureClassNameIsMutable();
- className_.set(index, value);
+ ensureShortClassNameIsMutable();
+ shortClassName_.set(index, value);
return this;
}
/**
- * repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
- public Builder addClassName(
+ public Builder addShortClassName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- ensureClassNameIsMutable();
- className_.add(value);
+ ensureShortClassNameIsMutable();
+ shortClassName_.add(value);
return this;
}
/**
- * repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
- public Builder addAllClassName(
+ public Builder addAllShortClassName(
java.lang.Iterablerepeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
- public Builder clearClassName() {
- className_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY;
+ public Builder clearShortClassName() {
+ shortClassName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
- * repeated string class_name = 2;
+ * repeated string short_class_name = 2;
*
*
* Short names of files, without extension, present in this package. Only single file facades and multi-file _parts_ are listed here
- * (multi-file facades are not present in this list, they are defined below)
+ * (multi-file facades are not present in this list, they are defined below). Only files whose JVM package name is equal to the
+ * Kotlin package name (i.e. it has not been changed with @JvmPackageName) are listed here.
*
*/
- public Builder addClassNameBytes(
+ public Builder addShortClassNameBytes(
org.jetbrains.kotlin.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- ensureClassNameIsMutable();
- className_.add(value);
+ ensureShortClassNameIsMutable();
+ shortClassName_.add(value);
return this;
}
- private java.util.Listrepeated int32 multifile_facade_id = 3 [packed = true];
+ * repeated int32 multifile_facade_short_name_id = 3 [packed = true];
*
*
- * For each class name listed above, index of the name of the corresponding multi-file facade class in multifile_facade_name + 1,
+ * For each name in short_class_name, index of the name of the corresponding multi-file facade class in multifile_facade_short_name + 1,
* or 0 if the class is not a multi-file part. If there's no value in this list at some index, the value is assumed to be 0.
* (e.g. if there are no multi-file classes in the module, this list is not going to exist at all)
*
*/
public java.util.Listrepeated int32 multifile_facade_id = 3 [packed = true];
+ * repeated int32 multifile_facade_short_name_id = 3 [packed = true];
*
*
- * For each class name listed above, index of the name of the corresponding multi-file facade class in multifile_facade_name + 1,
+ * For each name in short_class_name, index of the name of the corresponding multi-file facade class in multifile_facade_short_name + 1,
* or 0 if the class is not a multi-file part. If there's no value in this list at some index, the value is assumed to be 0.
* (e.g. if there are no multi-file classes in the module, this list is not going to exist at all)
*
*/
- public int getMultifileFacadeIdCount() {
- return multifileFacadeId_.size();
+ public int getMultifileFacadeShortNameIdCount() {
+ return multifileFacadeShortNameId_.size();
}
/**
- * repeated int32 multifile_facade_id = 3 [packed = true];
+ * repeated int32 multifile_facade_short_name_id = 3 [packed = true];
*
*
- * For each class name listed above, index of the name of the corresponding multi-file facade class in multifile_facade_name + 1,
+ * For each name in short_class_name, index of the name of the corresponding multi-file facade class in multifile_facade_short_name + 1,
* or 0 if the class is not a multi-file part. If there's no value in this list at some index, the value is assumed to be 0.
* (e.g. if there are no multi-file classes in the module, this list is not going to exist at all)
*
*/
- public int getMultifileFacadeId(int index) {
- return multifileFacadeId_.get(index);
+ public int getMultifileFacadeShortNameId(int index) {
+ return multifileFacadeShortNameId_.get(index);
}
/**
- * repeated int32 multifile_facade_id = 3 [packed = true];
+ * repeated int32 multifile_facade_short_name_id = 3 [packed = true];
*
*
- * For each class name listed above, index of the name of the corresponding multi-file facade class in multifile_facade_name + 1,
+ * For each name in short_class_name, index of the name of the corresponding multi-file facade class in multifile_facade_short_name + 1,
* or 0 if the class is not a multi-file part. If there's no value in this list at some index, the value is assumed to be 0.
* (e.g. if there are no multi-file classes in the module, this list is not going to exist at all)
*
*/
- public Builder setMultifileFacadeId(
+ public Builder setMultifileFacadeShortNameId(
int index, int value) {
- ensureMultifileFacadeIdIsMutable();
- multifileFacadeId_.set(index, value);
+ ensureMultifileFacadeShortNameIdIsMutable();
+ multifileFacadeShortNameId_.set(index, value);
return this;
}
/**
- * repeated int32 multifile_facade_id = 3 [packed = true];
+ * repeated int32 multifile_facade_short_name_id = 3 [packed = true];
*
*
- * For each class name listed above, index of the name of the corresponding multi-file facade class in multifile_facade_name + 1,
+ * For each name in short_class_name, index of the name of the corresponding multi-file facade class in multifile_facade_short_name + 1,
* or 0 if the class is not a multi-file part. If there's no value in this list at some index, the value is assumed to be 0.
* (e.g. if there are no multi-file classes in the module, this list is not going to exist at all)
*
*/
- public Builder addMultifileFacadeId(int value) {
- ensureMultifileFacadeIdIsMutable();
- multifileFacadeId_.add(value);
+ public Builder addMultifileFacadeShortNameId(int value) {
+ ensureMultifileFacadeShortNameIdIsMutable();
+ multifileFacadeShortNameId_.add(value);
return this;
}
/**
- * repeated int32 multifile_facade_id = 3 [packed = true];
+ * repeated int32 multifile_facade_short_name_id = 3 [packed = true];
*
*
- * For each class name listed above, index of the name of the corresponding multi-file facade class in multifile_facade_name + 1,
+ * For each name in short_class_name, index of the name of the corresponding multi-file facade class in multifile_facade_short_name + 1,
* or 0 if the class is not a multi-file part. If there's no value in this list at some index, the value is assumed to be 0.
* (e.g. if there are no multi-file classes in the module, this list is not going to exist at all)
*
*/
- public Builder addAllMultifileFacadeId(
+ public Builder addAllMultifileFacadeShortNameId(
java.lang.Iterable extends java.lang.Integer> values) {
- ensureMultifileFacadeIdIsMutable();
+ ensureMultifileFacadeShortNameIdIsMutable();
org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll(
- values, multifileFacadeId_);
+ values, multifileFacadeShortNameId_);
return this;
}
/**
- * repeated int32 multifile_facade_id = 3 [packed = true];
+ * repeated int32 multifile_facade_short_name_id = 3 [packed = true];
*
*
- * For each class name listed above, index of the name of the corresponding multi-file facade class in multifile_facade_name + 1,
+ * For each name in short_class_name, index of the name of the corresponding multi-file facade class in multifile_facade_short_name + 1,
* or 0 if the class is not a multi-file part. If there's no value in this list at some index, the value is assumed to be 0.
* (e.g. if there are no multi-file classes in the module, this list is not going to exist at all)
*
*/
- public Builder clearMultifileFacadeId() {
- multifileFacadeId_ = java.util.Collections.emptyList();
+ public Builder clearMultifileFacadeShortNameId() {
+ multifileFacadeShortNameId_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
- private org.jetbrains.kotlin.protobuf.LazyStringList multifileFacadeName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY;
- private void ensureMultifileFacadeNameIsMutable() {
+ private org.jetbrains.kotlin.protobuf.LazyStringList multifileFacadeShortName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY;
+ private void ensureMultifileFacadeShortNameIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
- multifileFacadeName_ = new org.jetbrains.kotlin.protobuf.LazyStringArrayList(multifileFacadeName_);
+ multifileFacadeShortName_ = new org.jetbrains.kotlin.protobuf.LazyStringArrayList(multifileFacadeShortName_);
bitField0_ |= 0x00000008;
}
}
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
public org.jetbrains.kotlin.protobuf.ProtocolStringList
- getMultifileFacadeNameList() {
- return multifileFacadeName_.getUnmodifiableView();
+ getMultifileFacadeShortNameList() {
+ return multifileFacadeShortName_.getUnmodifiableView();
}
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
- public int getMultifileFacadeNameCount() {
- return multifileFacadeName_.size();
+ public int getMultifileFacadeShortNameCount() {
+ return multifileFacadeShortName_.size();
}
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
- public java.lang.String getMultifileFacadeName(int index) {
- return multifileFacadeName_.get(index);
+ public java.lang.String getMultifileFacadeShortName(int index) {
+ return multifileFacadeShortName_.get(index);
}
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
public org.jetbrains.kotlin.protobuf.ByteString
- getMultifileFacadeNameBytes(int index) {
- return multifileFacadeName_.getByteString(index);
+ getMultifileFacadeShortNameBytes(int index) {
+ return multifileFacadeShortName_.getByteString(index);
}
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
- public Builder setMultifileFacadeName(
+ public Builder setMultifileFacadeShortName(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- ensureMultifileFacadeNameIsMutable();
- multifileFacadeName_.set(index, value);
+ ensureMultifileFacadeShortNameIsMutable();
+ multifileFacadeShortName_.set(index, value);
return this;
}
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
- public Builder addMultifileFacadeName(
+ public Builder addMultifileFacadeShortName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- ensureMultifileFacadeNameIsMutable();
- multifileFacadeName_.add(value);
+ ensureMultifileFacadeShortNameIsMutable();
+ multifileFacadeShortName_.add(value);
return this;
}
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
- public Builder addAllMultifileFacadeName(
+ public Builder addAllMultifileFacadeShortName(
java.lang.Iterablerepeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
- public Builder clearMultifileFacadeName() {
- multifileFacadeName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY;
+ public Builder clearMultifileFacadeShortName() {
+ multifileFacadeShortName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
- * repeated string multifile_facade_name = 4;
+ * repeated string multifile_facade_short_name = 4;
*
*
- * Short names of multi-file facades, used in multifile_facade_id to store the part -> facade mapping.
+ * Short names of multi-file facades, used in multifile_facade_short_name_id to store the part -> facade mapping.
*
*/
- public Builder addMultifileFacadeNameBytes(
+ public Builder addMultifileFacadeShortNameBytes(
org.jetbrains.kotlin.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- ensureMultifileFacadeNameIsMutable();
- multifileFacadeName_.add(value);
+ ensureMultifileFacadeShortNameIsMutable();
+ multifileFacadeShortName_.add(value);
+
+ return this;
+ }
+
+ private org.jetbrains.kotlin.protobuf.LazyStringList classWithJvmPackageNameShortName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY;
+ private void ensureClassWithJvmPackageNameShortNameIsMutable() {
+ if (!((bitField0_ & 0x00000010) == 0x00000010)) {
+ classWithJvmPackageNameShortName_ = new org.jetbrains.kotlin.protobuf.LazyStringArrayList(classWithJvmPackageNameShortName_);
+ bitField0_ |= 0x00000010;
+ }
+ }
+ /**
+ * repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + public org.jetbrains.kotlin.protobuf.ProtocolStringList + getClassWithJvmPackageNameShortNameList() { + return classWithJvmPackageNameShortName_.getUnmodifiableView(); + } + /** + *
repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + public int getClassWithJvmPackageNameShortNameCount() { + return classWithJvmPackageNameShortName_.size(); + } + /** + *
repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + public java.lang.String getClassWithJvmPackageNameShortName(int index) { + return classWithJvmPackageNameShortName_.get(index); + } + /** + *
repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + public org.jetbrains.kotlin.protobuf.ByteString + getClassWithJvmPackageNameShortNameBytes(int index) { + return classWithJvmPackageNameShortName_.getByteString(index); + } + /** + *
repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + public Builder setClassWithJvmPackageNameShortName( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureClassWithJvmPackageNameShortNameIsMutable(); + classWithJvmPackageNameShortName_.set(index, value); + + return this; + } + /** + *
repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + public Builder addClassWithJvmPackageNameShortName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureClassWithJvmPackageNameShortNameIsMutable(); + classWithJvmPackageNameShortName_.add(value); + + return this; + } + /** + *
repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + public Builder addAllClassWithJvmPackageNameShortName( + java.lang.Iterable
repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + public Builder clearClassWithJvmPackageNameShortName() { + classWithJvmPackageNameShortName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + + return this; + } + /** + *
repeated string class_with_jvm_package_name_short_name = 5;
+ *
+ * + * Short names of files (single file facades), whose JVM package differs from the Kotlin package because of @JvmPackageName. + * The JVM package name of each file is stored at the same index in class_with_jvm_package_name_package_id. + *+ */ + public Builder addClassWithJvmPackageNameShortNameBytes( + org.jetbrains.kotlin.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureClassWithJvmPackageNameShortNameIsMutable(); + classWithJvmPackageNameShortName_.add(value); + + return this; + } + + private java.util.List
repeated int32 class_with_jvm_package_name_package_id = 6 [packed = true];
+ *
+ * + * For each name in class_with_jvm_package_name_short_name, the index (into PackageTable#jvm_package_name) of the JVM package name. + * This list should have at least one element, otherwise classes with JVM package names are going to be ignored completely. + * If there's no value in this list at some index other than 0, the value is assumed to be the same as the value of the last element + * of this list. The intended use case for this optimization is to have just a list of a single element in the most frequent case + * when a bunch of files from the same Kotlin package have the same JVM package name. + *+ */ + public java.util.List
repeated int32 class_with_jvm_package_name_package_id = 6 [packed = true];
+ *
+ * + * For each name in class_with_jvm_package_name_short_name, the index (into PackageTable#jvm_package_name) of the JVM package name. + * This list should have at least one element, otherwise classes with JVM package names are going to be ignored completely. + * If there's no value in this list at some index other than 0, the value is assumed to be the same as the value of the last element + * of this list. The intended use case for this optimization is to have just a list of a single element in the most frequent case + * when a bunch of files from the same Kotlin package have the same JVM package name. + *+ */ + public int getClassWithJvmPackageNamePackageIdCount() { + return classWithJvmPackageNamePackageId_.size(); + } + /** + *
repeated int32 class_with_jvm_package_name_package_id = 6 [packed = true];
+ *
+ * + * For each name in class_with_jvm_package_name_short_name, the index (into PackageTable#jvm_package_name) of the JVM package name. + * This list should have at least one element, otherwise classes with JVM package names are going to be ignored completely. + * If there's no value in this list at some index other than 0, the value is assumed to be the same as the value of the last element + * of this list. The intended use case for this optimization is to have just a list of a single element in the most frequent case + * when a bunch of files from the same Kotlin package have the same JVM package name. + *+ */ + public int getClassWithJvmPackageNamePackageId(int index) { + return classWithJvmPackageNamePackageId_.get(index); + } + /** + *
repeated int32 class_with_jvm_package_name_package_id = 6 [packed = true];
+ *
+ * + * For each name in class_with_jvm_package_name_short_name, the index (into PackageTable#jvm_package_name) of the JVM package name. + * This list should have at least one element, otherwise classes with JVM package names are going to be ignored completely. + * If there's no value in this list at some index other than 0, the value is assumed to be the same as the value of the last element + * of this list. The intended use case for this optimization is to have just a list of a single element in the most frequent case + * when a bunch of files from the same Kotlin package have the same JVM package name. + *+ */ + public Builder setClassWithJvmPackageNamePackageId( + int index, int value) { + ensureClassWithJvmPackageNamePackageIdIsMutable(); + classWithJvmPackageNamePackageId_.set(index, value); + + return this; + } + /** + *
repeated int32 class_with_jvm_package_name_package_id = 6 [packed = true];
+ *
+ * + * For each name in class_with_jvm_package_name_short_name, the index (into PackageTable#jvm_package_name) of the JVM package name. + * This list should have at least one element, otherwise classes with JVM package names are going to be ignored completely. + * If there's no value in this list at some index other than 0, the value is assumed to be the same as the value of the last element + * of this list. The intended use case for this optimization is to have just a list of a single element in the most frequent case + * when a bunch of files from the same Kotlin package have the same JVM package name. + *+ */ + public Builder addClassWithJvmPackageNamePackageId(int value) { + ensureClassWithJvmPackageNamePackageIdIsMutable(); + classWithJvmPackageNamePackageId_.add(value); + + return this; + } + /** + *
repeated int32 class_with_jvm_package_name_package_id = 6 [packed = true];
+ *
+ * + * For each name in class_with_jvm_package_name_short_name, the index (into PackageTable#jvm_package_name) of the JVM package name. + * This list should have at least one element, otherwise classes with JVM package names are going to be ignored completely. + * If there's no value in this list at some index other than 0, the value is assumed to be the same as the value of the last element + * of this list. The intended use case for this optimization is to have just a list of a single element in the most frequent case + * when a bunch of files from the same Kotlin package have the same JVM package name. + *+ */ + public Builder addAllClassWithJvmPackageNamePackageId( + java.lang.Iterable extends java.lang.Integer> values) { + ensureClassWithJvmPackageNamePackageIdIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, classWithJvmPackageNamePackageId_); + + return this; + } + /** + *
repeated int32 class_with_jvm_package_name_package_id = 6 [packed = true];
+ *
+ * + * For each name in class_with_jvm_package_name_short_name, the index (into PackageTable#jvm_package_name) of the JVM package name. + * This list should have at least one element, otherwise classes with JVM package names are going to be ignored completely. + * If there's no value in this list at some index other than 0, the value is assumed to be the same as the value of the last element + * of this list. The intended use case for this optimization is to have just a list of a single element in the most frequent case + * when a bunch of files from the same Kotlin package have the same JVM package name. + *+ */ + public Builder clearClassWithJvmPackageNamePackageId() { + classWithJvmPackageNamePackageId_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); return this; } diff --git a/core/descriptors/src/org/jetbrains/kotlin/descriptors/PackagePartProvider.kt b/core/descriptors/src/org/jetbrains/kotlin/descriptors/PackagePartProvider.kt index a28671fac77..10b7203dd5d 100644 --- a/core/descriptors/src/org/jetbrains/kotlin/descriptors/PackagePartProvider.kt +++ b/core/descriptors/src/org/jetbrains/kotlin/descriptors/PackagePartProvider.kt @@ -18,10 +18,11 @@ package org.jetbrains.kotlin.descriptors interface PackagePartProvider { /** - * @return simple names of package parts existing in the package with the given FQ name. + * @return JVM internal names of package parts existing in the package with the given FQ name. * * For example, if a file named foo.kt in package org.test is compiled to a library, PackagePartProvider for such library - * must return the list `["FooKt"]` for the query `"org.test"` (in case the file is not annotated with @JvmName or @JvmMultifile*) + * must return the list `["org/test/FooKt"]` for the query `"org.test"` + * (in case the file is not annotated with @JvmName, @JvmPackageName or @JvmMultifileClass). */ fun findPackageParts(packageFqName: String): List