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