|
|
@@ -18,7 +18,7 @@ import net.ranides.assira.text.LexicalCast;
|
|
|
* @author ranides
|
|
|
*/
|
|
|
public abstract class AnyFunction implements Function<Object, Object[]> {
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Metoda pomocnicza, upraszcza składnię podczas przekazywania wielu argumentów.
|
|
|
* Deleguje wywołanie do metody {@link #apply}
|
|
|
@@ -54,5 +54,9 @@ public abstract class AnyFunction implements Function<Object, Object[]> {
|
|
|
public final <T> T safecall(TypeToken<T> target, Object... args) {
|
|
|
return LexicalCast.cast(apply(args), target);
|
|
|
}
|
|
|
+
|
|
|
+ public AnyFunction bind(Object that) {
|
|
|
+ throw new UnsupportedOperationException("Bind is not supported by: " + getClass().getName());
|
|
|
+ }
|
|
|
|
|
|
}
|