|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.lang.GroovyCodeSource
public class GroovyCodeSource extends java.lang.Object
CodeSource wrapper class that allows specific security policies to be associated with a class compiled from groovy source.
Constructor Summary | |
GroovyCodeSource(java.lang.String script, java.lang.String name, java.lang.String codeBase)
|
|
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. |
|
GroovyCodeSource(java.io.File infile, java.lang.String encoding)
|
|
GroovyCodeSource(java.io.File infile)
@param infile the file to create a GroovyCodeSource for. |
|
GroovyCodeSource(java.net.URL url)
|
Method Summary | |
---|---|
java.io.File
|
getFile()
|
java.lang.String
|
getName()
|
java.lang.String
|
getScriptText()
|
boolean
|
isCachable()
|
void
|
setCachable(boolean b)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructor Detail |
---|
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)
public GroovyCodeSource(java.io.File infile)
infile
- the file to create a GroovyCodeSource for.
public GroovyCodeSource(java.net.URL url)
Method Detail |
---|
public java.io.File getFile()
public java.lang.String getName()
public java.lang.String getScriptText()
public boolean isCachable()
public void setCachable(boolean b)
Groovy Documentation