net.sf.arise.piji
Class LambdaWrapper

java.lang.Object
  |
  +--net.sf.arise.piji.LambdaWrapper
All Implemented Interfaces:
Function
Direct Known Subclasses:
CLLambda, TLambda

public abstract class LambdaWrapper
extends java.lang.Object
implements Function


Constructor Summary
(package private) LambdaWrapper(Lambda lambda)
           
 
Method Summary
 java.lang.Object apply(Context context, Expression[] nodes, int off)
           
 int getArgumentCount()
          Gets the minimum number of required arguments
 Context getContext()
          Gets the definition context
 java.lang.String getDocumentationString()
          Returns a documentation string
protected  Lambda getLambda()
           
 boolean isVararg()
          Returns true iff this function is vararg, ie.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.arise.piji.Function
apply
 

Constructor Detail

LambdaWrapper

LambdaWrapper(Lambda lambda)
Method Detail

apply

public java.lang.Object apply(Context context,
                              Expression[] nodes,
                              int off)
                       throws java.lang.Throwable
java.lang.Throwable

getLambda

protected Lambda getLambda()

isVararg

public boolean isVararg()
Description copied from interface: Function
Returns true iff this function is vararg, ie. has alt upward bound on the number of arguments

Specified by:
isVararg in interface Function
Returns:
True iff this function is vararg

getArgumentCount

public int getArgumentCount()
Description copied from interface: Function
Gets the minimum number of required arguments

Specified by:
getArgumentCount in interface Function
Returns:
The number of required arguments

getDocumentationString

public java.lang.String getDocumentationString()
Description copied from interface: Function
Returns a documentation string

Specified by:
getDocumentationString in interface Function
Returns:
A documentation string

getContext

public Context getContext()
Description copied from interface: Function
Gets the definition context

Specified by:
getContext in interface Function
Returns:
The definition conetxt


All code and documentation is

Copyright (c) : 2000-2003 Kjetil Valstadsve & Maja S. Bratseth