1 package attrib4j.cfparse;
2
3 import java.io.InputStream;
4
5 import attrib4j.AttributeException;
6 import attrib4j.AttributeExtractor;
7 import attrib4j.AttributeFactory;
8 import attrib4j.ClassAnnotator;
9
10 /***
11 * The CFParse implementation of the AttributeFactory.
12 *
13 * @author <a href="mailto:mpollack@speakeasy.net">Mark Pollack</a>
14 * @version $Revision: 1.3 $ $Date: 2003/03/22 17:56:20 $
15 */
16
17 public class CFParseFactory extends AttributeFactory {
18
19 /***
20 * A do nothing constructor.
21 *
22 */
23 public CFParseFactory() {
24 }
25
26 /***
27 * Method to return a BCEL implementation of a {@link ClassAnnotator}.
28 *
29 * @param InputStream initialized with .class file.
30 * @param classfileName not used in this implementation.
31 * @return a value of type 'ClassAnnotator'
32 * @exception AttributeException if a suitable <code>AttributeFactor</code>
33 * instance cannot be returned
34 */
35 public ClassAnnotator getClassAnnotator(
36 InputStream is,
37 String classfileName)
38 throws AttributeException {
39
40 return new CFParseClassAnnotator(is);
41 }
42
43 /***
44 * Method to return a BCEL implementation of {@link AttributeExtractor}.
45 *
46 * @exception AttributeException if a <code>AttributeException</code>
47 * instance cannot be returned
48 */
49 public AttributeExtractor getAttributeExtractor()
50 throws AttributeException {
51
52 return new CFParseAttributeExtractor();
53 }
54
55 } // CFParseFactory
This page was automatically generated by Maven