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
          
   
Fields inherited from class Lens
name
 
Constructor Summary
LRenameIfPresent(<String> from, <String> to)
           
   
Methods inherited from class Lens
error, getput, putget, putput, get_is, putback_is, get_throws, putback_throws
 

Field Detail

name

Object name

Constructor Detail

LRenameIfPresent

LRenameIfPresent(<String> from, <String> to)


Documentation generated by JSDoc on Wed Feb 14 15:36:01 2007