1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 package org.mozilla.javascript.annotations; 6 7 import java.lang.annotation.*; 8 9 /** 10 * An annotation that marks a Java method as JavaScript setter. This can 11 * be used as an alternative to the <code>jsSet_</code> prefix desribed in 12 * {@link org.mozilla.javascript.ScriptableObject#defineClass(org.mozilla.javascript.Scriptable, java.lang.Class)}. 13 */ 14 @Documented 15 @Retention(RetentionPolicy.RUNTIME) 16 @Target(ElementType.METHOD) 17 public @interface JSSetter { value()18 String value() default ""; 19 } 20