diff --git a/compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/JvmStdlibNames.java b/compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/JvmStdlibNames.java index 0d93f3c838f..9f7cd105317 100644 --- a/compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/JvmStdlibNames.java +++ b/compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/JvmStdlibNames.java @@ -17,6 +17,7 @@ package org.jetbrains.jet.lang.resolve.java; import jet.runtime.typeinfo.JetConstructor; +import jet.runtime.typeinfo.KotlinSignature; /** * @author Stepan Koltsov @@ -68,7 +69,9 @@ public class JvmStdlibNames { public static final JvmClassName ASSERT_INVISIBLE_IN_RESOLVER = new JvmClassName("org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver"); - + public static final JvmClassName KOTLIN_SIGNATURE = new JvmClassName(KotlinSignature.class.getName()); + public static final String KOTLIN_SIGNATURE_VALUE_METHOD = "value"; + private JvmStdlibNames() { } } diff --git a/runtime/src/jet/runtime/typeinfo/KotlinSignature.java b/runtime/src/jet/runtime/typeinfo/KotlinSignature.java new file mode 100644 index 00000000000..616f8438f14 --- /dev/null +++ b/runtime/src/jet/runtime/typeinfo/KotlinSignature.java @@ -0,0 +1,29 @@ +/* + * Copyright 2010-2012 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; + +/** + * @author Evgeny Gerashchenko + * @since 5/23/12 + */ +@Target({ElementType.METHOD, ElementType.TYPE, ElementType.CONSTRUCTOR}) +public @interface KotlinSignature { + String value(); +}