public class GroovyCodeSource
extends java.lang.Object
Constructor and Description |
---|
GroovyCodeSource(java.io.File infile) |
GroovyCodeSource(java.io.File infile,
java.lang.String encoding) |
GroovyCodeSource(java.io.Reader reader,
java.lang.String name,
java.lang.String codeBase)
Construct a GroovyCodeSource for an inputStream of groovyCode that has an
unknown provenance -- meaning it didn't come from a File or a URL (e.g. a String).
|
GroovyCodeSource(java.lang.String script,
java.lang.String name,
java.lang.String codeBase) |
GroovyCodeSource(java.net.URL url) |
Modifier and Type | Method and Description |
---|---|
java.io.File |
getFile() |
java.lang.String |
getName() |
java.lang.String |
getScriptText() |
boolean |
isCachable() |
void |
setCachable(boolean b) |
public GroovyCodeSource(java.lang.String script, java.lang.String name, java.lang.String codeBase)
public GroovyCodeSource(java.io.Reader reader, java.lang.String name, java.lang.String codeBase)
public GroovyCodeSource(java.io.File infile, java.lang.String encoding) throws java.io.IOException
java.io.IOException
public GroovyCodeSource(java.io.File infile) throws java.io.IOException
infile
- the file to create a GroovyCodeSource for.java.io.IOException
- if an issue arises opening and reading the file.public GroovyCodeSource(java.net.URL url) throws java.io.IOException
java.io.IOException