Returns whether this inner class or closure was declared inside a script body. This flag distinguishes between inner classes/closures defined within a script's top-level code versus those defined within regular class methods. Script body context affects how local variable access and scoping rules ar
()
| 2214 | * @see #isStaticClass() |
| 2215 | */ |
| 2216 | public boolean isScriptBody() { |
| 2217 | return redirect().scriptBody; |
| 2218 | } |
| 2219 | |
| 2220 | /** |
| 2221 | * Marks this inner class or closure as being declared inside a script body. |
no test coverage detected