net.vleu.visitomatic
Annotation Type ToVisit
@Documented
@Retention(value=RUNTIME)
@Target(value={FIELD,METHOD})
public @interface ToVisit
Those fields or methods, part of a Visitable
, are visited by a
Visitor
.
The order in which elements are visited depend on the
position()
attribute.
- See Also:
position()
,
Visitable
Required Element Summary |
int |
position
The position into which to visit this field or method. |
position
public abstract int position
- The position into which to visit this field or method. The lowest positions
are visited first.
Two elements (method or field) cannot share a single position.
Positions must be consecutive numbers starting from 0.