Package org.codehaus.groovy.runtime
Class ScriptReference
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.lang.Reference
org.codehaus.groovy.runtime.ScriptReference
- All Implemented Interfaces:
GroovyObject,Serializable
Represents a reference to a variable in a script
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionScriptReference(Script script, String variable) Constructs a ScriptReference to a variable in the given script. -
Method Summary
Methods inherited from class groovy.lang.Reference
getProperty, invokeMethod, setPropertyMethods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, setMetaClass
-
Constructor Details
-
ScriptReference
Constructs a ScriptReference to a variable in the given script.- Parameters:
script- the script instancevariable- the name of the variable to reference
-
-
Method Details