001/* 002 * Licensed under the Apache License, Version 2.0 (the "License"); 003 * you may not use this file except in compliance with the License. 004 * You may obtain a copy of the License at 005 * 006 * http://www.apache.org/licenses/LICENSE-2.0 007 * 008 * Unless required by applicable law or agreed to in writing, software 009 * distributed under the License is distributed on an "AS IS" BASIS, 010 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 011 * See the License for the specific language governing permissions and 012 * limitations under the License. 013 */ 014 015package com.google.j2objc.annotations; 016 017import java.lang.annotation.Documented; 018import java.lang.annotation.ElementType; 019import java.lang.annotation.Retention; 020import java.lang.annotation.RetentionPolicy; 021import java.lang.annotation.Target; 022 023/** 024 * Annotation that specifies the level of reflection support for a particular 025 * class. 026 * 027 * @author Keith Stanger 028 */ 029@Documented 030@Target({ ElementType.TYPE, ElementType.PACKAGE }) 031@Retention(RetentionPolicy.SOURCE) 032public @interface ReflectionSupport { 033 034 /** 035 * Enumerates the available levels of reflection support. 036 */ 037 enum Level { 038 /* 039 * No metadata is emitted, so reflection support is limited to the 040 * information that can be obtained from the Objective-C runtime. 041 */ 042 NATIVE_ONLY, 043 /* 044 * Additional metadata is emitted, allowing for full reflection support. 045 */ 046 FULL 047 } 048 049 Level value(); 050}