Introduced @KotlinSignature annotation to be used on methods.

This commit is contained in:
Evgeny Gerashchenko
2012-06-01 21:35:42 +04:00
parent 6e3c02b695
commit 43e83956cc
2 changed files with 33 additions and 1 deletions
@@ -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() {
}
}
@@ -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();
}