@@ -68,6 +68,10 @@ public class CharStreamer<UserArgument> {
position++;
}
+ public void skip(int offset) {
+ position += offset;
+ }
+
/**
* Sprawdza, czy przetworzono wszystkie dostępne dane.
* @return
@@ -48,7 +48,7 @@ public abstract class AMethod implements IMethod {
@Override
public final Function<Object[], Object> bind(Object that) {
- MethodHandle mh = handle();
+ MethodHandle mh = handle().bindTo(that);
return (args) -> {
try {
return mh.invokeWithArguments(args);