|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
DefaultQDoxAttributeInterceptor.java | - | 100% | 100% | 100% |
|
1 |
/*
|
|
2 |
* Copyright (C) The MetaClass Group. All rights reserved.
|
|
3 |
*
|
|
4 |
* This software is published under the terms of the Spice
|
|
5 |
* Software License version 1.1, a copy of which has been included
|
|
6 |
* with this distribution in the LICENSE.txt file.
|
|
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 | 10 |
public Attribute processClassAttribute( final JavaClass clazz,
|
33 |
final Attribute attribute ) |
|
34 |
{ |
|
35 | 10 |
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 | 4 |
public Attribute processFieldAttribute( final JavaField field,
|
46 |
final Attribute attribute ) |
|
47 |
{ |
|
48 | 4 |
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 | 4 |
public Attribute processMethodAttribute( final JavaMethod method,
|
59 |
final Attribute attribute ) |
|
60 |
{ |
|
61 | 4 |
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 | 22 |
public Attribute[] processClassAttributes( final JavaClass clazz,
|
72 |
final Attribute[] attributes ) |
|
73 |
{ |
|
74 | 22 |
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 | 10 |
public Attribute[] processFieldAttributes( final JavaField field,
|
85 |
final Attribute[] attributes ) |
|
86 |
{ |
|
87 | 10 |
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 | 12 |
public Attribute[] processMethodAttributes( final JavaMethod method,
|
98 |
final Attribute[] attributes ) |
|
99 |
{ |
|
100 | 12 |
return attributes;
|
101 |
} |
|
102 |
} |
|
103 |
|
|