xacute.quilt
Class FunBoolTemplate

java.lang.Object
  |
  +--xacute.quilt.QuiltExpression
        |
        +--xacute.quilt.FunCall
              |
              +--xacute.quilt.FunPrimitive
                    |
                    +--xacute.quilt.FunBoolTemplate
All Implemented Interfaces:
PPrintable
Direct Known Subclasses:
FunCONTAINS, FunSTARTSWITH

public abstract class FunBoolTemplate
extends FunPrimitive

A class used as a template to extend the language with new boolean functions. The signature of the function is: list of string -> bool


Fields inherited from class xacute.quilt.FunCall
args
 
Constructor Summary
FunBoolTemplate()
           
 
Method Summary
abstract  boolean exec(java.lang.String[] args)
           
 java.lang.String pprint()
          Pretty-prints a function call.
 
Methods inherited from class xacute.quilt.FunPrimitive
getClassName, getName
 
Methods inherited from class xacute.quilt.QuiltExpression
isTrue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunBoolTemplate

public FunBoolTemplate()
Method Detail

exec

public abstract boolean exec(java.lang.String[] args)
                      throws QuiltException

pprint

public final java.lang.String pprint()
Pretty-prints a function call. This method is overriden in the subclass FunPrimitive.
Overrides:
pprint in class FunPrimitive