transf :: lib :: path :: Range :: Class Range
[frames] | no frames]

Class Range




Apply a transformation on a subterm range.

Instance Methods
 
__init__(self, operand, start, end)
Start and end indexes specify the subterms that will be transformed, inclusively.
 
apply(self, term, ctx)
Applies the transformation to the given term with the specified context.

Inherited from transformation.Transformation: __add__, __call__, __mul__, __neg__, __pos__, __pow__, __repr__

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties

Inherited from object: __class__

Method Details

__init__(self, operand, start, end)
(Constructor)

 
Start and end indexes specify the subterms that will be transformed, inclusively.
Overrides: transformation.Transformation.__init__

apply(self, term, ctx)

 
Applies the transformation to the given term with the specified context.
Returns:
The transformed term on success.
Overrides: transformation.Transformation.apply
(inherited documentation)