Groovy Documentation

org.gradle.groovy.scripts
Interface ScriptSource


interface ScriptSource

The source for the text of a script.


Method Summary
java.lang.String getClassName()

Returns the name to use for the compiled class for this script.

java.lang.String getDisplayName()

Returns the description for this script.

File getSourceFile()

Returns the source file for this script, if any.

java.lang.String getText()

Returns the text of this script.

 

Method Detail

getClassName

public java.lang.String getClassName()
Returns the name to use for the compiled class for this script. Never returns null.


getDisplayName

public java.lang.String getDisplayName()
Returns the description for this script. Never returns null.


getSourceFile

public File getSourceFile()
Returns the source file for this script, if any. Returns null if there is no source file for this script.


getText

public java.lang.String getText()
Returns the text of this script. Returns an empty String if this script has no text. Never returns null.


 

Groovy Documentation