public interface Function
Red (liuxj) |
Yellow (liuxj) |
Modifier and Type | Method and Description |
---|---|
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.
|
Token apply(Token[] arguments) throws IllegalActionException
arguments
- The list of arguments.IllegalActionException
- If thrown during evaluating
the function.int getNumberOfArguments()
boolean isCongruent(Function function)
function
- The function to check congruency against.java.lang.String toString()
toString
in class java.lang.Object