Unchecked exception thrown by AstInspector when:
an IOException occurs when loading a file
a declaration with the specified name cannot be found
an internal error occurs
Checks if the given class is a Spock specification (according to isSpec()),
and throws an InvalidSpecException with a detailed explanation if it is not.
Walks the statement and expression tree to:
- rewrite explicit conditions,
- rewrite interactions,
- rewrite core language primitives (members of class Specification)
- Forbid
Also records whether conditions and interactions were found.
Some implementation details of this class are stolen from Spring, EasyMock
Class Extensions, and this thread:
http://www.nabble.com/Callbacks%2C-classes-and-instances-to4092596.html
Returns the class file for the given class (which has been verified to exist in the returned location),
or null if the class file could not be found (e.g.
Returns the first expression found that is
either immediately preceded by a label with the specified name, or is the
single argument in a method call of the form "inspect_name(expression)".
Indicates that a spec's feature methods should be run sequentially
in their declared order (even in the presence of a parallel spec runner),
always starting from the first method.