Skip to contentPackage: GenClassVisitorException
GenClassVisitorException
Coverage
      1: package de.fhdw.wtf.generator.java.visitor;
2: 
3: import de.fhdw.wtf.generator.java.generatorModel.GenClassClass;
4: import de.fhdw.wtf.generator.java.generatorModel.GenInterfaceClass;
5: import de.fhdw.wtf.generator.java.generatorModel.GenPrimitiveClass;
6: 
7: /**
8:  * This visitor handles all GenClass-types. Maybe throws an exception.
9:  * 
10:  * @param <Y>
11:  *            The type of exception that can be thrown by handle-methods.
12:  */
13: public interface GenClassVisitorException<Y extends Exception> {
14:         
15:         /**
16:          * Handle method for objects of GenClassClass-type.
17:          * 
18:          * @param classClass
19:          *            GenClassClass to handle.
20:          * @throws Y
21:          *             The exception that is thrown while handling.
22:          */
23:         void handle(GenClassClass classClass) throws Y;
24:         
25:         /**
26:          * Handle method for objects of GenInterfaceClass-type.
27:          * 
28:          * @param interfaceClass
29:          *            GenInterfaceClass to handle.
30:          * @throws Y
31:          *             The exception that is thrown while handling.
32:          */
33:         void handle(GenInterfaceClass interfaceClass) throws Y;
34:         
35:         /**
36:          * Handle method for objects of GenPrimitiveClass-type.
37:          * 
38:          * @param primitiveClass
39:          *            GenPrimitiveClass to handle.
40:          * @throws Y
41:          *             The exception that is thrown while handling.
42:          */
43:         void handle(GenPrimitiveClass primitiveClass) throws Y;
44: }