org.eclipse.modisco.kdm.source.extension.discovery
Class AbstractRegionDiscoverer

java.lang.Object
  extended by org.eclipse.modisco.kdm.source.extension.discovery.AbstractRegionDiscoverer
All Implemented Interfaces:
Discoverer

Deprecated. use AbstractRegionDiscoverer2 with the new discovery framework

@Deprecated
public abstract class AbstractRegionDiscoverer
extends java.lang.Object
implements Discoverer

This abstract discoverer should be reused for each new leaf discoverer which visits some language source code, in order to have the capability to notify the visit of source regions with a generic mechanism. Composite discoverers should not inherit from this class but rather listen to leaf discoverers in using the proposed listening API. See Help Contents or http://wiki.eclipse.org/MoDisco/Components/KDMSourceExtension See also SourceVisitListener


Constructor Summary
AbstractRegionDiscoverer()
          Deprecated.  
 
Method Summary
 void addSourceVisitListener(SourceVisitListener sourceVisitListener)
          Deprecated. Add a listener to the list of listener
 java.util.List<SourceVisitListener> getListSourceVisitListener()
          Deprecated. Return the list of sourceVisitListener
 void notifyRegionSourceVisit(java.lang.String filePath, int startPosition, int endPosition, EObject targetNode)
          Deprecated. Notify all the 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 notifyRegionSourceVisit(java.lang.String filePath, int startPosition, int endPosition, int startLine, int endLine, EObject targetNode)
          Deprecated. * Notify all the listeners that a source region has been visited
 void removeSourceVisitListener(SourceVisitListener sourceVisitListener)
          Deprecated. Remove the sourceVisitListener from the list
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.gmt.modisco.infra.discoverymanager.Discoverer
discoverElement, getDiscovererParameters, isApplicableTo
 

Constructor Detail

AbstractRegionDiscoverer

public AbstractRegionDiscoverer()
Deprecated. 
Method Detail

notifyRegionSourceVisit

public final void notifyRegionSourceVisit(java.lang.String filePath,
                                          int startPosition,
                                          int endPosition,
                                          int startLine,
                                          int endLine,
                                          EObject targetNode)
Deprecated. 
* Notify all the listeners that a source region has been visited

Parameters:
filePath - The path of the parent compilation unit
startPosition - Start Position of the source code region
endPosition - EndPosition of the source code region
startLine - Start line of the source code region
endLine - End line of the source code region
targetNode - The Java Node to be documented

notifyRegionSourceVisit

public final void notifyRegionSourceVisit(java.lang.String filePath,
                                          int startPosition,
                                          int endPosition,
                                          EObject targetNode)
Deprecated. 
Notify all the listeners that a source region has been visited This method allows not to indicate the startLine and endLine and automatically put them to -1

Parameters:
filePath - The path of the parent compilation unit
startPosition - Start Position of the source code region
endPosition - EndPosition of the source code region
targetNode - The Java Node to be documented

addSourceVisitListener

public final void addSourceVisitListener(SourceVisitListener sourceVisitListener)
Deprecated. 
Add a listener to the list of listener

Parameters:
sourceVisitListener -

removeSourceVisitListener

public final void removeSourceVisitListener(SourceVisitListener sourceVisitListener)
Deprecated. 
Remove the sourceVisitListener from the list

Parameters:
sourceVisitListener -

getListSourceVisitListener

public final java.util.List<SourceVisitListener> getListSourceVisitListener()
Deprecated. 
Return the list of sourceVisitListener

Returns:
The list of sourceVisitListener