Class Receiver<T>
java.lang.Object
org.codehaus.groovy.transform.stc.Receiver<T>
Describes a method-call receiver together with optional auxiliary data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData()Returns the auxiliary data associated with this receiver.getType()Returns the receiver type.booleanisObject()Indicates if receiver is an object instance or a class (static) reference.static <T> Receiver<T>Creates an object receiver for the supplied type orObjectwhen null.final StringtoString()Returns a diagnostic representation of this receiver.
-
Constructor Details
-
Receiver
Creates an object receiver without auxiliary data. -
Receiver
Creates an object receiver with auxiliary data. -
Receiver
Creates a receiver descriptor.
-
-
Method Details
-
make
Creates an object receiver for the supplied type orObjectwhen null. -
getData
Returns the auxiliary data associated with this receiver. -
isObject
public boolean isObject()Indicates if receiver is an object instance or a class (static) reference.- Since:
- 5.0.0
-
getType
Returns the receiver type. -
toString
Returns a diagnostic representation of this receiver.
-