ua.gradsoft.termware.transformers.sys
Class SetPropertyTransformer

java.lang.Object
  extended by ua.gradsoft.termware.AbstractBuildinTransformer
      extended by ua.gradsoft.termware.transformers.sys.SetPropertyTransformer
All Implemented Interfaces:
ITermTransformer

public class SetPropertyTransformer
extends AbstractBuildinTransformer

Transformer for setProperty. setProperty(name,t) - reduced to true with effect of setting term system property 'name' to 't'
(for now exists one system property: 'debug')


Constructor Summary
SetPropertyTransformer()
           
 
Method Summary
 String getDescription()
          return description of this transformer.
 String getName()
          return name of this transformer
 boolean internalsAtFirst()
           
static Term static_transform(Term t, TermSystem sys, TransformationContext ctx)
           
 Term transform(Term t, TermSystem sys, TransformationContext ctx)
          attempt to transform term t .
 
Methods inherited from class ua.gradsoft.termware.AbstractBuildinTransformer
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetPropertyTransformer

public SetPropertyTransformer()
Method Detail

internalsAtFirst

public boolean internalsAtFirst()
Returns:
false

transform

public Term transform(Term t,
                      TermSystem sys,
                      TransformationContext ctx)
               throws TermWareException
Description copied from interface: ITermTransformer
attempt to transform term t .

Parameters:
t - - term to transform
sys - - system which give us access to ebvironment.
ctx - - context of transformation.
Returns:
- transformed term.
Throws:
TermWareException

static_transform

public static Term static_transform(Term t,
                                    TermSystem sys,
                                    TransformationContext ctx)
                             throws TermWareException
Throws:
TermWareException

getDescription

public String getDescription()
return description of this transformer.

Specified by:
getDescription in interface ITermTransformer
Overrides:
getDescription in class AbstractBuildinTransformer
See Also:
TransformerDescription

getName

public String getName()
return name of this transformer

Specified by:
getName in interface ITermTransformer
Overrides:
getName in class AbstractBuildinTransformer
Returns:
name of transformer.
See Also:
TransformerName