1 | /* |
2 | * $Id: JavaFinalParamsVisitor.java,v 1.1.1.5 2004/05/25 20:23:28 hastings Exp $ |
3 | * |
4 | * (c) Copyright, Moebius Solutions, Inc., 2004 |
5 | * |
6 | * All Rights Reserved |
7 | * |
8 | * This material may be reproduced by or for the U. S. Government |
9 | * pursuant to the copyright license under the clause at |
10 | * DFARS 252.227-7014 (OCT 2001). |
11 | */ |
12 | |
13 | package com.moesol.generator; |
14 | |
15 | import java.io.IOException; |
16 | import java.io.Writer; |
17 | |
18 | import com.moesol.generator.core.ApplyException; |
19 | |
20 | /** |
21 | * @author robert |
22 | */ |
23 | public class JavaFinalParamsVisitor extends JavaParamsVisitor { |
24 | |
25 | /** |
26 | * @param out |
27 | */ |
28 | public JavaFinalParamsVisitor(Writer out) { |
29 | super(out); |
30 | } |
31 | |
32 | public void visitParamType(Class c, int nparam, Class paramType) |
33 | throws ApplyException |
34 | { |
35 | try { |
36 | out.write("final "); |
37 | super.visitParamType(c, nparam, paramType); |
38 | } catch (IOException e) { |
39 | throw new ApplyException(e); |
40 | } |
41 | } |
42 | |
43 | } |