Package org.apache.fop.tools
Class EventProducerCollector
java.lang.Object
org.apache.fop.tools.EventProducerCollector
Finds EventProducer interfaces and builds the event model for them.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate EventMethodModel
createMethodModel
(com.thoughtworks.qdox.model.JavaMethod method) Returns the event model that has been accumulated.private boolean
implementsInterface
(com.thoughtworks.qdox.model.JavaClass clazz, String intf) protected void
processEventProducerInterface
(com.thoughtworks.qdox.model.JavaClass clazz) Processes an EventProducer interface and creates an EventProducerModel from it.boolean
Scans a file and processes it if it extends theEventProducer
interface.
-
Field Details
-
CLASSNAME_EVENT_PRODUCER
-
PRIMITIVE_MAP
-
models
-
-
Constructor Details
-
EventProducerCollector
EventProducerCollector()Creates a new EventProducerCollector.
-
-
Method Details
-
scanFile
public boolean scanFile(File src) throws IOException, EventConventionException, ClassNotFoundException Scans a file and processes it if it extends theEventProducer
interface.- Parameters:
src
- the source file (a Java source file)- Returns:
- true if the file contained an EventProducer interface
- Throws:
IOException
- if an I/O error occursEventConventionException
- if the EventProducer conventions are violatedClassNotFoundException
- if a required class cannot be found
-
implementsInterface
-
processEventProducerInterface
protected void processEventProducerInterface(com.thoughtworks.qdox.model.JavaClass clazz) throws EventConventionException, ClassNotFoundException Processes an EventProducer interface and creates an EventProducerModel from it.- Parameters:
clazz
- the EventProducer interface- Throws:
EventConventionException
- if the event producer conventions are violatedClassNotFoundException
- if a required class cannot be found
-
createMethodModel
private EventMethodModel createMethodModel(com.thoughtworks.qdox.model.JavaMethod method) throws EventConventionException, ClassNotFoundException -
getModels
Returns the event model that has been accumulated.- Returns:
- the event model.
-