IReplaceHandler
, ISearchHandler
, java.lang.Iterable<ADQLObject>
public abstract class RemoveHandler extends SimpleReplaceHandler
In this handler the replacement ADQLObject is always null. It may be interpreted as a removal of the matched ADQL item from its ADQL parent.
IMPORTANT: It is the responsibility of the object which calls this method to apply the removal !
nbReplacement
results
Constructor | Description |
---|---|
RemoveHandler() |
|
RemoveHandler(boolean recursive) |
|
RemoveHandler(boolean recursive,
boolean onlyFirstMatch) |
Modifier and Type | Method | Description |
---|---|---|
ADQLObject |
getReplacer(ADQLObject objToReplace) |
Always returns null.
|
getNbMatch, iterator, search
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addMatchAndReplace, getNbReplacement, reset, searchAndReplace
addMatch, getNbMatch, goInto, isFinished, isRecursive, iterator, match, onlyFirstMatch, search, setOnlyFirstMatch, setRecursive
public RemoveHandler()
public RemoveHandler(boolean recursive, boolean onlyFirstMatch)
public RemoveHandler(boolean recursive)
public ADQLObject getReplacer(ADQLObject objToReplace)
IMPORTANT: It is the responsibility of the object which calls this method to apply the removal !
getReplacer
in class SimpleReplaceHandler
objToReplace
- The ADQL item to replace.SimpleReplaceHandler.getReplacer(adql.query.ADQLObject)