Class LRenameIfPresent
Object
|
+--Lens
|
+--LRenameIfPresent
- class
LRenameIfPresent
- extends Lens
Renames a property in the concrete tree to a different property in the
abstract tree -- but only if the property is present. This is a sample
use of LAcond. Note that LCcond is insufficient to define
this lens, since the rename lens should be used for putback only if the
new, renamed field is present in the abstract tree -- LCcond can only look
at the concrete tree.
Defined in lens.js
|
Field Summary |
Object |
name
|
name
Object name
LRenameIfPresent
LRenameIfPresent(<String> from, <String> to)
Parameters:
from - The source property in the concrete tree
to - The target property in the abstract tree
Documentation generated by
JSDoc on Wed Feb 14 15:36:01 2007