28 import org.jemmy.interfaces.TypeControlInterface;
29
30 /**
31 * This annotation should be used to annotate methods which turn a wrap
32 * into a control interface. It is, then, used in <code>Wrap.as(*)</code> and
33 * <code>Wrap.is(*)</code> methods and in <code>*Dock.as*()</code> methods.
34 * @see Wrap#as(java.lang.Class)
35 * @see Wrap#as(java.lang.Class, java.lang.Class)
36 * @see Wrap#is(java.lang.Class)
37 * @see Wrap#is(java.lang.Class, java.lang.Class)
38 * @author shura
39 */
40 @Retention(RetentionPolicy.RUNTIME)
41 @Target(ElementType.METHOD)
42 @Documented
43 public @interface As {
44 /**
45 * This should point out what is the encapsulated type for
46 * <code>TypeControlInterface</code>
47 * @see TypeControlInterface
48 * @return
49 */
50 Class value() default Void.class;
51 }
|
28 import org.jemmy.interfaces.TypeControlInterface;
29
30 /**
31 * This annotation should be used to annotate methods which turn a wrap
32 * into a control interface. It is, then, used in <code>Wrap.as(*)</code> and
33 * <code>Wrap.is(*)</code> methods and in <code>*Dock.as*()</code> methods.
34 * @see Wrap#as(java.lang.Class)
35 * @see Wrap#as(java.lang.Class, java.lang.Class)
36 * @see Wrap#is(java.lang.Class)
37 * @see Wrap#is(java.lang.Class, java.lang.Class)
38 * @author shura
39 */
40 @Retention(RetentionPolicy.RUNTIME)
41 @Target(ElementType.METHOD)
42 @Documented
43 public @interface As {
44 /**
45 * This should point out what is the encapsulated type for
46 * <code>TypeControlInterface</code>
47 * @see TypeControlInterface
48 * @return todo document
49 */
50 Class value() default Void.class;
51 }
|