org.extex.interpreter.interaction
Interface InteractionVisitor<A1,A2,A3>

Type Parameters:
A1 - the type of the first argument
A2 - the type of the second argument
A3 - the type of the third argument

public interface InteractionVisitor<A1,A2,A3>

This interface describes a visitor for interaction modes. With the help of this interface the visitor pattern can be implemented.

The user of the visitor pattern has to provide an implementation of this interface. Then the visit method is invoked and the caller is forwarded to the appropriate visit method in the visitor.

Consider we have a mode constant at hand which is in fact a batch mode and we invokes

   boolean boo = mode.visit(visitor, a, b, c);
 
then the following method in the object visitor is used:
   visitBatchmode(visitor, a, b, c)
 

Version:
$Revision: 4726 $
Author:
Gerd Neugebauer

Method Summary
 boolean visitBatchmode(A1 arg1, A2 arg2, A3 arg3)
          Invoke the method in case of a batchmode interaction.
 boolean visitErrorstopmode(A1 arg1, A2 arg2, A3 arg3)
          Invoke the method in case of a error-stop mode interaction.
 boolean visitNonstopmode(A1 arg1, A2 arg2, A3 arg3)
          Invoke the method in case of a non-stop mode interaction.
 boolean visitScrollmode(A1 arg1, A2 arg2, A3 arg3)
          Invoke the method in case of a scroll mode interaction.
 

Method Detail

visitBatchmode

boolean visitBatchmode(A1 arg1,
                       A2 arg2,
                       A3 arg3)
                       throws GeneralException
Invoke the method in case of a batchmode interaction.

Parameters:
arg1 - the first argument
arg2 - the second argument
arg3 - the third argument
Returns:
a boolean indicator
Throws:
GeneralException - in case of an error

visitNonstopmode

boolean visitNonstopmode(A1 arg1,
                         A2 arg2,
                         A3 arg3)
                         throws GeneralException
Invoke the method in case of a non-stop mode interaction.

Parameters:
arg1 - the first argument
arg2 - the second argument
arg3 - the third argument
Returns:
a boolean indicator
Throws:
GeneralException - in case of an error

visitScrollmode

boolean visitScrollmode(A1 arg1,
                        A2 arg2,
                        A3 arg3)
                        throws GeneralException
Invoke the method in case of a scroll mode interaction.

Parameters:
arg1 - the first argument
arg2 - the second argument
arg3 - the third argument
Returns:
a boolean indicator
Throws:
GeneralException - in case of an error

visitErrorstopmode

boolean visitErrorstopmode(A1 arg1,
                           A2 arg2,
                           A3 arg3)
                           throws GeneralException
Invoke the method in case of a error-stop mode interaction.

Parameters:
arg1 - the first argument
arg2 - the second argument
arg3 - the third argument
Returns:
a boolean indicator
Throws:
GeneralException - in case of an error