Stub generation infrastructure (except for metadata generation) for KAPT+K2

This commit includes the basic Java stubs generation infrastructure and
the corresponding tests. The main entry point is called
Kapt4StubGenerator. Calls to it from production code will be added in a
separate commit.

 #KT-51982
This commit is contained in:
Pavel Mikhailovskii
2023-07-20 21:58:23 +02:00
committed by Space Team
parent ae4fab8483
commit 2002542ad2
113 changed files with 8249 additions and 34 deletions
@@ -0,0 +1,66 @@
@kotlin.Metadata()
public final class User {
@org.jetbrains.annotations.NotNull()
private final java.lang.String firstName = null;
@org.jetbrains.annotations.NotNull()
private final java.lang.String secondName = null;
private final int age = 0;
@org.jetbrains.annotations.NotNull()
public final User copy(@org.jetbrains.annotations.NotNull()
java.lang.String firstName, @org.jetbrains.annotations.NotNull()
java.lang.String secondName, int age) {
return null;
}
public boolean equals(@org.jetbrains.annotations.Nullable()
java.lang.Object other) {
return false;
}
public int hashCode() {
return 0;
}
@org.jetbrains.annotations.NotNull()
public java.lang.String toString() {
return null;
}
public User(@org.jetbrains.annotations.NotNull()
java.lang.String firstName, @org.jetbrains.annotations.NotNull()
java.lang.String secondName, int age) {
super();
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String component1() {
return null;
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String getFirstName() {
return null;
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String component2() {
return null;
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String getSecondName() {
return null;
}
public final int component3() {
return 0;
}
public final int getAge() {
return 0;
}
public final void procedure() {
}
}