• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2018 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 package org.jni_zero;
5 
6 import java.lang.annotation.ElementType;
7 import java.lang.annotation.Retention;
8 import java.lang.annotation.RetentionPolicy;
9 import java.lang.annotation.Target;
10 
11 @Target(ElementType.TYPE)
12 @Retention(RetentionPolicy.SOURCE)
13 public @interface NativeMethods {
14     /**
15      * Tells the build system to call a different GEN_JNI, prefixed by the value we put here. This
16      * should only be used for feature modules where we need a different GEN_JNI. For example, if
17      * you did @NativeMethods("dfmname"), this would call into dfmname_GEN_JNI.java.
18      */
value()19     public String value() default "";
20 }
21