Overview | Package | Class | Deprecated | Index | Help
| Groovy Documentation
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD

## org.gradle.groovy.scripts
Interface ScriptProcessor

    interface ScriptProcessor

Compiles a script into an executable `Script` object.

Method Summary
`T` | `process(java.lang.Class scriptType)` Compiles the script into a {
`ScriptProcessor` | `setClassloader(java.lang.ClassLoader classloader)` Sets the parent classloader for the script.
`ScriptProcessor` | `setTransformer(Transformer transformer)` Sets the transformer to use to compile the script.

Method Detail

### process

    public T process(java.lang.Class scriptType)

  Compiles the script into a `Script` object of the given type.

### setClassloader

    public ScriptProcessor setClassloader(java.lang.ClassLoader classloader)

  Sets the parent classloader for the script. Can be null.

### setTransformer

    public ScriptProcessor setTransformer(Transformer transformer)

  Sets the transformer to use to compile the script. Can be null.

Groovy Documentation