1 /* FOREGEJ - FOrmatting REfactoring GEnerating Java
2 *
3 * Copyright (C) 2003 Andreas Arrgard
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19 package com.octagroup.foregej.java.tools;
20 import com.octagroup.foregej.java.lang.ast.AST_CLASS_DEF;
21 import com.octagroup.foregej.java.lang.ast.AST_CTOR_DEF;
22 import com.octagroup.foregej.java.lang.ast.AST_INTERFACE_DEF;
23 import com.octagroup.foregej.java.lang.ast.AST_METHOD_DEF;
24 import com.octagroup.foregej.java.lang.ast.AST_VARIABLE_DEF;
25 import com.octagroup.foregej.java.lang.ast.CompilationUnit;
26 /***
27 * This is a generic tool that can be extended.
28 * <p>
29 * All the <code>process</code>methods returns true so that processing is
30 * forwarded to the next level.
31 * </p>
32 */
33 public class GenericTool implements Tool
34 {
35 /***
36 * @param cu
37 * @return
38 * @see
39 * com.octagroup.foregej.java.tools.Tool#process(com.octagroup.foregej.java.lang.ast.CompilationUnit)
40 */
41 public boolean process(CompilationUnit cu)
42 {
43 return true;
44 }
45 /***
46 * @param interfaze
47 * @return
48 * @see
49 * com.octagroup.foregej.java.tools.Tool#process(com.octagroup.foregej.java.lang.ast.AST_INTERFACE_DEF)
50 */
51 public boolean process(AST_INTERFACE_DEF interfaze)
52 {
53 return true;
54 }
55 /***
56 * @param clazz
57 * @return
58 * @see
59 * com.octagroup.foregej.java.tools.Tool#process(com.octagroup.foregej.java.lang.ast.AST_CLASS_DEF)
60 */
61 public boolean process(AST_CLASS_DEF clazz)
62 {
63 return true;
64 }
65 /***
66 * @param method
67 * @see
68 * com.octagroup.foregej.java.tools.Tool#process(com.octagroup.foregej.java.lang.ast.AST_METHOD_DEF)
69 */
70 public void process(AST_METHOD_DEF method)
71 {
72 }
73 /***
74 * @param method
75 * @see
76 * com.octagroup.foregej.java.tools.Tool#process(com.octagroup.foregej.java.lang.ast.AST_VARIABLE_DEF)
77 */
78 public void process(AST_VARIABLE_DEF method)
79 {
80 }
81 /***
82 * @param ctor
83 * @see
84 * com.octagroup.foregej.java.tools.Tool#process(com.octagroup.foregej.java.lang.ast.AST_CTOR_DEF)
85 */
86 public void process(AST_CTOR_DEF ctor)
87 {
88 }
89 }
This page was automatically generated by Maven