001 /* 002 * Copyright 2010-2013 JetBrains s.r.o. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 017 package org.jetbrains.jet.lang.resolve.java; 018 019 import jet.KotlinClass; 020 import jet.KotlinPackage; 021 import jet.runtime.typeinfo.KotlinSignature; 022 import org.jetbrains.annotations.NotNull; 023 import org.jetbrains.jet.lang.resolve.name.Name; 024 import org.jetbrains.jet.rt.annotation.AssertInvisibleInResolver; 025 026 public final class JvmAnnotationNames { 027 public static final JvmClassName KOTLIN_CLASS = JvmClassName.byClass(KotlinClass.class); 028 029 public static final JvmClassName KOTLIN_PACKAGE = JvmClassName.byClass(KotlinPackage.class); 030 031 public static final String ABI_VERSION_FIELD_NAME = "abiVersion"; 032 033 public static final String DATA_FIELD_NAME = "data"; 034 @Deprecated 035 public static final JvmClassName OLD_JET_CLASS_ANNOTATION = JvmClassName.byFqNameWithoutInnerClasses("jet.runtime.typeinfo.JetClass"); 036 @Deprecated 037 public static final JvmClassName OLD_JET_PACKAGE_CLASS_ANNOTATION = JvmClassName.byFqNameWithoutInnerClasses("jet.runtime.typeinfo.JetPackageClass"); 038 039 public static final JvmClassName ASSERT_INVISIBLE_IN_RESOLVER = JvmClassName.byClass(AssertInvisibleInResolver.class); 040 041 public static final JvmClassName KOTLIN_SIGNATURE = JvmClassName.byClass(KotlinSignature.class); 042 043 public static final Name KOTLIN_SIGNATURE_VALUE_FIELD_NAME = Name.identifier("value"); 044 045 public static final JvmClassName JETBRAINS_NOT_NULL_ANNOTATION = JvmClassName.byClass(NotNull.class); 046 047 public static final JvmClassName JETBRAINS_MUTABLE_ANNOTATION = JvmClassName.byFqNameWithoutInnerClasses("org.jetbrains.annotations.Mutable"); 048 049 public static final JvmClassName JETBRAINS_READONLY_ANNOTATION = JvmClassName.byFqNameWithoutInnerClasses("org.jetbrains.annotations.ReadOnly"); 050 051 private JvmAnnotationNames() { 052 } 053 }