|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.data.expr.ExpressionFunction
An implementation of a function closure that encapsulates an expression tree. Instances of this class are created during the evaluation of function closure expressions in the expression language, like "function(x:int, y:int) x+y".
ASTPtRootNode
| Red (neuendor) |
| Yellow (neuendor) |
| Constructor Summary | |
ExpressionFunction(java.util.List argumentNames,
Type[] argumentTypes,
ASTPtRootNode exprRoot)
|
|
| Method Summary | |
Token |
apply(Token[] arguments)
Apply the function to the list of arguments, which are tokens. |
int |
getNumberOfArguments()
Return the number of arguments of the function. |
boolean |
isCongruent(Function function)
Return true if this function is congruent to the given function. |
java.lang.String |
toString()
Return a string representation of this function. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ExpressionFunction(java.util.List argumentNames,
Type[] argumentTypes,
ASTPtRootNode exprRoot)
| Method Detail |
public Token apply(Token[] arguments)
throws IllegalActionException
apply in interface Functionarguments - The list of arguments.
IllegalActionException - If thrown during evaluating
the function.public int getNumberOfArguments()
getNumberOfArguments in interface Functionpublic boolean isCongruent(Function function)
isCongruent in interface Functionfunction - The function to check congruency against.public java.lang.String toString()
toString in interface Function
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||