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

      public class ScriptReference
      extends Reference

  Represents a reference to a variable in a script
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ScriptReference(Script script, String variable)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `get()`
    `void` | `set(Object value)`

    - ### Methods inherited from class groovy.lang.Reference

      `getProperty, invokeMethod, setProperty`

    - ### Methods inherited from class groovy.lang.GroovyObjectSupport

      `getMetaClass, setMetaClass`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ScriptReference

          public ScriptReference(Script script,
                                 String variable)

  - ### Method Detail

    - #### get

          public Object get()

      Overrides:
        `get` in class `Reference`

    - #### set

          public void set(Object value)

      Overrides:
        `set` in class `Reference`