Create module 'builtins', move 'runtime' -> 'runtime.jvm'
'builtins' will be used for platform-independent core built-in definitions, 'runtime.jvm' for things that should be present at runtime in order for Kotlin code to execute correctly on JVM ProgressionUtil goes to 'builtins' right now because progression iterators depend on it, but should be rewritten to Kotlin later
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="module" module-name="builtins" />
|
||||
</component>
|
||||
</module>
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright 2010-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class DefaultJetObject implements Serializable {
|
||||
protected DefaultJetObject() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
// Generated by org.jetbrains.jet.generators.runtime.functions.GenerateFunctions
|
||||
|
||||
package jet
|
||||
|
||||
public abstract class ExtensionFunctionImpl0<in T, out R> : ExtensionFunction0<T, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class ExtensionFunctionImpl1<in T, in P1, out R> : ExtensionFunction1<T, P1, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class ExtensionFunctionImpl2<in T, in P1, in P2, out R> : ExtensionFunction2<T, P1, P2, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class ExtensionFunctionImpl3<in T, in P1, in P2, in P3, out R> : ExtensionFunction3<T, P1, P2, P3, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class ExtensionFunctionImpl4<in T, in P1, in P2, in P3, in P4, out R> : ExtensionFunction4<T, P1, P2, P3, P4, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class ExtensionFunctionImpl5<in T, in P1, in P2, in P3, in P4, in P5, out R> : ExtensionFunction5<T, P1, P2, P3, P4, P5, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class ExtensionFunctionImpl6<in T, in P1, in P2, in P3, in P4, in P5, in P6, out R> : ExtensionFunction6<T, P1, P2, P3, P4, P5, P6, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class ExtensionFunctionImpl7<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, out R> : ExtensionFunction7<T, P1, P2, P3, P4, P5, P6, P7, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class ExtensionFunctionImpl8<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, out R> : ExtensionFunction8<T, P1, P2, P3, P4, P5, P6, P7, P8, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class ExtensionFunctionImpl9<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, out R> : ExtensionFunction9<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class ExtensionFunctionImpl10<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, out R> : ExtensionFunction10<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class ExtensionFunctionImpl11<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, out R> : ExtensionFunction11<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class ExtensionFunctionImpl12<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, out R> : ExtensionFunction12<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class ExtensionFunctionImpl13<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, out R> : ExtensionFunction13<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class ExtensionFunctionImpl14<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, out R> : ExtensionFunction14<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class ExtensionFunctionImpl15<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, out R> : ExtensionFunction15<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class ExtensionFunctionImpl16<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, out R> : ExtensionFunction16<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class ExtensionFunctionImpl17<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, out R> : ExtensionFunction17<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class ExtensionFunctionImpl18<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, in P18, out R> : ExtensionFunction18<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class ExtensionFunctionImpl19<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, in P18, in P19, out R> : ExtensionFunction19<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class ExtensionFunctionImpl20<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, in P18, in P19, in P20, out R> : ExtensionFunction20<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class ExtensionFunctionImpl21<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, in P18, in P19, in P20, in P21, out R> : ExtensionFunction21<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, P21, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class ExtensionFunctionImpl22<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, in P18, in P19, in P20, in P21, in P22, out R> : ExtensionFunction22<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, P21, P22, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
// Generated by org.jetbrains.jet.generators.runtime.functions.GenerateFunctions
|
||||
|
||||
package jet
|
||||
|
||||
public abstract class FunctionImpl0<out R> : Function0<R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class FunctionImpl1<in P1, out R> : Function1<P1, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class FunctionImpl2<in P1, in P2, out R> : Function2<P1, P2, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class FunctionImpl3<in P1, in P2, in P3, out R> : Function3<P1, P2, P3, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class FunctionImpl4<in P1, in P2, in P3, in P4, out R> : Function4<P1, P2, P3, P4, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class FunctionImpl5<in P1, in P2, in P3, in P4, in P5, out R> : Function5<P1, P2, P3, P4, P5, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class FunctionImpl6<in P1, in P2, in P3, in P4, in P5, in P6, out R> : Function6<P1, P2, P3, P4, P5, P6, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class FunctionImpl7<in P1, in P2, in P3, in P4, in P5, in P6, in P7, out R> : Function7<P1, P2, P3, P4, P5, P6, P7, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class FunctionImpl8<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, out R> : Function8<P1, P2, P3, P4, P5, P6, P7, P8, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class FunctionImpl9<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, out R> : Function9<P1, P2, P3, P4, P5, P6, P7, P8, P9, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class FunctionImpl10<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, out R> : Function10<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class FunctionImpl11<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, out R> : Function11<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class FunctionImpl12<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, out R> : Function12<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class FunctionImpl13<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, out R> : Function13<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class FunctionImpl14<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, out R> : Function14<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class FunctionImpl15<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, out R> : Function15<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class FunctionImpl16<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, out R> : Function16<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class FunctionImpl17<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, out R> : Function17<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class FunctionImpl18<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, in P18, out R> : Function18<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class FunctionImpl19<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, in P18, in P19, out R> : Function19<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class FunctionImpl20<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, in P18, in P19, in P20, out R> : Function20<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class FunctionImpl21<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, in P18, in P19, in P20, in P21, out R> : Function21<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, P21, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class FunctionImpl22<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, in P18, in P19, in P20, in P21, in P22, out R> : Function22<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, P21, P22, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright 2010-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public interface JetObject {
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
// Generated by org.jetbrains.jet.generators.runtime.functions.GenerateFunctions
|
||||
|
||||
package jet
|
||||
|
||||
public abstract class KExtensionFunctionImpl0<in T, out R> : KExtensionFunction0<T, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KExtensionFunctionImpl1<in T, in P1, out R> : KExtensionFunction1<T, P1, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KExtensionFunctionImpl2<in T, in P1, in P2, out R> : KExtensionFunction2<T, P1, P2, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KExtensionFunctionImpl3<in T, in P1, in P2, in P3, out R> : KExtensionFunction3<T, P1, P2, P3, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KExtensionFunctionImpl4<in T, in P1, in P2, in P3, in P4, out R> : KExtensionFunction4<T, P1, P2, P3, P4, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KExtensionFunctionImpl5<in T, in P1, in P2, in P3, in P4, in P5, out R> : KExtensionFunction5<T, P1, P2, P3, P4, P5, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KExtensionFunctionImpl6<in T, in P1, in P2, in P3, in P4, in P5, in P6, out R> : KExtensionFunction6<T, P1, P2, P3, P4, P5, P6, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KExtensionFunctionImpl7<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, out R> : KExtensionFunction7<T, P1, P2, P3, P4, P5, P6, P7, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KExtensionFunctionImpl8<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, out R> : KExtensionFunction8<T, P1, P2, P3, P4, P5, P6, P7, P8, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KExtensionFunctionImpl9<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, out R> : KExtensionFunction9<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KExtensionFunctionImpl10<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, out R> : KExtensionFunction10<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KExtensionFunctionImpl11<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, out R> : KExtensionFunction11<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KExtensionFunctionImpl12<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, out R> : KExtensionFunction12<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KExtensionFunctionImpl13<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, out R> : KExtensionFunction13<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KExtensionFunctionImpl14<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, out R> : KExtensionFunction14<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KExtensionFunctionImpl15<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, out R> : KExtensionFunction15<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KExtensionFunctionImpl16<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, out R> : KExtensionFunction16<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KExtensionFunctionImpl17<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, out R> : KExtensionFunction17<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KExtensionFunctionImpl18<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, in P18, out R> : KExtensionFunction18<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KExtensionFunctionImpl19<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, in P18, in P19, out R> : KExtensionFunction19<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KExtensionFunctionImpl20<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, in P18, in P19, in P20, out R> : KExtensionFunction20<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KExtensionFunctionImpl21<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, in P18, in P19, in P20, in P21, out R> : KExtensionFunction21<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, P21, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KExtensionFunctionImpl22<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, in P18, in P19, in P20, in P21, in P22, out R> : KExtensionFunction22<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, P21, P22, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
// Generated by org.jetbrains.jet.generators.runtime.functions.GenerateFunctions
|
||||
|
||||
package jet
|
||||
|
||||
public abstract class KFunctionImpl0<out R> : KFunction0<R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KFunctionImpl1<in P1, out R> : KFunction1<P1, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KFunctionImpl2<in P1, in P2, out R> : KFunction2<P1, P2, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KFunctionImpl3<in P1, in P2, in P3, out R> : KFunction3<P1, P2, P3, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KFunctionImpl4<in P1, in P2, in P3, in P4, out R> : KFunction4<P1, P2, P3, P4, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KFunctionImpl5<in P1, in P2, in P3, in P4, in P5, out R> : KFunction5<P1, P2, P3, P4, P5, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KFunctionImpl6<in P1, in P2, in P3, in P4, in P5, in P6, out R> : KFunction6<P1, P2, P3, P4, P5, P6, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KFunctionImpl7<in P1, in P2, in P3, in P4, in P5, in P6, in P7, out R> : KFunction7<P1, P2, P3, P4, P5, P6, P7, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KFunctionImpl8<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, out R> : KFunction8<P1, P2, P3, P4, P5, P6, P7, P8, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KFunctionImpl9<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, out R> : KFunction9<P1, P2, P3, P4, P5, P6, P7, P8, P9, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KFunctionImpl10<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, out R> : KFunction10<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KFunctionImpl11<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, out R> : KFunction11<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KFunctionImpl12<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, out R> : KFunction12<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KFunctionImpl13<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, out R> : KFunction13<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KFunctionImpl14<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, out R> : KFunction14<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KFunctionImpl15<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, out R> : KFunction15<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KFunctionImpl16<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, out R> : KFunction16<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KFunctionImpl17<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, out R> : KFunction17<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KFunctionImpl18<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, in P18, out R> : KFunction18<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KFunctionImpl19<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, in P18, in P19, out R> : KFunction19<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KFunctionImpl20<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, in P18, in P19, in P20, out R> : KFunction20<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KFunctionImpl21<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, in P18, in P19, in P20, in P21, out R> : KFunction21<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, P21, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KFunctionImpl22<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, in P18, in P19, in P20, in P21, in P22, out R> : KFunction22<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, P21, P22, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
// Generated by org.jetbrains.jet.generators.runtime.functions.GenerateFunctions
|
||||
|
||||
package jet
|
||||
|
||||
public abstract class KMemberFunctionImpl0<in T, out R> : KMemberFunction0<T, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KMemberFunctionImpl1<in T, in P1, out R> : KMemberFunction1<T, P1, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KMemberFunctionImpl2<in T, in P1, in P2, out R> : KMemberFunction2<T, P1, P2, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KMemberFunctionImpl3<in T, in P1, in P2, in P3, out R> : KMemberFunction3<T, P1, P2, P3, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KMemberFunctionImpl4<in T, in P1, in P2, in P3, in P4, out R> : KMemberFunction4<T, P1, P2, P3, P4, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KMemberFunctionImpl5<in T, in P1, in P2, in P3, in P4, in P5, out R> : KMemberFunction5<T, P1, P2, P3, P4, P5, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KMemberFunctionImpl6<in T, in P1, in P2, in P3, in P4, in P5, in P6, out R> : KMemberFunction6<T, P1, P2, P3, P4, P5, P6, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KMemberFunctionImpl7<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, out R> : KMemberFunction7<T, P1, P2, P3, P4, P5, P6, P7, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KMemberFunctionImpl8<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, out R> : KMemberFunction8<T, P1, P2, P3, P4, P5, P6, P7, P8, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KMemberFunctionImpl9<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, out R> : KMemberFunction9<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KMemberFunctionImpl10<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, out R> : KMemberFunction10<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KMemberFunctionImpl11<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, out R> : KMemberFunction11<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KMemberFunctionImpl12<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, out R> : KMemberFunction12<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KMemberFunctionImpl13<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, out R> : KMemberFunction13<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KMemberFunctionImpl14<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, out R> : KMemberFunction14<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KMemberFunctionImpl15<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, out R> : KMemberFunction15<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KMemberFunctionImpl16<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, out R> : KMemberFunction16<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KMemberFunctionImpl17<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, out R> : KMemberFunction17<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KMemberFunctionImpl18<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, in P18, out R> : KMemberFunction18<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KMemberFunctionImpl19<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, in P18, in P19, out R> : KMemberFunction19<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KMemberFunctionImpl20<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, in P18, in P19, in P20, out R> : KMemberFunction20<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KMemberFunctionImpl21<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, in P18, in P19, in P20, in P21, out R> : KMemberFunction21<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, P21, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
public abstract class KMemberFunctionImpl22<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, in P12, in P13, in P14, in P15, in P16, in P17, in P18, in P19, in P20, in P21, in P22, out R> : KMemberFunction22<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, P21, P22, R>, DefaultJetObject() {
|
||||
override fun toString() = "${getClass().getGenericSuperclass()}"
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright 2010-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface KotlinClass {
|
||||
int abiVersion();
|
||||
|
||||
String[] data();
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright 2010-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface KotlinPackage {
|
||||
int abiVersion();
|
||||
|
||||
String[] data();
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright 2010-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface KotlinPackageFragment {
|
||||
int abiVersion();
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright 2010-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface KotlinTraitImpl {
|
||||
int abiVersion();
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright 2010-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public class NoPatternMatchedException extends RuntimeException {
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright 2010-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet;
|
||||
|
||||
public class TypeCastException extends ClassCastException {
|
||||
|
||||
public TypeCastException(String s) {
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright 2010-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet.modules;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class AllModules {
|
||||
|
||||
public static final ThreadLocal<ArrayList<Module>> modules = new ThreadLocal<ArrayList<Module>>() {
|
||||
@Override
|
||||
protected ArrayList<Module> initialValue() {
|
||||
return new ArrayList<Module>();
|
||||
}
|
||||
};
|
||||
|
||||
private AllModules() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright 2010-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet.modules;
|
||||
|
||||
import jet.runtime.typeinfo.KotlinSignature;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface Module {
|
||||
@KotlinSignature("fun getModuleName(): String")
|
||||
String getModuleName();
|
||||
|
||||
@KotlinSignature("fun getOutputDirectory(): String")
|
||||
String getOutputDirectory();
|
||||
|
||||
@KotlinSignature("fun getSourceFiles(): List<String>")
|
||||
List<String> getSourceFiles();
|
||||
|
||||
@KotlinSignature("fun getClasspathRoots(): List<String>")
|
||||
List<String> getClasspathRoots();
|
||||
|
||||
@KotlinSignature("fun getAnnotationsRoots(): List<String>")
|
||||
List<String> getAnnotationsRoots();
|
||||
}
|
||||
@@ -0,0 +1,249 @@
|
||||
/*
|
||||
* Copyright 2010-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet.runtime;
|
||||
|
||||
import jet.*;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
public abstract class ArrayIterator<T> implements Iterator<T> {
|
||||
private final int size;
|
||||
protected int index;
|
||||
|
||||
protected ArrayIterator(int size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasNext() {
|
||||
return index < size;
|
||||
}
|
||||
|
||||
private static class GenericIterator<T> extends ArrayIterator<T> {
|
||||
private final T[] array;
|
||||
|
||||
private GenericIterator(T[] array) {
|
||||
super(array.length);
|
||||
this.array = array;
|
||||
}
|
||||
|
||||
@Override
|
||||
public T next() {
|
||||
return array[index++];
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove() {
|
||||
throw new UnsupportedOperationException("Mutating method called on a Kotlin Iterator");
|
||||
}
|
||||
}
|
||||
|
||||
public static <T> Iterator<T> iterator(T[] array) {
|
||||
return new GenericIterator<T>(array);
|
||||
}
|
||||
|
||||
private static class ArrayByteIterator extends ByteIterator {
|
||||
private final byte[] array;
|
||||
private int index;
|
||||
|
||||
@Override
|
||||
public boolean hasNext() {
|
||||
return index < array.length;
|
||||
}
|
||||
|
||||
private ArrayByteIterator(byte[] array) {
|
||||
this.array = array;
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte nextByte() {
|
||||
return array[index++];
|
||||
}
|
||||
}
|
||||
|
||||
public static ByteIterator iterator(byte[] array) {
|
||||
return new ArrayByteIterator(array);
|
||||
}
|
||||
|
||||
private static class ArrayShortIterator extends ShortIterator {
|
||||
private final short[] array;
|
||||
|
||||
private int index;
|
||||
|
||||
@Override
|
||||
public boolean hasNext() {
|
||||
return index < array.length;
|
||||
}
|
||||
|
||||
private ArrayShortIterator(short[] array) {
|
||||
this.array = array;
|
||||
}
|
||||
|
||||
@Override
|
||||
public short nextShort() {
|
||||
return array[index++];
|
||||
}
|
||||
}
|
||||
|
||||
public static ShortIterator iterator(short[] array) {
|
||||
return new ArrayShortIterator(array);
|
||||
}
|
||||
|
||||
private static class ArrayIntIterator extends IntIterator {
|
||||
private final int[] array;
|
||||
|
||||
private int index;
|
||||
|
||||
@Override
|
||||
public boolean hasNext() {
|
||||
return index < array.length;
|
||||
}
|
||||
|
||||
private ArrayIntIterator(int[] array) {
|
||||
this.array = array;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int nextInt() {
|
||||
return array[index++];
|
||||
}
|
||||
}
|
||||
|
||||
public static IntIterator iterator(int[] array) {
|
||||
return new ArrayIntIterator(array);
|
||||
}
|
||||
|
||||
private static class ArrayLongIterator extends LongIterator {
|
||||
private final long[] array;
|
||||
|
||||
private int index;
|
||||
|
||||
@Override
|
||||
public boolean hasNext() {
|
||||
return index < array.length;
|
||||
}
|
||||
|
||||
private ArrayLongIterator(long[] array) {
|
||||
this.array = array;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long nextLong() {
|
||||
return array[index++];
|
||||
}
|
||||
}
|
||||
|
||||
public static LongIterator iterator(long[] array) {
|
||||
return new ArrayLongIterator(array);
|
||||
}
|
||||
|
||||
private static class ArrayFloatIterator extends FloatIterator {
|
||||
private final float[] array;
|
||||
|
||||
private int index;
|
||||
|
||||
@Override
|
||||
public boolean hasNext() {
|
||||
return index < array.length;
|
||||
}
|
||||
|
||||
private ArrayFloatIterator(float[] array) {
|
||||
this.array = array;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float nextFloat() {
|
||||
return array[index++];
|
||||
}
|
||||
}
|
||||
|
||||
public static FloatIterator iterator(float[] array) {
|
||||
return new ArrayFloatIterator(array);
|
||||
}
|
||||
|
||||
private static class ArrayDoubleIterator extends DoubleIterator {
|
||||
private final double[] array;
|
||||
|
||||
private int index;
|
||||
|
||||
@Override
|
||||
public boolean hasNext() {
|
||||
return index < array.length;
|
||||
}
|
||||
|
||||
private ArrayDoubleIterator(double[] array) {
|
||||
this.array = array;
|
||||
}
|
||||
|
||||
@Override
|
||||
public double nextDouble() {
|
||||
return array[index++];
|
||||
}
|
||||
}
|
||||
|
||||
public static DoubleIterator iterator(double[] array) {
|
||||
return new ArrayDoubleIterator(array);
|
||||
}
|
||||
|
||||
private static class ArrayCharacterIterator extends CharIterator {
|
||||
private final char[] array;
|
||||
|
||||
private int index;
|
||||
|
||||
@Override
|
||||
public boolean hasNext() {
|
||||
return index < array.length;
|
||||
}
|
||||
|
||||
private ArrayCharacterIterator(char[] array) {
|
||||
this.array = array;
|
||||
}
|
||||
|
||||
@Override
|
||||
public char nextChar() {
|
||||
return array[index++];
|
||||
}
|
||||
}
|
||||
|
||||
public static CharIterator iterator(char[] array) {
|
||||
return new ArrayCharacterIterator(array);
|
||||
}
|
||||
|
||||
private static class ArrayBooleanIterator extends BooleanIterator {
|
||||
private final boolean[] array;
|
||||
|
||||
private int index;
|
||||
|
||||
@Override
|
||||
public boolean hasNext() {
|
||||
return index < array.length;
|
||||
}
|
||||
|
||||
private ArrayBooleanIterator(boolean[] array) {
|
||||
this.array = array;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean nextBoolean() {
|
||||
return array[index++];
|
||||
}
|
||||
}
|
||||
|
||||
public static BooleanIterator iterator(boolean[] array) {
|
||||
return new ArrayBooleanIterator(array);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package jet.runtime;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
|
||||
public class CollectionToArray {
|
||||
// Implementation copied from AbstractCollection
|
||||
|
||||
public static Object[] toArray(Collection<?> collection) {
|
||||
Object[] r = new Object[collection.size()];
|
||||
Iterator<?> it = collection.iterator();
|
||||
for (int i = 0; i < r.length; i++) {
|
||||
if (! it.hasNext()) // fewer elements than expected
|
||||
return Arrays.copyOf(r, i);
|
||||
r[i] = it.next();
|
||||
}
|
||||
return it.hasNext() ? finishToArray(r, it) : r;
|
||||
}
|
||||
|
||||
public static <T, E> T[] toArray(Collection<E> collection, T[] a) {
|
||||
// Estimate size of array; be prepared to see more or fewer elements
|
||||
int size = collection.size();
|
||||
T[] r = a.length >= size ? a :
|
||||
(T[])java.lang.reflect.Array
|
||||
.newInstance(a.getClass().getComponentType(), size);
|
||||
Iterator<E> it = collection.iterator();
|
||||
|
||||
for (int i = 0; i < r.length; i++) {
|
||||
if (! it.hasNext()) { // fewer elements than expected
|
||||
if (a != r)
|
||||
return Arrays.copyOf(r, i);
|
||||
r[i] = null; // null-terminate
|
||||
return r;
|
||||
}
|
||||
r[i] = (T)it.next();
|
||||
}
|
||||
return it.hasNext() ? finishToArray(r, it) : r;
|
||||
}
|
||||
|
||||
private static <T> T[] finishToArray(T[] r, Iterator<?> it) {
|
||||
int i = r.length;
|
||||
while (it.hasNext()) {
|
||||
int cap = r.length;
|
||||
if (i == cap) {
|
||||
int newCap = ((cap / 2) + 1) * 3;
|
||||
if (newCap <= cap) { // integer overflow
|
||||
if (cap == Integer.MAX_VALUE)
|
||||
throw new OutOfMemoryError
|
||||
("Required array size too large");
|
||||
newCap = Integer.MAX_VALUE;
|
||||
}
|
||||
r = Arrays.copyOf(r, newCap);
|
||||
}
|
||||
r[i++] = (T)it.next();
|
||||
}
|
||||
// trim if overallocated
|
||||
return (i == r.length) ? r : Arrays.copyOf(r, i);
|
||||
}
|
||||
|
||||
private CollectionToArray() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright 2010-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet.runtime;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.METHOD)
|
||||
public @interface Intrinsic {
|
||||
String value();
|
||||
}
|
||||
@@ -0,0 +1,154 @@
|
||||
/*
|
||||
* Copyright 2010-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet.runtime;
|
||||
|
||||
import jet.Function0;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public class Intrinsics {
|
||||
private Intrinsics() {
|
||||
}
|
||||
|
||||
public static String stringPlus(String self, Object other) {
|
||||
return ((self == null) ? "null" : self) + ((other == null) ? "null" : other.toString());
|
||||
}
|
||||
|
||||
public static void throwNpe() {
|
||||
throw new JetNullPointerException();
|
||||
}
|
||||
|
||||
public static void checkReturnedValueIsNotNull(Object value, String className, String methodName) {
|
||||
if (value == null) {
|
||||
IllegalStateException exception =
|
||||
new IllegalStateException("Method specified as non-null returned null: " + className + "." + methodName);
|
||||
throw sanitizeStackTrace(exception);
|
||||
}
|
||||
}
|
||||
|
||||
public static void checkFieldIsNotNull(Object value, String className, String fieldName) {
|
||||
if (value == null) {
|
||||
IllegalStateException exception =
|
||||
new IllegalStateException("Field specified as non-null contains null: " + className + "." + fieldName);
|
||||
throw sanitizeStackTrace(exception);
|
||||
}
|
||||
}
|
||||
|
||||
public static void checkParameterIsNotNull(Object value, String paramName) {
|
||||
if (value == null) {
|
||||
StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace();
|
||||
|
||||
// #0 is Thread.getStackTrace(), #1 is Intrinsics.checkParameterIsNotNull, #2 is our caller
|
||||
StackTraceElement caller = stackTraceElements[2];
|
||||
String className = caller.getClassName();
|
||||
String methodName = caller.getMethodName();
|
||||
|
||||
IllegalArgumentException exception =
|
||||
new IllegalArgumentException("Parameter specified as non-null contains null: " +
|
||||
"method " + className + "." + methodName +
|
||||
", parameter " + paramName);
|
||||
throw sanitizeStackTrace(exception);
|
||||
}
|
||||
}
|
||||
|
||||
public static <T> Class<T> getJavaClass(T self) {
|
||||
return (Class<T>) self.getClass();
|
||||
}
|
||||
|
||||
public static int compare(long thisVal, long anotherVal) {
|
||||
return (thisVal<anotherVal ? -1 : (thisVal==anotherVal ? 0 : 1));
|
||||
}
|
||||
|
||||
public static int compare(int thisVal, int anotherVal) {
|
||||
return (thisVal<anotherVal ? -1 : (thisVal==anotherVal ? 0 : 1));
|
||||
}
|
||||
|
||||
public static boolean areEqual(Object first, Object second) {
|
||||
return first == null ? second == null : first.equals(second);
|
||||
}
|
||||
|
||||
public static <R> R stupidSync(Object lock, Function0<R> block) {
|
||||
synchronized (lock) {
|
||||
return block.invoke();
|
||||
}
|
||||
}
|
||||
|
||||
private static final Set<String> METHOD_NAMES_TO_SKIP = new HashSet<String>(Arrays.asList(
|
||||
"throwNpe", "checkReturnedValueIsNotNull", "checkFieldIsNotNull", "checkParameterIsNotNull"
|
||||
));
|
||||
|
||||
private static <T extends Throwable> T sanitizeStackTrace(T throwable) {
|
||||
StackTraceElement[] stackTrace = throwable.getStackTrace();
|
||||
ArrayList<StackTraceElement> list = new ArrayList<StackTraceElement>();
|
||||
boolean skip = true;
|
||||
for(StackTraceElement ste : stackTrace) {
|
||||
if (!skip) {
|
||||
list.add(ste);
|
||||
}
|
||||
else {
|
||||
if ("jet.runtime.Intrinsics".equals(ste.getClassName())) {
|
||||
if (METHOD_NAMES_TO_SKIP.contains(ste.getMethodName())) {
|
||||
skip = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
throwable.setStackTrace(list.toArray(new StackTraceElement[list.size()]));
|
||||
return throwable;
|
||||
}
|
||||
|
||||
private static class JetNullPointerException extends NullPointerException {
|
||||
@Override
|
||||
public synchronized Throwable fillInStackTrace() {
|
||||
super.fillInStackTrace();
|
||||
return sanitizeStackTrace(this);
|
||||
}
|
||||
}
|
||||
|
||||
public static class SpreadBuilder extends ArrayList {
|
||||
public void addSpread(Object array) {
|
||||
if (array != null) {
|
||||
if (array instanceof Object[]) {
|
||||
Object[] arr = (Object[]) array;
|
||||
if (arr.length > 0) {
|
||||
ensureCapacity(size() + arr.length);
|
||||
for (int i = 0; i < arr.length; i++) {
|
||||
add(arr[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (array instanceof Collection) {
|
||||
addAll((Collection) array);
|
||||
}
|
||||
else if (array instanceof Iterable) {
|
||||
for(Iterator iterator = ((Iterable) array).iterator(); iterator.hasNext(); ) {
|
||||
add(iterator.next());
|
||||
}
|
||||
}
|
||||
else if (array instanceof Iterator) {
|
||||
for(Iterator iterator = ((Iterator) array); iterator.hasNext(); ) {
|
||||
add(iterator.next());
|
||||
}
|
||||
}
|
||||
else {
|
||||
throw new UnsupportedOperationException("Don't know how to spread " + array.getClass());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,225 @@
|
||||
/*
|
||||
* Copyright 2010-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
package jet.runtime;
|
||||
|
||||
import jet.*;
|
||||
|
||||
/* This file is generated by org.jetbrains.jet.generators.runtime.GenerateRanges. DO NOT EDIT! */
|
||||
public class Ranges {
|
||||
public static ByteRange rangeTo(byte from, byte to) {
|
||||
return new ByteRange(from, to);
|
||||
}
|
||||
|
||||
public static ShortRange rangeTo(byte from, short to) {
|
||||
return new ShortRange(from, to);
|
||||
}
|
||||
|
||||
public static IntRange rangeTo(byte from, int to) {
|
||||
return new IntRange(from, to);
|
||||
}
|
||||
|
||||
public static LongRange rangeTo(byte from, long to) {
|
||||
return new LongRange(from, to);
|
||||
}
|
||||
|
||||
public static FloatRange rangeTo(byte from, float to) {
|
||||
return new FloatRange(from, to);
|
||||
}
|
||||
|
||||
public static DoubleRange rangeTo(byte from, double to) {
|
||||
return new DoubleRange(from, to);
|
||||
}
|
||||
|
||||
public static CharRange rangeTo(byte from, char to) {
|
||||
return new CharRange((char) from, to);
|
||||
}
|
||||
|
||||
public static ShortRange rangeTo(short from, byte to) {
|
||||
return new ShortRange(from, to);
|
||||
}
|
||||
|
||||
public static ShortRange rangeTo(short from, short to) {
|
||||
return new ShortRange(from, to);
|
||||
}
|
||||
|
||||
public static IntRange rangeTo(short from, int to) {
|
||||
return new IntRange(from, to);
|
||||
}
|
||||
|
||||
public static LongRange rangeTo(short from, long to) {
|
||||
return new LongRange(from, to);
|
||||
}
|
||||
|
||||
public static FloatRange rangeTo(short from, float to) {
|
||||
return new FloatRange(from, to);
|
||||
}
|
||||
|
||||
public static DoubleRange rangeTo(short from, double to) {
|
||||
return new DoubleRange(from, to);
|
||||
}
|
||||
|
||||
public static ShortRange rangeTo(short from, char to) {
|
||||
return new ShortRange(from, (short) to);
|
||||
}
|
||||
|
||||
public static IntRange rangeTo(int from, byte to) {
|
||||
return new IntRange(from, to);
|
||||
}
|
||||
|
||||
public static IntRange rangeTo(int from, short to) {
|
||||
return new IntRange(from, to);
|
||||
}
|
||||
|
||||
public static IntRange rangeTo(int from, int to) {
|
||||
return new IntRange(from, to);
|
||||
}
|
||||
|
||||
public static LongRange rangeTo(int from, long to) {
|
||||
return new LongRange(from, to);
|
||||
}
|
||||
|
||||
public static FloatRange rangeTo(int from, float to) {
|
||||
return new FloatRange(from, to);
|
||||
}
|
||||
|
||||
public static DoubleRange rangeTo(int from, double to) {
|
||||
return new DoubleRange(from, to);
|
||||
}
|
||||
|
||||
public static IntRange rangeTo(int from, char to) {
|
||||
return new IntRange(from, to);
|
||||
}
|
||||
|
||||
public static LongRange rangeTo(long from, byte to) {
|
||||
return new LongRange(from, to);
|
||||
}
|
||||
|
||||
public static LongRange rangeTo(long from, short to) {
|
||||
return new LongRange(from, to);
|
||||
}
|
||||
|
||||
public static LongRange rangeTo(long from, int to) {
|
||||
return new LongRange(from, to);
|
||||
}
|
||||
|
||||
public static LongRange rangeTo(long from, long to) {
|
||||
return new LongRange(from, to);
|
||||
}
|
||||
|
||||
public static FloatRange rangeTo(long from, float to) {
|
||||
return new FloatRange(from, to);
|
||||
}
|
||||
|
||||
public static DoubleRange rangeTo(long from, double to) {
|
||||
return new DoubleRange(from, to);
|
||||
}
|
||||
|
||||
public static LongRange rangeTo(long from, char to) {
|
||||
return new LongRange(from, to);
|
||||
}
|
||||
|
||||
public static FloatRange rangeTo(float from, byte to) {
|
||||
return new FloatRange(from, to);
|
||||
}
|
||||
|
||||
public static FloatRange rangeTo(float from, short to) {
|
||||
return new FloatRange(from, to);
|
||||
}
|
||||
|
||||
public static FloatRange rangeTo(float from, int to) {
|
||||
return new FloatRange(from, to);
|
||||
}
|
||||
|
||||
public static FloatRange rangeTo(float from, long to) {
|
||||
return new FloatRange(from, to);
|
||||
}
|
||||
|
||||
public static FloatRange rangeTo(float from, float to) {
|
||||
return new FloatRange(from, to);
|
||||
}
|
||||
|
||||
public static DoubleRange rangeTo(float from, double to) {
|
||||
return new DoubleRange(from, to);
|
||||
}
|
||||
|
||||
public static FloatRange rangeTo(float from, char to) {
|
||||
return new FloatRange(from, to);
|
||||
}
|
||||
|
||||
public static DoubleRange rangeTo(double from, byte to) {
|
||||
return new DoubleRange(from, to);
|
||||
}
|
||||
|
||||
public static DoubleRange rangeTo(double from, short to) {
|
||||
return new DoubleRange(from, to);
|
||||
}
|
||||
|
||||
public static DoubleRange rangeTo(double from, int to) {
|
||||
return new DoubleRange(from, to);
|
||||
}
|
||||
|
||||
public static DoubleRange rangeTo(double from, long to) {
|
||||
return new DoubleRange(from, to);
|
||||
}
|
||||
|
||||
public static DoubleRange rangeTo(double from, float to) {
|
||||
return new DoubleRange(from, to);
|
||||
}
|
||||
|
||||
public static DoubleRange rangeTo(double from, double to) {
|
||||
return new DoubleRange(from, to);
|
||||
}
|
||||
|
||||
public static DoubleRange rangeTo(double from, char to) {
|
||||
return new DoubleRange(from, to);
|
||||
}
|
||||
|
||||
public static CharRange rangeTo(char from, byte to) {
|
||||
return new CharRange(from, (char) to);
|
||||
}
|
||||
|
||||
public static ShortRange rangeTo(char from, short to) {
|
||||
return new ShortRange((short) from, to);
|
||||
}
|
||||
|
||||
public static IntRange rangeTo(char from, int to) {
|
||||
return new IntRange(from, to);
|
||||
}
|
||||
|
||||
public static LongRange rangeTo(char from, long to) {
|
||||
return new LongRange(from, to);
|
||||
}
|
||||
|
||||
public static FloatRange rangeTo(char from, float to) {
|
||||
return new FloatRange(from, to);
|
||||
}
|
||||
|
||||
public static DoubleRange rangeTo(char from, double to) {
|
||||
return new DoubleRange(from, to);
|
||||
}
|
||||
|
||||
public static CharRange rangeTo(char from, char to) {
|
||||
return new CharRange(from, to);
|
||||
}
|
||||
|
||||
public static IntRange arrayIndices(int length) {
|
||||
return new IntRange(0, length - 1);
|
||||
}
|
||||
|
||||
private Ranges() {}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2010-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet.runtime;
|
||||
|
||||
public final class SharedVar {
|
||||
public static final class Object<T> {
|
||||
public T ref;
|
||||
}
|
||||
|
||||
public static final class Byte {
|
||||
public byte ref;
|
||||
}
|
||||
|
||||
public static final class Short {
|
||||
public short ref;
|
||||
}
|
||||
|
||||
public static final class Int {
|
||||
public int ref;
|
||||
}
|
||||
|
||||
public static final class Long {
|
||||
public long ref;
|
||||
}
|
||||
|
||||
public static final class Float {
|
||||
public float ref;
|
||||
}
|
||||
|
||||
public static final class Double {
|
||||
public double ref;
|
||||
}
|
||||
|
||||
public static final class Char {
|
||||
public char ref;
|
||||
}
|
||||
|
||||
public static final class Boolean {
|
||||
public boolean ref;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Copyright 2010-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet.runtime.typeinfo;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target(ElementType.PARAMETER)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Deprecated
|
||||
public @interface JetValueParameter {
|
||||
String name();
|
||||
|
||||
/**
|
||||
* This is a hack for Kara
|
||||
* @return <code>"?"</code> if the type of this parameter is nullable, an empty string otherwise
|
||||
*/
|
||||
String type() default "";
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright 2010-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package jet.runtime.typeinfo;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.METHOD, ElementType.TYPE, ElementType.CONSTRUCTOR, ElementType.FIELD})
|
||||
public @interface KotlinSignature {
|
||||
String value();
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright 2010-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.jetbrains.annotations;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
/**
|
||||
* Annotate anything of type descendant from Iterable or Iterator with @Mutable if the corresponding collection/iterator
|
||||
* is allowed to be mutated
|
||||
*/
|
||||
@Documented
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER, ElementType.LOCAL_VARIABLE})
|
||||
public @interface Mutable {
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright 2010-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.jetbrains.annotations;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
/**
|
||||
* An element annotated with NotNull claims <code>null</code> value is <em>forbidden</em>
|
||||
* to return (for methods), pass to (parameters) and hold (local variables and fields).
|
||||
* Apart from documentation purposes this annotation is intended to be used by static analysis tools
|
||||
* to validate against probable runtime errors and element contract violations.
|
||||
*/
|
||||
@Documented
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER, ElementType.LOCAL_VARIABLE})
|
||||
public @interface NotNull {
|
||||
String value() default "";
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright 2010-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.jetbrains.annotations;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
/**
|
||||
* An element annotated with Nullable claims <code>null</code> value is perfectly <em>valid</em>
|
||||
* to return (for methods), pass to (parameters) and hold (local variables and fields).
|
||||
* Apart from documentation purposes this annotation is intended to be used by static analysis tools
|
||||
* to validate against probable runtime errors and element contract violations.
|
||||
*/
|
||||
@Documented
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER, ElementType.LOCAL_VARIABLE})
|
||||
public @interface Nullable {
|
||||
String value() default "";
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright 2010-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.jetbrains.annotations;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
/**
|
||||
* Annotate anything of type descendant from Iterable or Iterator with @ReadOnly if the underlying reference is not intended for mutation.
|
||||
* Note that such a reference is not guaranteed to be immutable. It may refer to an object mutated elsewhere.
|
||||
*/
|
||||
@Documented
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER, ElementType.LOCAL_VARIABLE})
|
||||
public @interface ReadOnly {
|
||||
}
|
||||
Reference in New Issue
Block a user