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 and Description |
---|
RemoveHandler() |
RemoveHandler(boolean recursive) |
RemoveHandler(boolean recursive,
boolean onlyFirstMatch) |
Modifier and Type | Method and Description |
---|---|
ADQLObject |
getReplacer(ADQLObject objToReplace)
Always returns null.
|
addMatchAndReplace, getNbReplacement, reset, searchAndReplace
addMatch, getNbMatch, goInto, isFinished, isRecursive, iterator, match, onlyFirstMatch, search, setOnlyFirstMatch, setRecursive
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNbMatch, iterator, search
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)