1
2
3
4
5
6
7
8 package org.codehaus.metaclass.tools.qdox;
9
10 import com.thoughtworks.qdox.model.JavaClass;
11 import com.thoughtworks.qdox.model.JavaField;
12 import com.thoughtworks.qdox.model.JavaMethod;
13 import org.codehaus.metaclass.model.Attribute;
14
15 /***
16 * A base implementation of QDoxAttributeInterceptor that
17 * just returns original values parsed from source files.
18 *
19 * @author Peter Donald
20 * @version $Revision: 1.3 $ $Date: 2003/11/27 08:08:04 $
21 */
22 public class DefaultQDoxAttributeInterceptor
23 implements QDoxAttributeInterceptor
24 {
25 /***
26 * Return unaltered attributes for artefact.
27 *
28 * @param clazz the JavaClass
29 * @param attribute the attribute
30 * @return the original attribute
31 */
32 public Attribute processClassAttribute( final JavaClass clazz,
33 final Attribute attribute )
34 {
35 return attribute;
36 }
37
38 /***
39 * Return unaltered attribute for artefact.
40 *
41 * @param field the JavaField
42 * @param attribute the attribute
43 * @return the original attribute
44 */
45 public Attribute processFieldAttribute( final JavaField field,
46 final Attribute attribute )
47 {
48 return attribute;
49 }
50
51 /***
52 * Return unaltered attribute for artefact.
53 *
54 * @param method the JavaMethod
55 * @param attribute the attribute
56 * @return the original attribute
57 */
58 public Attribute processMethodAttribute( final JavaMethod method,
59 final Attribute attribute )
60 {
61 return attribute;
62 }
63
64 /***
65 * Return unaltered attributes for artefact.
66 *
67 * @param clazz the JavaClass
68 * @param attributes the attributes
69 * @return the original attributes
70 */
71 public Attribute[] processClassAttributes( final JavaClass clazz,
72 final Attribute[] attributes )
73 {
74 return attributes;
75 }
76
77 /***
78 * Return unaltered attributes for artefact.
79 *
80 * @param field the JavaField
81 * @param attributes the attributes
82 * @return the original attributes
83 */
84 public Attribute[] processFieldAttributes( final JavaField field,
85 final Attribute[] attributes )
86 {
87 return attributes;
88 }
89
90 /***
91 * Return unaltered attributes for artefact.
92 *
93 * @param method the JavaMethod
94 * @param attributes the attributes
95 * @return the original attributes
96 */
97 public Attribute[] processMethodAttributes( final JavaMethod method,
98 final Attribute[] attributes )
99 {
100 return attributes;
101 }
102 }