// Export this method if has the Export annotation
export = true;
} else if (isExportable(method.getEnclosingType())) {
// Export all method in a class annotated as Export
export = true;
} else if (type != null && (e = type.getType().getAnnotation(Export.class)) != null && e.all()) {
// Export this method if the class has the Export.all attribute set
// Filter some generic methods present in Object
export = !method.getName().matches("getClass|hashCode|equals|notify|notifyAll|wait");
} else {
// Export methods which are annotated in implemented interfaces