attrib4j.bcel
Class BCELFactory

java.lang.Object
  |
  +--attrib4j.AttributeFactory
        |
        +--attrib4j.bcel.BCELFactory

public class BCELFactory
extends AttributeFactory

The BCEL implementation of the AttributeFactory.

Version:
$Id: BCELFactory.java,v 1.4 2003/04/24 05:41:54 markpollack Exp $
Author:
Mark Pollack

Field Summary
 
Fields inherited from class attrib4j.AttributeFactory
factories, FACTORY_DEFAULT, FACTORY_PROPERTIES, FACTORY_PROPERTY, SERVICE_ID
 
Constructor Summary
BCELFactory()
          A do nothing constructor.
 
Method Summary
 AttributeExtractor getAttributeExtractor()
          Method to return a BCEL implementation of AttributeExtractor.
 ClassAnnotator getClassAnnotator(java.io.InputStream is, java.lang.String classfileName)
          Method to return a BCEL implementation of a ClassAnnotator.
 
Methods inherited from class attrib4j.AttributeFactory
getContextClassLoader, getFactory, newFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BCELFactory

public BCELFactory()
A do nothing constructor.

Method Detail

getClassAnnotator

public ClassAnnotator getClassAnnotator(java.io.InputStream is,
                                        java.lang.String classfileName)
                                 throws AttributeException
Method to return a BCEL implementation of a ClassAnnotator.

Specified by:
getClassAnnotator in class AttributeFactory
Parameters:
classfileName - the name of the .class file.
Returns:
a value of type 'ClassAnnotator'
Throws:
AttributeException - if could not load the classfile from the input stream when creating a ClassAnnotator.

getAttributeExtractor

public AttributeExtractor getAttributeExtractor()
                                         throws AttributeException
Method to return a BCEL implementation of AttributeExtractor.

Specified by:
getAttributeExtractor in class AttributeFactory
Throws:
AttributeException - will not be thrown in this impl.


Copyright © 2002-2003 Mark Pollack. All Rights Reserved.