Completely resets the state of this ClearableLinker
.
Completely resets the state of this ClearableLinker
.
After calling this method, this ClearableLinker
, it can be used again
without being affected by previous calls to link
, even of those would
have corrupted the internal state.
(Since version 1.3.0) Use the overload taking an OutputDirectory instead
A box around a Linker to support clearing.
Calling
clear()
completely resets the state of thisClearableLinker
, so that it can be used again without being affected by previous calls tolink
, even of those would have corrupted the internal state.In addition to the contract of Linker, if {{Linker.link}} throws an exception, the
ClearableLinker
is automaticallyclear()
'ed.Implementations are allowed to automatically
clear()
in other cases, but never while a linking is in progress.Unless otherwise specified, instances of this trait are not thread-safe.