public interface IReplaceHandler extends ISearchHandler
Defines an interface for any kind of search/replace handler.
A replace handler is supposed to replace ADQL objects matching a given condition by another ADQL object (which may be generated on the fly if needed).
In some ADQL objects (i.e.
ADQLList), it is also possible to remove objects. In this case, the replacement object must be NULL.
A simple implementation of this interface already exists:
|Modifier and Type||Method and Description|
Gets the number of matched objects which have been successfully replaced.
Searches all matching ADQL objects from the given ADQL object (included) and replaces them by their corresponding ADQL object.
void searchAndReplace(ADQLObject startObj)
startObj- The ADQL object from which the search must start.