public class JCDelegate extends Object
JCDelegate class represents a reflected CLR Delegate with return
value.
Some examples on its use are on https://github.com/masesgroup/JCOReflector
| Constructor and Description |
|---|
JCDelegate(JCType delegateType)
Initialize a new
JCDelegate using the JCType representation
of CLR delegate Type. |
JCDelegate(String delegateTypeName)
Initialize a new
JCDelegate using the String representation of CLR
delegate Type. |
| Modifier and Type | Method and Description |
|---|---|
Object |
DelegateInvoked(Object... args)
Method invoked when delegates is invoked in CLR context.
|
JCType |
getDelegateType() |
String |
getDelegateTypeName() |
public JCDelegate(String delegateTypeName)
JCDelegate using the String representation of CLR
delegate Type.delegateTypeName - The string representation of CLR Delegate Typepublic JCDelegate(JCType delegateType)
JCDelegate using the JCType representation
of CLR delegate Type.delegateType - The JCType representation of CLR Delegate Type