gate.jape
Class Transducer
java.lang.Object
|
+--gate.jape.Transducer
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- MultiPhaseTransducer, Rule, SinglePhaseTransducer
- public abstract class Transducer
- extends Object
- implements Serializable
Represents a single or multiphase transducer.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
DEBUG
private static final boolean DEBUG
- Debug flag
name
protected String name
- Name of this transducer.
baseURL
private URL baseURL
progressListeners
private transient Vector progressListeners
statusListeners
private transient Vector statusListeners
Transducer
public Transducer()
getName
public String getName()
- Get the phase name of this transducer
transduce
public abstract void transduce(Document doc,
AnnotationSet inputAS,
AnnotationSet outputAS)
throws JapeException
- Transduce a document.
finish
public abstract void finish()
- Finish: replace dynamic data structures with Java arrays; called
after parsing.
cleanUp
public abstract void cleanUp()
- Clean up (delete action class files, for e.g.).
toString
public abstract String toString(String pad)
- Create a string representation of the object with padding.
setBaseURL
public void setBaseURL(URL newBaseURL)
getBaseURL
public URL getBaseURL()
removeProgressListener
public void removeProgressListener(ProgressListener l)
addProgressListener
public void addProgressListener(ProgressListener l)
fireProgressChanged
protected void fireProgressChanged(int e)
- This property affects the Appelt style of rules application.
If true then the longest match will be fired otherwise the shortest will
be used. By default it is true.
fireProcessFinished
protected void fireProcessFinished()
removeStatusListener
public void removeStatusListener(StatusListener l)
addStatusListener
public void addStatusListener(StatusListener l)
fireStatusChanged
protected void fireStatusChanged(String e)