Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.gradle.groovy.scripts
Interface ScriptProcessor

    public interface ScriptProcessor

Compiles a script into an executable `Script` object.

Method Summary
`
`<T extends ScriptWithSource> T`
` | `process(java.lang.Class<T> scriptType)` Compiles the script into a `Script` object of the given type.
`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

### setClassloader

    ScriptProcessor setClassloader(java.lang.ClassLoader classloader)

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

### setTransformer

    ScriptProcessor setTransformer(Transformer transformer)

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

### process

    <T extends ScriptWithSource> T process(java.lang.Class<T> scriptType)

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

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD