public abstract class AbstractRegionDiscoverer2<T> extends AbstractModelDiscoverer<T> implements ISourceRegionNotifier<T>
SourceVisitListener| Constructor and Description | 
|---|
| AbstractRegionDiscoverer2() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addSourceVisitListener(SourceVisitListener sourceVisitListener)Add a listener to the list of listener | 
| java.util.List<SourceVisitListener> | getSourceVisitListeners()Return the list of  SourceVisitListeners | 
| void | notifySourceRegionVisited(java.lang.String filePath,
                         int startOffset,
                         int endOffset,
                         EObject targetNode)Notify all listeners that a source region has been visited This method allows not to indicate
 the startLine and endLine and automatically put them to -1 | 
| void | notifySourceRegionVisited(java.lang.String filePath,
                         int startOffset,
                         int endOffset,
                         int startLine,
                         int endLine,
                         EObject targetNode)Notify all listeners that a source region has been visited | 
| void | removeSourceVisitListener(SourceVisitListener sourceVisitListener)Remove the sourceVisitListener from the list of listeners | 
discoverElement, getDefaultTargetURI, getTargetModel, getTargetURI, setSerializeTarget, setTargetModel, setTargetURIisAFolder, isAJavaProject, isAnIFileWithExtension, isAProject, setRefreshSourceBeforeDiscoveryequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisApplicableTopublic final void notifySourceRegionVisited(java.lang.String filePath,
                                            int startOffset,
                                            int endOffset,
                                            int startLine,
                                            int endLine,
                                            EObject targetNode)
ISourceRegionNotifiernotifySourceRegionVisited in interface ISourceRegionNotifier<T>filePath - The path of the parent compilation unitstartOffset - Start offset of the source code regionendOffset - End offset of the source code regionstartLine - First line of the source code regionendLine - Last line of the source code regiontargetNode - The corresponding model elementpublic final void notifySourceRegionVisited(java.lang.String filePath,
                                            int startOffset,
                                            int endOffset,
                                            EObject targetNode)
ISourceRegionNotifiernotifySourceRegionVisited in interface ISourceRegionNotifier<T>filePath - The path of the parent compilation unitstartOffset - Start offset of the source code regionendOffset - End offset of the source code regiontargetNode - The corresponding model elementpublic final void addSourceVisitListener(SourceVisitListener sourceVisitListener)
ISourceRegionNotifieraddSourceVisitListener in interface ISourceRegionNotifier<T>public final void removeSourceVisitListener(SourceVisitListener sourceVisitListener)
ISourceRegionNotifierremoveSourceVisitListener in interface ISourceRegionNotifier<T>public final java.util.List<SourceVisitListener> getSourceVisitListeners()
ISourceRegionNotifierSourceVisitListenersgetSourceVisitListeners in interface ISourceRegionNotifier<T>SourceVisitListeners