001 package org.bridj.ann;
002
003 import java.lang.annotation.ElementType;
004 import java.lang.annotation.Retention;
005 import java.lang.annotation.RetentionPolicy;
006 import java.lang.annotation.Target;
007
008 /**
009 * Indicate the index of a constructor.<br>
010 * It is important that all constructors have an unique index that helps identify them, and that they call NativeObject's parent constructor with the same index.
011 * @author ochafik
012 */
013 @Retention(RetentionPolicy.RUNTIME)
014 @Target({ElementType.METHOD, ElementType.CONSTRUCTOR})
015 public @interface Constructor {
016 int value() default -1;
017 }