Annotation Type VisitorPattern


  • @Retention(RUNTIME)
    @Target(TYPE)
    @Documented
    @DesignPattern(type=BEHAVIORAL,
                   related={CompositePattern.class,InterpreterPattern.class})
    public @interface VisitorPattern
    Intent [GoF, pg 331]: Represent an operation to be performed on the elements of an object structure. Visitor lets you define a new operation without changing the classes of the elements on which it operates.

    Visitor Structure

    Since:
    2010-08-09
    Author:
    Heinz Kabutz
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String comment  
      java.lang.Class[] participants  
    • Element Detail

      • participants

        java.lang.Class[] participants
        Default:
        {}
      • comment

        java.lang.String comment
        Default:
        ""