[Java] Class Reference<T>
- groovy.lang.Reference
- All Implemented Interfaces and Traits:
- Serializable
public class Reference extends GroovyObjectSupport
Represents a reference to a value
- Authors:
- James Strachan
Constructor Summary
Constructor and description |
---|
Reference
() |
Reference
(T value) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
T |
get() | |
Object |
getProperty(String property) | |
Object |
invokeMethod(String name, Object args) | |
void |
set(T value) | |
void |
setProperty(String property, Object newValue) |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class GroovyObjectSupport | getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty |
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail
public Reference()
public Reference(T value)
Method Detail
public T get()
public Object getProperty(String property)
public Object invokeMethod(String name, Object args)
public void set(T value)
public void setProperty(String property, Object newValue)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.4.21/html/gapi/groovy/lang/Reference.html