ua.gradsoft.termware.transformers.sys
Class SetPropertyTransformer
java.lang.Object
ua.gradsoft.termware.AbstractBuildinTransformer
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')
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SetPropertyTransformer
public SetPropertyTransformer()
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 transformsys - - 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