return clazz.isDerivedFrom(nodeCache.Specification);
}
void processSpec(ClassNode clazz, ErrorReporter errorReporter, SourceLookup sourceLookup) {
try {
Spec spec = new SpecParser(errorReporter).build(clazz);
spec.accept(new SpecRewriter(nodeCache, sourceLookup, errorReporter));
spec.accept(new SpecAnnotator(nodeCache));
} catch (Exception e) {
errorReporter.error(
"Unexpected error during compilation of spec '%s'. Maybe you have used invalid Spock syntax? Anyway, please file a bug report at http://issues.spockframework.org.",
e, clazz.getName());
}