Move builtin class sources(*.jet) under IDEA module (should be removed completely later)

Change marker filename which is used to find those sources via getResource
This commit is contained in:
Pavel V. Talanov
2013-06-25 13:41:37 +04:00
committed by Alexander Udalov
parent 06496ea3ed
commit 1161685fee
20 changed files with 9 additions and 19 deletions
-3
View File
@@ -1,3 +0,0 @@
package jet
public open class Any() {}
-84
View File
@@ -1,84 +0,0 @@
package jet
public fun arrayOfNulls<T>(public size : Int) : Array<T?>
public class Array<reified T>(public val size : Int, init : (Int) -> T) {
public fun get(index : Int) : T
public fun set(index : Int, value : T) : Unit
public fun iterator() : Iterator<T>
public val indices : IntRange
}
public class ByteArray(public val size : Int) {
public fun get(index : Int) : Byte
public fun set(index : Int, value : Byte) : Unit
public fun iterator() : ByteIterator
public val indices : IntRange
}
public class ShortArray(public val size : Int) {
public fun get(index : Int) : Short
public fun set(index : Int, value : Short) : Unit
public fun iterator() : ShortIterator
public val indices : IntRange
}
public class IntArray(public val size : Int) {
public fun get(index : Int) : Int
public fun set(index : Int, value : Int) : Unit
public fun iterator() : IntIterator
public val indices : IntRange
}
public class LongArray(public val size : Int) {
public fun get(index : Int) : Long
public fun set(index : Int, value : Long) : Unit
public fun iterator() : LongIterator
public val indices : IntRange
}
public class FloatArray(public val size : Int) {
public fun get(index : Int) : Float
public fun set(index : Int, value : Float) : Unit
public fun iterator() : FloatIterator
public val indices : IntRange
}
public class DoubleArray(public val size : Int) {
public fun get(index : Int) : Double
public fun set(index : Int, value : Double) : Unit
public fun iterator() : DoubleIterator
public val indices : IntRange
}
public class CharArray(public val size : Int) {
public fun get(index : Int) : Char
public fun set(index : Int, value : Char) : Unit
public fun iterator() : CharIterator
public val indices : IntRange
}
public class BooleanArray(public val size : Int) {
public fun get(index : Int) : Boolean
public fun set(index : Int, value : Boolean) : Unit
public fun iterator() : BooleanIterator
public val indices : IntRange
}
@@ -1,155 +0,0 @@
package jet
public trait Iterable<out T> {
public fun iterator() : Iterator<T>
}
public trait MutableIterable<out T> : Iterable<T> {
override fun iterator() : MutableIterator<T>
}
public trait Collection<out E> : Iterable<E>, Hashable {
// Query Operations
public fun size() : Int
public fun isEmpty() : Boolean
public fun contains(o : Any?) : Boolean
override fun iterator() : Iterator<E>
public fun toArray() : Array<Any?>
public fun <T> toArray(a : Array<out T>) : Array<T>
// Bulk Operations
public fun containsAll(c : Collection<Any?>) : Boolean
}
public trait MutableCollection<E> : Collection<E>, MutableIterable<E> {
// Query Operations
override fun iterator() : MutableIterator<E>
// Modification Operations
public fun add(e : E) : Boolean
public fun remove(o : Any?) : Boolean
// Bulk Modification Operations
public fun addAll(c : Collection<E>) : Boolean
public fun removeAll(c : Collection<Any?>) : Boolean
public fun retainAll(c : Collection<Any?>) : Boolean
public fun clear()
}
public trait List<out E> : Collection<E> {
// Query Operations
override fun size() : Int
override fun isEmpty() : Boolean
override fun contains(o : Any?) : Boolean
override fun iterator() : Iterator<E>
override fun toArray() : Array<Any?>
override fun <T> toArray(a : Array<out T>) : Array<T>
// Bulk Operations
override fun containsAll(c : Collection<Any?>) : Boolean
// Positional Access Operations
public fun get(index : Int) : E
// Search Operations
public fun indexOf(o : Any?) : Int
public fun lastIndexOf(o : Any?) : Int
// List Iterators
public fun listIterator() : ListIterator<E>
public fun listIterator(index : Int) : ListIterator<E>
// View
public fun subList(fromIndex : Int, toIndex : Int) : List<E>
}
public trait MutableList<E> : List<E>, MutableCollection<E> {
// Modification Operations
override fun add(e: E) : Boolean
override fun remove(o : Any?) : Boolean
// Bulk Modification Operations
override fun addAll(c : Collection<E>) : Boolean
public fun addAll(index : Int, c : Collection<E>) : Boolean
override fun removeAll(c : Collection<Any?>) : Boolean
override fun retainAll(c : Collection<Any?>) : Boolean
override fun clear()
// Positional Access Operations
public fun set(index : Int, element : E) : E
public fun add(index : Int, element : E)
public fun remove(index : Int) : E
// List Iterators
override fun listIterator() : MutableListIterator<E>
override fun listIterator(index : Int) : MutableListIterator<E>
// View
override fun subList(fromIndex : Int, toIndex : Int) : MutableList<E>
}
public trait Set<out E> : Collection<E> {
// Query Operations
override fun size() : Int
override fun isEmpty() : Boolean
override fun contains(o : Any?) : Boolean
override fun iterator() : Iterator<E>
override fun toArray() : Array<Any?>
override fun <T> toArray(a : Array<out T>) : Array<T>
// Bulk Operations
override fun containsAll(c : Collection<Any?>) : Boolean
}
public trait MutableSet<E> : Set<E>, MutableCollection<E> {
// Query Operations
override fun iterator() : MutableIterator<E>
// Modification Operations
override fun add(e: E) : Boolean
override fun remove(o : Any?) : Boolean
// Bulk Modification Operations
override fun addAll(c : Collection<E>) : Boolean
override fun removeAll(c : Collection<Any?>) : Boolean
override fun retainAll(c : Collection<Any?>) : Boolean
override fun clear()
}
public trait Map<K, out V> {
// Query Operations
public fun size() : Int
public fun isEmpty() : Boolean
public fun containsKey(key : Any?) : Boolean
public fun containsValue(value : Any?) : Boolean
public fun get(key : Any?) : V?
// Views
public fun keySet() : Set<K>
public fun values() : Collection<V>
public fun entrySet() : Set<Map.Entry<K, V>>
public trait Entry<out K, out V> : Hashable {
public fun getKey() : K
public fun getValue() : V
}
}
public trait MutableMap<K, V> : Map<K, V> {
// Modification Operations
public fun put(key : K, value : V) : V?
public fun remove(key : Any?) : V?
// Bulk Modification Operations
public fun putAll(m : Map<out K, V>)
public fun clear()
// Views
override fun keySet() : MutableSet<K>
override fun values() : MutableCollection<V>
override fun entrySet() : MutableSet<MutableMap.MutableEntry<K, V>>
public trait MutableEntry<K,V> : Map.Entry<K, V>, Hashable {
public fun setValue(value : V) : V
}
}
-6
View File
@@ -1,6 +0,0 @@
package jet
public abstract class Enum<E: Enum<E>>(name: String, ordinal: Int) {
public final fun name() : String
public final fun ordinal() : Int
}
@@ -1,73 +0,0 @@
// Generated by org.jetbrains.jet.generators.runtime.GenerateFunctions
package jet
public trait ExtensionFunction0<in T, out R> {
public fun T.invoke() : R
}
public trait ExtensionFunction1<in T, in P1, out R> {
public fun T.invoke(p1: P1) : R
}
public trait ExtensionFunction2<in T, in P1, in P2, out R> {
public fun T.invoke(p1: P1, p2: P2) : R
}
public trait ExtensionFunction3<in T, in P1, in P2, in P3, out R> {
public fun T.invoke(p1: P1, p2: P2, p3: P3) : R
}
public trait ExtensionFunction4<in T, in P1, in P2, in P3, in P4, out R> {
public fun T.invoke(p1: P1, p2: P2, p3: P3, p4: P4) : R
}
public trait ExtensionFunction5<in T, in P1, in P2, in P3, in P4, in P5, out R> {
public fun T.invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5) : R
}
public trait ExtensionFunction6<in T, in P1, in P2, in P3, in P4, in P5, in P6, out R> {
public fun T.invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6) : R
}
public trait ExtensionFunction7<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, out R> {
public fun T.invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7) : R
}
public trait ExtensionFunction8<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, out R> {
public fun T.invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8) : R
}
public trait ExtensionFunction9<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, out R> {
public fun T.invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9) : R
}
public trait ExtensionFunction10<in T, in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, out R> {
public fun T.invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10) : R
}
public trait ExtensionFunction11<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> {
public fun T.invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11) : R
}
public trait ExtensionFunction12<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> {
public fun T.invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12) : R
}
public trait ExtensionFunction13<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> {
public fun T.invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12, p13: P13) : R
}
public trait ExtensionFunction14<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> {
public fun T.invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12, p13: P13, p14: P14) : R
}
public trait ExtensionFunction15<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> {
public fun T.invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12, p13: P13, p14: P14, p15: P15) : R
}
public trait ExtensionFunction16<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> {
public fun T.invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12, p13: P13, p14: P14, p15: P15, p16: P16) : R
}
public trait ExtensionFunction17<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> {
public fun T.invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12, p13: P13, p14: P14, p15: P15, p16: P16, p17: P17) : R
}
public trait ExtensionFunction18<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> {
public fun T.invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12, p13: P13, p14: P14, p15: P15, p16: P16, p17: P17, p18: P18) : R
}
public trait ExtensionFunction19<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> {
public fun T.invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12, p13: P13, p14: P14, p15: P15, p16: P16, p17: P17, p18: P18, p19: P19) : R
}
public trait ExtensionFunction20<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> {
public fun T.invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12, p13: P13, p14: P14, p15: P15, p16: P16, p17: P17, p18: P18, p19: P19, p20: P20) : R
}
public trait ExtensionFunction21<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> {
public fun T.invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12, p13: P13, p14: P14, p15: P15, p16: P16, p17: P17, p18: P18, p19: P19, p20: P20, p21: P21) : R
}
public trait ExtensionFunction22<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> {
public fun T.invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12, p13: P13, p14: P14, p15: P15, p16: P16, p17: P17, p18: P18, p19: P19, p20: P20, p21: P21, p22: P22) : R
}
@@ -1,73 +0,0 @@
// Generated by org.jetbrains.jet.generators.runtime.GenerateFunctions
package jet
public trait Function0<out R> {
public fun invoke() : R
}
public trait Function1<in P1, out R> {
public fun invoke(p1: P1) : R
}
public trait Function2<in P1, in P2, out R> {
public fun invoke(p1: P1, p2: P2) : R
}
public trait Function3<in P1, in P2, in P3, out R> {
public fun invoke(p1: P1, p2: P2, p3: P3) : R
}
public trait Function4<in P1, in P2, in P3, in P4, out R> {
public fun invoke(p1: P1, p2: P2, p3: P3, p4: P4) : R
}
public trait Function5<in P1, in P2, in P3, in P4, in P5, out R> {
public fun invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5) : R
}
public trait Function6<in P1, in P2, in P3, in P4, in P5, in P6, out R> {
public fun invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6) : R
}
public trait Function7<in P1, in P2, in P3, in P4, in P5, in P6, in P7, out R> {
public fun invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7) : R
}
public trait Function8<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, out R> {
public fun invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8) : R
}
public trait Function9<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, out R> {
public fun invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9) : R
}
public trait Function10<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, out R> {
public fun invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10) : R
}
public trait Function11<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, in P9, in P10, in P11, out R> {
public fun invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11) : R
}
public trait Function12<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> {
public fun invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12) : R
}
public trait Function13<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> {
public fun invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12, p13: P13) : R
}
public trait Function14<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> {
public fun invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12, p13: P13, p14: P14) : R
}
public trait Function15<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> {
public fun invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12, p13: P13, p14: P14, p15: P15) : R
}
public trait Function16<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> {
public fun invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12, p13: P13, p14: P14, p15: P15, p16: P16) : R
}
public trait Function17<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> {
public fun invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12, p13: P13, p14: P14, p15: P15, p16: P16, p17: P17) : R
}
public trait Function18<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> {
public fun invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12, p13: P13, p14: P14, p15: P15, p16: P16, p17: P17, p18: P18) : R
}
public trait Function19<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> {
public fun invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12, p13: P13, p14: P14, p15: P15, p16: P16, p17: P17, p18: P18, p19: P19) : R
}
public trait Function20<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> {
public fun invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12, p13: P13, p14: P14, p15: P15, p16: P16, p17: P17, p18: P18, p19: P19, p20: P20) : R
}
public trait Function21<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> {
public fun invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12, p13: P13, p14: P14, p15: P15, p16: P16, p17: P17, p18: P18, p19: P19, p20: P20, p21: P21) : R
}
public trait Function22<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> {
public fun invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12, p13: P13, p14: P14, p15: P15, p16: P16, p17: P17, p18: P18, p19: P19, p20: P20, p21: P21, p22: P22) : R
}
@@ -1,82 +0,0 @@
package jet
public trait Iterator<out T> {
public fun next() : T
public fun hasNext() : Boolean
}
public trait MutableIterator<out T> : Iterator<T> {
public fun remove()
}
public abstract class ByteIterator() : Iterator<Byte> {
public abstract open fun nextByte() : Byte
public override fun next() : Byte
}
public abstract class ShortIterator() : Iterator<Short> {
public abstract open fun nextShort() : Short
public override fun next() : Short
}
public abstract class CharIterator() : Iterator<Char> {
public abstract open fun nextChar() : Char
public override fun next() : Char
}
public abstract class IntIterator() : Iterator<Int> {
public abstract open fun nextInt() : Int
public override fun next() : Int
}
public abstract class LongIterator() : Iterator<Long> {
public abstract open fun nextLong() : Long
public override fun next() : Long
}
public abstract class FloatIterator() : Iterator<Float> {
public abstract open fun nextFloat() : Float
public override fun next() : Float
}
public abstract class DoubleIterator() : Iterator<Double> {
public abstract open fun nextDouble() : Double
public override fun next() : Double
}
abstract open public class BooleanIterator() : Iterator<Boolean> {
public abstract open fun nextBoolean() : Boolean
public override fun next() : Boolean
}
public fun <T> Iterator<T>.iterator() : Iterator<T>
public trait ListIterator<out T> : Iterator<T> {
// Query Operations
override fun hasNext() : Boolean
override fun next() : T
public fun hasPrevious() : Boolean
public fun previous() : T
public fun nextIndex() : Int
public fun previousIndex() : Int
}
public trait MutableListIterator<T> : ListIterator<T>, MutableIterator<T> {
// Query Operations
override fun hasNext() : Boolean
override fun next() : T
// Modification Operations
override fun remove()
public fun set(e : T)
public fun add(e : T)
}
@@ -1,27 +0,0 @@
// Generated by org.jetbrains.jet.generators.runtime.GenerateFunctions
package jet
public trait KExtensionFunction0<in T, out R> : ExtensionFunction0<T, R>
public trait KExtensionFunction1<in T, in P1, out R> : ExtensionFunction1<T, P1, R>
public trait KExtensionFunction2<in T, in P1, in P2, out R> : ExtensionFunction2<T, P1, P2, R>
public trait KExtensionFunction3<in T, in P1, in P2, in P3, out R> : ExtensionFunction3<T, P1, P2, P3, R>
public trait KExtensionFunction4<in T, in P1, in P2, in P3, in P4, out R> : ExtensionFunction4<T, P1, P2, P3, P4, R>
public trait KExtensionFunction5<in T, in P1, in P2, in P3, in P4, in P5, out R> : ExtensionFunction5<T, P1, P2, P3, P4, P5, R>
public trait KExtensionFunction6<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>
public trait KExtensionFunction7<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>
public trait KExtensionFunction8<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>
public trait KExtensionFunction9<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>
public trait KExtensionFunction10<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>
public trait KExtensionFunction11<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>
public trait KExtensionFunction12<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>
public trait KExtensionFunction13<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>
public trait KExtensionFunction14<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>
public trait KExtensionFunction15<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>
public trait KExtensionFunction16<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>
public trait KExtensionFunction17<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>
public trait KExtensionFunction18<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>
public trait KExtensionFunction19<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>
public trait KExtensionFunction20<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>
public trait KExtensionFunction21<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>
public trait KExtensionFunction22<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>
@@ -1,27 +0,0 @@
// Generated by org.jetbrains.jet.generators.runtime.GenerateFunctions
package jet
public trait KFunction0<out R> : Function0<R>
public trait KFunction1<in P1, out R> : Function1<P1, R>
public trait KFunction2<in P1, in P2, out R> : Function2<P1, P2, R>
public trait KFunction3<in P1, in P2, in P3, out R> : Function3<P1, P2, P3, R>
public trait KFunction4<in P1, in P2, in P3, in P4, out R> : Function4<P1, P2, P3, P4, R>
public trait KFunction5<in P1, in P2, in P3, in P4, in P5, out R> : Function5<P1, P2, P3, P4, P5, R>
public trait KFunction6<in P1, in P2, in P3, in P4, in P5, in P6, out R> : Function6<P1, P2, P3, P4, P5, P6, R>
public trait KFunction7<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>
public trait KFunction8<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>
public trait KFunction9<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>
public trait KFunction10<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>
public trait KFunction11<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>
public trait KFunction12<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>
public trait KFunction13<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>
public trait KFunction14<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>
public trait KFunction15<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>
public trait KFunction16<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>
public trait KFunction17<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>
public trait KFunction18<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>
public trait KFunction19<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>
public trait KFunction20<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>
public trait KFunction21<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>
public trait KFunction22<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>
@@ -1,27 +0,0 @@
// Generated by org.jetbrains.jet.generators.runtime.GenerateFunctions
package jet
public trait KMemberFunction0<in T, out R> : ExtensionFunction0<T, R>
public trait KMemberFunction1<in T, in P1, out R> : ExtensionFunction1<T, P1, R>
public trait KMemberFunction2<in T, in P1, in P2, out R> : ExtensionFunction2<T, P1, P2, R>
public trait KMemberFunction3<in T, in P1, in P2, in P3, out R> : ExtensionFunction3<T, P1, P2, P3, R>
public trait KMemberFunction4<in T, in P1, in P2, in P3, in P4, out R> : ExtensionFunction4<T, P1, P2, P3, P4, R>
public trait KMemberFunction5<in T, in P1, in P2, in P3, in P4, in P5, out R> : ExtensionFunction5<T, P1, P2, P3, P4, P5, R>
public trait KMemberFunction6<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>
public trait KMemberFunction7<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>
public trait KMemberFunction8<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>
public trait KMemberFunction9<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>
public trait KMemberFunction10<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>
public trait KMemberFunction11<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>
public trait KMemberFunction12<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>
public trait KMemberFunction13<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>
public trait KMemberFunction14<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>
public trait KMemberFunction15<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>
public trait KMemberFunction16<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>
public trait KMemberFunction17<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>
public trait KMemberFunction18<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>
public trait KMemberFunction19<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>
public trait KMemberFunction20<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>
public trait KMemberFunction21<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>
public trait KMemberFunction22<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>
@@ -1,76 +0,0 @@
package jet
public trait Annotation
public annotation class volatile : Annotation
public annotation class atomic : Annotation
public annotation class data : Annotation
public annotation class deprecated(value: String) : Annotation
public fun <R> synchronized(lock: Any, block : () -> R) : R
public fun Any?.identityEquals(other : Any?) : Boolean // = this === other
// Can't write a body due to a bootstrapping problem (see JET-74)
public fun Any?.equals(other : Any?) : Boolean// = this === other
// Returns "null" for null
public fun Any?.toString() : String// = this === other
public fun String?.plus(other: Any?) : String
public trait Comparable<in T> {
public fun compareTo(other : T) : Int
}
public trait Hashable {
public fun hashCode() : Int
public fun equals(other : Any?) : Boolean
}
public class Boolean {
public fun not() : Boolean
public fun and(other : Boolean) : Boolean
public fun or(other : Boolean) : Boolean
public fun xor(other : Boolean) : Boolean
public fun equals(other : Any?) : Boolean
}
public trait CharSequence {
public fun get(index : Int) : Char
public val length : Int
public fun toString() : String
}
public class String() : Comparable<String>, CharSequence {
public fun plus(other : Any?) : String
public fun equals(other : Any?) : Boolean
public override fun compareTo(that : String) : Int
public override fun get(index : Int) : Char
public override fun toString() : String
public override val length: Int
}
public open class Throwable(message : String? = null, cause: Throwable? = null) {
public fun getMessage() : String?
public fun getCause() : Throwable?
public fun printStackTrace() : Unit
}
public trait PropertyMetadata {
public val name: String
}
/*
* In front-end we need to resolve call PropertyMetadataImpl() in getter of delegated property
* to be able generate it in back-end using ExpressionCodegen.invokeFunction
*/
public class PropertyMetadataImpl(public override val name: String): PropertyMetadata
@@ -1,6 +0,0 @@
package jet
/**
* Nothing has no instances
*/
public class Nothing private () {}
-545
View File
@@ -1,545 +0,0 @@
package jet
public abstract class Number : Hashable {
public abstract fun toDouble() : Double
public abstract fun toFloat() : Float
public abstract fun toLong() : Long
public abstract fun toInt() : Int
public abstract fun toChar() : Char
public abstract fun toShort() : Short
public abstract fun toByte() : Byte
// fun equals(other : Double) : Boolean
// fun equals(other : Float) : Boolean
// fun equals(other : Long) : Boolean
// fun equals(other : Byte) : Boolean
// fun equals(other : Int) : Boolean
// fun equals(other : Short) : Boolean
// fun equals(other : Char) : Boolean
}
public class Double : Number, Comparable<Double> {
public override fun compareTo(other : Double) : Int
public fun compareTo(other : Float) : Int
public fun compareTo(other : Long) : Int
public fun compareTo(other : Int) : Int
public fun compareTo(other : Short) : Int
public fun compareTo(other : Byte) : Int
public fun compareTo(other : Char) : Int
public fun plus(other : Double) : Double
public fun plus(other : Float) : Double
public fun plus(other : Long) : Double
public fun plus(other : Int) : Double
public fun plus(other : Short) : Double
public fun plus(other : Byte) : Double
public fun plus(other : Char) : Double
public fun minus(other : Double) : Double
public fun minus(other : Float) : Double
public fun minus(other : Long) : Double
public fun minus(other : Int) : Double
public fun minus(other : Short) : Double
public fun minus(other : Byte) : Double
public fun minus(other : Char) : Double
public fun times(other : Double) : Double
public fun times(other : Float) : Double
public fun times(other : Long) : Double
public fun times(other : Int) : Double
public fun times(other : Short) : Double
public fun times(other : Byte) : Double
public fun times(other : Char) : Double
public fun div(other : Double) : Double
public fun div(other : Float) : Double
public fun div(other : Long) : Double
public fun div(other : Int) : Double
public fun div(other : Short) : Double
public fun div(other : Byte) : Double
public fun div(other : Char) : Double
public fun mod(other : Double) : Double
public fun mod(other : Float) : Double
public fun mod(other : Long) : Double
public fun mod(other : Int) : Double
public fun mod(other : Short) : Double
public fun mod(other : Byte) : Double
public fun rangeTo(other : Double) : DoubleRange
public fun rangeTo(other : Float) : DoubleRange
public fun rangeTo(other : Long) : DoubleRange
public fun rangeTo(other : Int) : DoubleRange
public fun rangeTo(other : Short) : DoubleRange
public fun rangeTo(other : Byte) : DoubleRange
public fun rangeTo(other : Char) : DoubleRange
public fun inc() : Double
public fun dec() : Double
public fun plus() : Double
public fun minus() : Double
public override fun toDouble() : Double
public override fun toFloat() : Float
public override fun toLong() : Long
public override fun toInt() : Int
public override fun toChar() : Char
public override fun toShort() : Short
public override fun toByte() : Byte
public override fun hashCode() : Int
public override fun equals(other : Any?) : Boolean
}
public class Float : Number, Comparable<Float> {
public fun compareTo(other : Double) : Int
public override fun compareTo(other : Float) : Int
public fun compareTo(other : Long) : Int
public fun compareTo(other : Int) : Int
public fun compareTo(other : Short) : Int
public fun compareTo(other : Byte) : Int
public fun compareTo(other : Char) : Int
public fun plus(other : Double) : Double
public fun plus(other : Float) : Float
public fun plus(other : Long) : Float
public fun plus(other : Int) : Float
public fun plus(other : Short) : Float
public fun plus(other : Byte) : Float
public fun plus(other : Char) : Float
public fun minus(other : Double) : Double
public fun minus(other : Float) : Float
public fun minus(other : Long) : Float
public fun minus(other : Int) : Float
public fun minus(other : Short) : Float
public fun minus(other : Byte) : Float
public fun minus(other : Char) : Float
public fun times(other : Double) : Double
public fun times(other : Float) : Float
public fun times(other : Long) : Float
public fun times(other : Int) : Float
public fun times(other : Short) : Float
public fun times(other : Byte) : Float
public fun times(other : Char) : Float
public fun div(other : Double) : Double
public fun div(other : Float) : Float
public fun div(other : Long) : Float
public fun div(other : Int) : Float
public fun div(other : Short) : Float
public fun div(other : Byte) : Float
public fun div(other : Char) : Float
public fun mod(other : Double) : Double
public fun mod(other : Float) : Float
public fun mod(other : Long) : Float
public fun mod(other : Int) : Float
public fun mod(other : Short) : Float
public fun mod(other : Byte) : Float
public fun mod(other : Char) : Float
public fun rangeTo(other : Double) : DoubleRange
public fun rangeTo(other : Float) : FloatRange
public fun rangeTo(other : Long) : DoubleRange
public fun rangeTo(other : Int) : FloatRange
public fun rangeTo(other : Short) : FloatRange
public fun rangeTo(other : Byte) : FloatRange
public fun rangeTo(other : Char) : FloatRange
public fun inc() : Float
public fun dec() : Float
public fun plus() : Float
public fun minus() : Float
public override fun toDouble() : Double
public override fun toFloat() : Float
public override fun toLong() : Long
public override fun toInt() : Int
public override fun toChar() : Char
public override fun toShort() : Short
public override fun toByte() : Byte
public override fun hashCode() : Int
public override fun equals(other : Any?) : Boolean
}
public class Long : Number, Comparable<Long> {
public fun compareTo(other : Double) : Int
public fun compareTo(other : Float) : Int
public override fun compareTo(other : Long) : Int
public fun compareTo(other : Int) : Int
public fun compareTo(other : Short) : Int
public fun compareTo(other : Byte) : Int
public fun compareTo(other : Char) : Int
public fun plus(other : Double) : Double
public fun plus(other : Float) : Float
public fun plus(other : Long) : Long
public fun plus(other : Int) : Long
public fun plus(other : Short) : Long
public fun plus(other : Byte) : Long
public fun plus(other : Char) : Long
public fun minus(other : Double) : Double
public fun minus(other : Float) : Float
public fun minus(other : Long) : Long
public fun minus(other : Int) : Long
public fun minus(other : Short) : Long
public fun minus(other : Byte) : Long
public fun minus(other : Char) : Long
public fun times(other : Double) : Double
public fun times(other : Float) : Float
public fun times(other : Long) : Long
public fun times(other : Int) : Long
public fun times(other : Short) : Long
public fun times(other : Byte) : Long
public fun times(other : Char) : Long
public fun div(other : Double) : Double
public fun div(other : Float) : Float
public fun div(other : Long) : Long
public fun div(other : Int) : Long
public fun div(other : Short) : Long
public fun div(other : Byte) : Long
public fun div(other : Char) : Long
public fun mod(other : Double) : Double
public fun mod(other : Float) : Float
public fun mod(other : Long) : Long
public fun mod(other : Int) : Long
public fun mod(other : Short) : Long
public fun mod(other : Byte) : Long
public fun mod(other : Char) : Long
public fun rangeTo(other : Double) : DoubleRange
public fun rangeTo(other : Float) : FloatRange
public fun rangeTo(other : Long) : LongRange
public fun rangeTo(other : Int) : LongRange
public fun rangeTo(other : Short) : LongRange
public fun rangeTo(other : Byte) : LongRange
public fun rangeTo(other : Char) : LongRange
public fun inc() : Long
public fun dec() : Long
public fun plus() : Long
public fun minus() : Long
public fun shl(bits : Int) : Long
public fun shr(bits : Int) : Long
public fun ushr(bits : Int) : Long
public fun and(other : Long) : Long
public fun or(other : Long) : Long
public fun xor(other : Long) : Long
public fun inv() : Long
public override fun toDouble() : Double
public override fun toFloat() : Float
public override fun toLong() : Long
public override fun toInt() : Int
public override fun toChar() : Char
public override fun toShort() : Short
public override fun toByte() : Byte
public override fun hashCode() : Int
public override fun equals(other : Any?) : Boolean
}
public class Int : Number, Comparable<Int> {
public fun compareTo(other : Double) : Int
public fun compareTo(other : Float) : Int
public fun compareTo(other : Long) : Int
public override fun compareTo(other : Int) : Int
public fun compareTo(other : Short) : Int
public fun compareTo(other : Byte) : Int
public fun compareTo(other : Char) : Int
public fun plus(other : Double) : Double
public fun plus(other : Float) : Float
public fun plus(other : Long) : Long
public fun plus(other : Int) : Int
public fun plus(other : Short) : Int
public fun plus(other : Byte) : Int
public fun plus(other : Char) : Int
public fun minus(other : Double) : Double
public fun minus(other : Float) : Float
public fun minus(other : Long) : Long
public fun minus(other : Int) : Int
public fun minus(other : Short) : Int
public fun minus(other : Byte) : Int
public fun minus(other : Char) : Int
public fun times(other : Double) : Double
public fun times(other : Float) : Float
public fun times(other : Long) : Long
public fun times(other : Int) : Int
public fun times(other : Short) : Int
public fun times(other : Byte) : Int
public fun times(other : Char) : Int
public fun div(other : Double) : Double
public fun div(other : Float) : Float
public fun div(other : Long) : Long
public fun div(other : Int) : Int
public fun div(other : Short) : Int
public fun div(other : Byte) : Int
public fun div(other : Char) : Int
public fun mod(other : Double) : Double
public fun mod(other : Float) : Float
public fun mod(other : Long) : Long
public fun mod(other : Int) : Int
public fun mod(other : Short) : Int
public fun mod(other : Byte) : Int
public fun mod(other : Char) : Int
public fun rangeTo(other : Double) : DoubleRange
public fun rangeTo(other : Float) : FloatRange
public fun rangeTo(other : Long) : LongRange
public fun rangeTo(other : Int) : IntRange
public fun rangeTo(other : Short) : IntRange
public fun rangeTo(other : Byte) : IntRange
public fun rangeTo(other : Char) : IntRange
public fun inc() : Int
public fun dec() : Int
public fun plus() : Int
public fun minus() : Int
public fun shl(bits : Int) : Int
public fun shr(bits : Int) : Int
public fun ushr(bits : Int) : Int
public fun and(other : Int) : Int
public fun or(other : Int) : Int
public fun xor(other : Int) : Int
public fun inv() : Int
public override fun toDouble() : Double
public override fun toFloat() : Float
public override fun toLong() : Long
public override fun toInt() : Int
public override fun toChar() : Char
public override fun toShort() : Short
public override fun toByte() : Byte
public override fun hashCode() : Int
public override fun equals(other : Any?) : Boolean
}
public class Char : Number, Comparable<Char> {
public fun compareTo(other : Double) : Int
public fun compareTo(other : Float) : Int
public fun compareTo(other : Long) : Int
public fun compareTo(other : Int) : Int
public fun compareTo(other : Short) : Int
public override fun compareTo(other : Char) : Int
public fun compareTo(other : Byte) : Int
public fun plus(other : Double) : Double
public fun plus(other : Float) : Float
public fun plus(other : Long) : Long
public fun plus(other : Int) : Int
public fun plus(other : Short) : Int
public fun plus(other : Byte) : Int
// public fun plus(other : Char) : Int
public fun minus(other : Double) : Double
public fun minus(other : Float) : Float
public fun minus(other : Long) : Long
public fun minus(other : Int) : Int
public fun minus(other : Short) : Int
public fun minus(other : Byte) : Int
public fun minus(other : Char) : Int
public fun times(other : Double) : Double
public fun times(other : Float) : Float
public fun times(other : Long) : Long
public fun times(other : Int) : Int
public fun times(other : Short) : Int
public fun times(other : Byte) : Int
// public fun times(other : Char) : Int
public fun div(other : Double) : Double
public fun div(other : Float) : Float
public fun div(other : Long) : Long
public fun div(other : Int) : Int
public fun div(other : Short) : Int
public fun div(other : Byte) : Int
// public fun div(other : Char) : Int
public fun mod(other : Double) : Double
public fun mod(other : Float) : Float
public fun mod(other : Long) : Long
public fun mod(other : Int) : Int
public fun mod(other : Short) : Int
public fun mod(other : Byte) : Int
// public fun mod(other : Char) : Int
public fun rangeTo(other : Char) : CharRange
public fun inc() : Char
public fun dec() : Char
public fun plus() : Int
public fun minus() : Int
public override fun toDouble() : Double
public override fun toFloat() : Float
public override fun toLong() : Long
public override fun toInt() : Int
public override fun toChar() : Char
public override fun toShort() : Short
public override fun toByte() : Byte
public override fun hashCode() : Int
public override fun equals(other : Any?) : Boolean
}
public class Short : Number, Comparable<Short> {
public fun compareTo(other : Double) : Int
public fun compareTo(other : Float) : Int
public fun compareTo(other : Long) : Int
public fun compareTo(other : Int) : Int
public override fun compareTo(other : Short) : Int
public fun compareTo(other : Byte) : Int
public fun compareTo(other : Char) : Int
public fun plus(other : Double) : Double
public fun plus(other : Float) : Float
public fun plus(other : Long) : Long
public fun plus(other : Int) : Int
public fun plus(other : Short) : Int
public fun plus(other : Byte) : Int
public fun plus(other : Char) : Int
public fun minus(other : Double) : Double
public fun minus(other : Float) : Float
public fun minus(other : Long) : Long
public fun minus(other : Int) : Int
public fun minus(other : Short) : Int
public fun minus(other : Byte) : Int
public fun minus(other : Char) : Int
public fun times(other : Double) : Double
public fun times(other : Float) : Float
public fun times(other : Long) : Long
public fun times(other : Int) : Int
public fun times(other : Short) : Int
public fun times(other : Byte) : Int
public fun times(other : Char) : Int
public fun div(other : Double) : Double
public fun div(other : Float) : Float
public fun div(other : Long) : Long
public fun div(other : Int) : Int
public fun div(other : Short) : Int
public fun div(other : Byte) : Int
public fun div(other : Char) : Int
public fun mod(other : Double) : Double
public fun mod(other : Float) : Float
public fun mod(other : Long) : Long
public fun mod(other : Int) : Int
public fun mod(other : Short) : Int
public fun mod(other : Byte) : Int
public fun mod(other : Char) : Int
public fun rangeTo(other : Double) : DoubleRange
public fun rangeTo(other : Float) : FloatRange
public fun rangeTo(other : Long) : LongRange
public fun rangeTo(other : Int) : IntRange
public fun rangeTo(other : Short) : ShortRange
public fun rangeTo(other : Byte) : ShortRange
public fun rangeTo(other : Char) : ShortRange
public fun inc() : Short
public fun dec() : Short
public fun plus() : Short
public fun minus() : Short
public override fun toDouble() : Double
public override fun toFloat() : Float
public override fun toLong() : Long
public override fun toInt() : Int
public override fun toChar() : Char
public override fun toShort() : Short
public override fun toByte() : Byte
public override fun hashCode() : Int
public override fun equals(other : Any?) : Boolean
}
public class Byte : Number, Comparable<Byte> {
public fun compareTo(other : Double) : Int
public fun compareTo(other : Float) : Int
public fun compareTo(other : Long) : Int
public fun compareTo(other : Int) : Int
public fun compareTo(other : Short) : Int
public fun compareTo(other : Char) : Int
public override fun compareTo(other : Byte) : Int
public fun plus(other : Double) : Double
public fun plus(other : Float) : Float
public fun plus(other : Long) : Long
public fun plus(other : Int) : Int
public fun plus(other : Short) : Int
public fun plus(other : Byte) : Int
public fun plus(other : Char) : Int
public fun minus(other : Double) : Double
public fun minus(other : Float) : Float
public fun minus(other : Long) : Long
public fun minus(other : Int) : Int
public fun minus(other : Short) : Int
public fun minus(other : Byte) : Int
public fun minus(other : Char) : Int
public fun times(other : Double) : Double
public fun times(other : Float) : Float
public fun times(other : Long) : Long
public fun times(other : Int) : Int
public fun times(other : Short) : Int
public fun times(other : Byte) : Int
public fun times(other : Char) : Int
public fun div(other : Double) : Double
public fun div(other : Float) : Float
public fun div(other : Long) : Long
public fun div(other : Int) : Int
public fun div(other : Short) : Int
public fun div(other : Byte) : Int
public fun div(other : Char) : Int
public fun mod(other : Double) : Double
public fun mod(other : Float) : Float
public fun mod(other : Long) : Long
public fun mod(other : Int) : Int
public fun mod(other : Short) : Int
public fun mod(other : Byte) : Int
public fun mod(other : Char) : Int
public fun rangeTo(other : Double) : DoubleRange
public fun rangeTo(other : Float) : FloatRange
public fun rangeTo(other : Long) : LongRange
public fun rangeTo(other : Int) : IntRange
public fun rangeTo(other : Short) : ShortRange
public fun rangeTo(other : Byte) : ByteRange
public fun rangeTo(other : Char) : CharRange
public fun inc() : Byte
public fun dec() : Byte
public fun plus() : Byte
public fun minus() : Byte
public override fun toDouble() : Double
public override fun toFloat() : Float
public override fun toLong() : Long
public override fun toInt() : Int
public override fun toChar() : Char
public override fun toShort() : Short
public override fun toByte() : Byte
public override fun hashCode() : Int
public override fun equals(other : Any?) : Boolean
}
@@ -1,70 +0,0 @@
package jet
public trait Progression<N: Any>: Iterable<N> {
public val start: N
public val end: N
public val increment: Number
}
public class IntProgression(
public override val start: Int,
public override val end: Int,
public override val increment: Int
): Progression<Int> {
override fun iterator(): IntIterator
}
public class LongProgression(
public override val start: Long,
public override val end: Long,
public override val increment: Long
): Progression<Long> {
override fun iterator(): LongIterator
}
public class ByteProgression(
public override val start: Byte,
public override val end: Byte,
public override val increment: Int
): Progression<Byte> {
override fun iterator(): ByteIterator
}
public class ShortProgression(
public override val start: Short,
public override val end: Short,
public override val increment: Int
): Progression<Short> {
override fun iterator(): ShortIterator
}
public class CharProgression(
public override val start: Char,
public override val end: Char,
public override val increment: Int
): Progression<Char> {
override fun iterator(): CharIterator
}
public class FloatProgression(
public override val start: Float,
public override val end: Float,
public override val increment: Float
): Progression<Float> {
override fun iterator(): FloatIterator
}
public class DoubleProgression(
public override val start: Double,
public override val end: Double,
public override val increment: Double
): Progression<Double> {
override fun iterator(): DoubleIterator
}
-119
View File
@@ -1,119 +0,0 @@
package jet
public trait Range<in T: Comparable<T>> {
public val start: T
public val end: T
public fun contains(item : T): Boolean
}
public class IntRange(
public override val start: Int,
public override val end : Int
) : Range<Int>, Progression<Int> {
public override fun iterator() : IntIterator
public override fun contains(item: Int): Boolean
public override val increment: Int
public class object {
public val EMPTY: IntRange
}
}
public class LongRange(
public override val start: Long,
public override val end: Long
) : Range<Long>, Progression<Long> {
public override fun iterator(): LongIterator
public override fun contains(item: Long): Boolean
public override val increment: Long
public class object {
public val EMPTY: LongRange
}
}
public class ByteRange(
public override val start: Byte,
public override val end : Byte
): Range<Byte>, Progression<Byte> {
public override fun iterator(): ByteIterator
public override fun contains(item: Byte): Boolean
public override val increment: Int
public class object {
public val EMPTY: ByteRange
}
}
public class ShortRange(
public override val start: Short,
public override val end: Short
) : Range<Short>, Progression<Short> {
public override fun iterator(): ShortIterator
public override fun contains(item: Short): Boolean
public override val increment: Int
public class object {
public val EMPTY: ShortRange
}
}
public class CharRange(
public override val start: Char,
public override val end: Char
) : Range<Char>, Progression<Char> {
public override fun iterator(): CharIterator
public override fun contains(item: Char) : Boolean
public override val increment: Int
public class object {
public val EMPTY: CharRange
}
}
public class FloatRange(
public override val start: Float,
public override val end: Float
) : Range<Float>, Progression<Float> {
public override fun iterator(): FloatIterator
public override fun contains(item: Float): Boolean
public override val increment: Float
public class object {
public val EMPTY: FloatRange
}
}
public class DoubleRange(
public override val start: Double,
public override val end: Double
) : Range<Double>, Progression<Double> {
public override fun iterator() : DoubleIterator
public override fun contains(item: Double): Boolean
public override val increment: Double
public class object {
public val EMPTY: DoubleRange
}
}
-7
View File
@@ -1,7 +0,0 @@
package jet
public class Unit private () {
public class object {
public val VALUE: Unit
}
}
@@ -217,7 +217,7 @@ public class KotlinBuiltIns {
@TestOnly
private static File getInTestBuiltInPath(String path) {
return new File("compiler/frontend/builtins", path);
return new File("idea/builtinsSrc", path);
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -20,7 +20,6 @@ import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.progress.ProcessCanceledException;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.Comparing;
import com.intellij.openapi.util.SystemInfo;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.psi.PsiClass;
import com.intellij.psi.PsiElement;
@@ -50,7 +49,7 @@ public class LightClassUtil {
/**
* Checks whether the given file is loaded from the location where Kotlin's built-in classes are defined.
* As of today, this is compiler/frontend/builtins/jet directory and files such as Any.jet, Nothing.jet etc.
* As of today, this is idea/builtinsSrc/jet directory and files such as Any.jet, Nothing.jet etc.
*
* Used to skip JetLightClass creation for built-ins, because built-in classes have no Java counterparts
*/
@@ -61,7 +60,6 @@ public class LightClassUtil {
if (parent != null) {
try {
String jetVfsPathUrl = KotlinVfsUtil.convertFromUrl(KotlinBuiltIns.getBuiltInsDirUrl());
String fileDirVfsUrl = parent.getUrl();
if (jetVfsPathUrl.equals(fileDirVfsUrl)) {
return true;
@@ -78,19 +76,10 @@ public class LightClassUtil {
return false;
}
/*package*/ static void logErrorWithOSInfo(@Nullable Throwable cause, @NotNull FqName fqName, @Nullable VirtualFile virtualFile) {
String path = virtualFile == null ? "<null>" : virtualFile.getPath();
LOG.error(
"Could not generate LightClass for " + fqName + " declared in " + path + "\n" +
"built-ins dir URL is " + KotlinBuiltIns.getBuiltInsDirUrl() + "\n" +
"System: " + SystemInfo.OS_NAME + " " + SystemInfo.OS_VERSION + " Java Runtime: " + SystemInfo.JAVA_RUNTIME_VERSION,
cause);
}
@Nullable
/*package*/ static PsiClass findClass(@NotNull FqName fqn, @NotNull StubElement<?> stub) {
if (stub instanceof PsiClassStub && Comparing.equal(fqn.asString(), ((PsiClassStub) stub).getQualifiedName())) {
return (PsiClass)stub.getPsi();
return (PsiClass) stub.getPsi();
}
if (stub instanceof PsiClassStub || stub instanceof PsiFileStub) {
@@ -226,8 +215,8 @@ public class LightClassUtil {
private static PropertyAccessorsPsiMethods extractPropertyAccessors(
@NotNull JetDeclaration jetDeclaration,
@Nullable PsiMethod specialGetter, @Nullable PsiMethod specialSetter)
{
@Nullable PsiMethod specialGetter, @Nullable PsiMethod specialSetter
) {
PsiMethod getterWrapper = specialGetter;
PsiMethod setterWrapper = specialSetter;
@@ -290,5 +279,6 @@ public class LightClassUtil {
}
}
private LightClassUtil() {}
private LightClassUtil() {
}
}