package com.mitchellbosecke.pebble.macro;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

import com.mitchellbosecke.pebble.extension.Filter;

public class TestFilter implements Filter {

	static int counter = 0;

	public static final String FILTER_NAME = "testfilter";

	@Override
	public List<String> getArgumentNames() {
		return Arrays.asList("content");
	}

	@Override
	public Object apply(Object input, Map<String, Object> args) {
		String content = (String) input;
		counter++;
		content = content + "?" + "Hello";
		return content;
	}

	public static int getCounter() {
		return counter;
	}

}

@@ -36,16 +36,190 @@
 macro;%0A%0A
+import com.mitchellbosecke.pebble.extension.Filter;%0Aimport com.mitchellbosecke.pebble.template.EvaluationContext;%0Aimport com.mitchellbosecke.pebble.template.PebbleTemplate;%0A%0A
 import j
@@ -285,61 +285,8 @@
 p;%0A%0A
-import com.mitchellbosecke.pebble.extension.Filter;%0A%0A
 publ
@@ -571,16 +571,80 @@
 ct%3E args
+, PebbleTemplate self, EvaluationContext context, int lineNumber
 ) %7B%0A%09%09St

Fix compilation error