KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > spoon > reflect > visitor > Child


1 package spoon.reflect.visitor;
2
3 import java.lang.annotation.ElementType JavaDoc;
4 import java.lang.annotation.Target JavaDoc;
5
6 /**
7  * This annotation defines a method that contains children of an element of the
8  * meta model. It is used for the automatic generation of visitors of spoon
9  * metamodel elements.
10  *
11  */

12 @Target JavaDoc( { ElementType.METHOD })
13 public @interface Child {
14     /**
15      * The ordering of the child relatively to the other children of the parent
16      * node. Children will be scanned in the declared order.
17      */

18     int order() default 0;
19 }
20
Popular Tags