1 // Copyright 2014 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 package org.chromium.base.annotations; 6 7 import java.lang.annotation.ElementType; 8 import java.lang.annotation.Retention; 9 import java.lang.annotation.RetentionPolicy; 10 import java.lang.annotation.Target; 11 12 /** 13 * @NativeCall is used by the JNI generator to create the necessary JNI bindings 14 * so a native function can be bound to a Java inner class. The native class for 15 * which the JNI method will be generated is specified by the first parameter. 16 */ 17 @Target(ElementType.METHOD) 18 @Retention(RetentionPolicy.CLASS) 19 public @interface NativeCall { 20 /* 21 * Value determines which native class the method should map to. 22 */ value()23 public String value() default ""; 24 } 25