1d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet/*
2d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet * Copyright (C) 2012 The Android Open Source Project
3d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet *
4d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet * Licensed under the Apache License, Version 2.0 (the "License");
5d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet * you may not use this file except in compliance with the License.
6d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet * You may obtain a copy of the License at
7d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet *
8d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet *      http://www.apache.org/licenses/LICENSE-2.0
9d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet *
10d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet * Unless required by applicable law or agreed to in writing, software
11d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet * distributed under the License is distributed on an "AS IS" BASIS,
12d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet * See the License for the specific language governing permissions and
14d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet * limitations under the License.
15d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet */
16d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohetpackage android.annotation;
17d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet
18d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohetimport static java.lang.annotation.ElementType.CONSTRUCTOR;
193f1ccec743cb3e45f46a9591dd06040fa1dce0fdTor Norbyeimport static java.lang.annotation.ElementType.FIELD;
20d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohetimport static java.lang.annotation.ElementType.METHOD;
21d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohetimport static java.lang.annotation.ElementType.TYPE;
22d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet
23d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohetimport java.lang.annotation.Retention;
24d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohetimport java.lang.annotation.RetentionPolicy;
25d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohetimport java.lang.annotation.Target;
26d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet
27d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet/** Indicates that Lint should treat this type as targeting a given API level, no matter what the
28d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet    project target is. */
293f1ccec743cb3e45f46a9591dd06040fa1dce0fdTor Norbye@Target({TYPE, METHOD, CONSTRUCTOR, FIELD})
30d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet@Retention(RetentionPolicy.CLASS)
31d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohetpublic @interface TargetApi {
32d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet    /**
33d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet     * This sets the target api level for the type..
34d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet     */
35d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet    int value();
36d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet}
37