Alexey Andreev 2015-07-02 19:30:33 +03:00
parent 194356d3a3
commit 5a1810c5e5

View File

@ -251,6 +251,10 @@ class JavascriptNativeProcessor {
} }
public void addFunctorField(ClassHolder cls, MethodReference method) { public void addFunctorField(ClassHolder cls, MethodReference method) {
if (cls.getAnnotations().get(FunctorImpl.class.getName()) != null) {
return;
}
FieldHolder field = new FieldHolder("$$jso_functor$$"); FieldHolder field = new FieldHolder("$$jso_functor$$");
field.setLevel(AccessLevel.PUBLIC); field.setLevel(AccessLevel.PUBLIC);
field.setType(ValueType.parse(JSObject.class)); field.setType(ValueType.parse(JSObject.class));