ua.gradsoft.termware.transformers.sys
Class GetRulesetTransformer

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

public class GetRulesetTransformer
extends AbstractBuildinTransformer

getRuleset(x) - return ruleset of system with name 'x'


Constructor Summary
GetRulesetTransformer()
           
 
Method Summary
 String getDescription()
          get description of transformer.
 String getName()
          get name of transformer.
 boolean internalsAtFirst()
           
static Term static_transform(Term t, TermSystem sys, TransformationContext ctx)
          transform getRuleset(t) to set-term with all rules from t
 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

GetRulesetTransformer

public GetRulesetTransformer()
Method Detail

internalsAtFirst

public boolean internalsAtFirst()
Returns:
true

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
See Also:
static_transform(ua.gradsoft.termware.Term, ua.gradsoft.termware.TermSystem, ua.gradsoft.termware.TransformationContext)

static_transform

public static Term static_transform(Term t,
                                    TermSystem sys,
                                    TransformationContext ctx)
                             throws TermWareException
transform getRuleset(t) to set-term with all rules from t

Throws:
TermWareException

getDescription

public String getDescription()
Description copied from class: AbstractBuildinTransformer
get description of transformer. Default behaviour -- return the value of annotation @TransformerDescription binded to this.getClass().

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

getName

public String getName()
Description copied from class: AbstractBuildinTransformer
get name of transformer. Default behaviour -- return the value of annotation @TransformerName binded to this.getClass().

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