/** * For predicates the parser doesn't know if they are static, update the method once we know the * role method is indeed static. Updates declaration, binding and scope for both class- and * interface-part. */ private void makeMethodStatic(AbstractMethodDeclaration method) { method.modifiers |= ClassFileConstants.AccStatic; if (method.binding != null) method.binding.modifiers |= ClassFileConstants.AccStatic; if (method.scope != null) method.scope.isStatic = true; if (method.interfacePartMethod != null) makeMethodStatic(method.interfacePartMethod); }