gnu.expr
Class ModuleWithContext

java.lang.Object
  extended by gnu.mapping.Procedure
      extended by gnu.mapping.Procedure0
          extended by gnu.expr.ModuleBody
              extended by gnu.expr.ModuleWithContext
All Implemented Interfaces:
Named

public abstract class ModuleWithContext
extends ModuleBody


Field Summary
 
Fields inherited from class gnu.expr.ModuleBody
runDone
 
Constructor Summary
ModuleWithContext()
           
 
Method Summary
 java.lang.Object apply0(ModuleMethod method)
          A subclass will typically override this like: switch (method.selector) { case 3: return function3(); case 5: return function5(); default: super.apply0(method); }
 java.lang.Object apply1(ModuleMethod method, java.lang.Object arg1)
           
 java.lang.Object apply2(ModuleMethod method, java.lang.Object arg1, java.lang.Object arg2)
           
 java.lang.Object apply3(ModuleMethod method, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
           
 java.lang.Object apply4(ModuleMethod method, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4)
           
 java.lang.Object applyN(ModuleMethod method, java.lang.Object[] args)
           
 int match0(ModuleMethod proc, CallContext ctx)
           
 int match1(ModuleMethod proc, java.lang.Object arg1, CallContext ctx)
           
 int match2(ModuleMethod proc, java.lang.Object arg1, java.lang.Object arg2, CallContext ctx)
           
 int match3(ModuleMethod proc, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, CallContext ctx)
           
 int match4(ModuleMethod proc, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, CallContext ctx)
           
 int matchN(ModuleMethod proc, java.lang.Object[] args, CallContext ctx)
           
 
Methods inherited from class gnu.expr.ModuleBody
apply, apply0, getMainPrintValues, processArgs, run, run, run, runAsMain, runAsMain, runCleanup, setMainPrintValues
 
Methods inherited from class gnu.mapping.Procedure0
apply1, apply2, apply3, apply4, applyN, numArgs
 
Methods inherited from class gnu.mapping.Procedure
apply, check0, check1, check2, check3, check4, checkArgCount, checkN, getName, getProperty, getSetter, getSymbol, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, name, removeProperty, set0, set1, setN, setName, setProperty, setProperty, setSetter, setSymbol, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModuleWithContext

public ModuleWithContext()
Method Detail

match0

public int match0(ModuleMethod proc,
                  CallContext ctx)
Overrides:
match0 in class ModuleBody

match1

public int match1(ModuleMethod proc,
                  java.lang.Object arg1,
                  CallContext ctx)
Overrides:
match1 in class ModuleBody

match2

public int match2(ModuleMethod proc,
                  java.lang.Object arg1,
                  java.lang.Object arg2,
                  CallContext ctx)
Overrides:
match2 in class ModuleBody

match3

public int match3(ModuleMethod proc,
                  java.lang.Object arg1,
                  java.lang.Object arg2,
                  java.lang.Object arg3,
                  CallContext ctx)
Overrides:
match3 in class ModuleBody

match4

public int match4(ModuleMethod proc,
                  java.lang.Object arg1,
                  java.lang.Object arg2,
                  java.lang.Object arg3,
                  java.lang.Object arg4,
                  CallContext ctx)
Overrides:
match4 in class ModuleBody

matchN

public int matchN(ModuleMethod proc,
                  java.lang.Object[] args,
                  CallContext ctx)
Overrides:
matchN in class ModuleBody

apply0

public java.lang.Object apply0(ModuleMethod method)
                        throws java.lang.Throwable
Description copied from class: ModuleBody
A subclass will typically override this like: switch (method.selector) { case 3: return function3(); case 5: return function5(); default: super.apply0(method); }

Overrides:
apply0 in class ModuleBody
Throws:
java.lang.Throwable

apply1

public java.lang.Object apply1(ModuleMethod method,
                               java.lang.Object arg1)
                        throws java.lang.Throwable
Overrides:
apply1 in class ModuleBody
Throws:
java.lang.Throwable

apply2

public java.lang.Object apply2(ModuleMethod method,
                               java.lang.Object arg1,
                               java.lang.Object arg2)
                        throws java.lang.Throwable
Overrides:
apply2 in class ModuleBody
Throws:
java.lang.Throwable

apply3

public java.lang.Object apply3(ModuleMethod method,
                               java.lang.Object arg1,
                               java.lang.Object arg2,
                               java.lang.Object arg3)
                        throws java.lang.Throwable
Overrides:
apply3 in class ModuleBody
Throws:
java.lang.Throwable

apply4

public java.lang.Object apply4(ModuleMethod method,
                               java.lang.Object arg1,
                               java.lang.Object arg2,
                               java.lang.Object arg3,
                               java.lang.Object arg4)
                        throws java.lang.Throwable
Overrides:
apply4 in class ModuleBody
Throws:
java.lang.Throwable

applyN

public java.lang.Object applyN(ModuleMethod method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Overrides:
applyN in class ModuleBody
Throws:
java.lang.Throwable