Browse Source

Cleanup

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@651540 13f79535-47bb-0310-9956-ffa450edef68
pull/37/head
Jeremias Maerki 16 years ago
parent
commit
4082fea30c

+ 2
- 3
src/codegen/java/org/apache/fop/tools/EventProducerCollector.java View File

for (int i = 0, c = classes.length; i < c; i++) { for (int i = 0, c = classes.length; i < c; i++) {
JavaClass clazz = classes[i]; JavaClass clazz = classes[i];
if (clazz.isInterface() && implementsInterface(clazz, CLASSNAME_EVENT_PRODUCER)) { if (clazz.isInterface() && implementsInterface(clazz, CLASSNAME_EVENT_PRODUCER)) {
processEventProducerInterface(clazz, src.getName());
processEventProducerInterface(clazz);
} }
} }
} }
/** /**
* Processes an EventProducer interface and creates an EventProducerModel from it. * Processes an EventProducer interface and creates an EventProducerModel from it.
* @param clazz the EventProducer interface * @param clazz the EventProducer interface
* @param javaFilename the filename of the Java source of the interface
* @throws EventConventionException if the event producer conventions are violated * @throws EventConventionException if the event producer conventions are violated
* @throws ClassNotFoundException if a required class cannot be found * @throws ClassNotFoundException if a required class cannot be found
*/ */
protected void processEventProducerInterface(JavaClass clazz, String javaFilename)
protected void processEventProducerInterface(JavaClass clazz)
throws EventConventionException, ClassNotFoundException { throws EventConventionException, ClassNotFoundException {
EventProducerModel prodMeta = new EventProducerModel(clazz.getFullyQualifiedName()); EventProducerModel prodMeta = new EventProducerModel(clazz.getFullyQualifiedName());
JavaMethod[] methods = clazz.getMethods(true); JavaMethod[] methods = clazz.getMethods(true);

Loading…
Cancel
Save