public interface IClrBase
extends java.lang.AutoCloseable
Modifier and Type | Method and Description |
---|---|
boolean |
equals(IClrBase baseObject)
Determines whether the specified object is equal to the current object.
|
DotNetNativeTypes.ClrObject |
getBaseObject()
Gets the default clr object pointer.
|
java.lang.Object |
getFieldValue(java.lang.String fieldName)
Returns the value of a field with the specified name.
|
java.lang.Object |
getPropertyIndexValue(java.lang.String propertyName,
int index)
Returns the property value of a specified object with specified property name and index value for indexed properties.
|
java.lang.Object |
getPropertyIndexValue(java.lang.String propertyName,
java.lang.String[] typeNames,
java.lang.Object[] indices)
Searches for the public property with the specified name and returns the property index value of a specified indexer object.
|
java.lang.Object |
getPropertyValue(java.lang.String propertyName)
Returns the property value of a specified object using the specified property name.
|
IClrType |
getType()
Gets the exact runtime type of the current instance.
|
java.lang.Object |
invokeGenericMethod(java.lang.String methodName,
java.lang.String[] genericTypeNames,
java.lang.String[] parameterTypeNames,
java.lang.Object[] parameters)
Invokes the generic method represented by the current object instance,using the specified parameters.
|
java.lang.Object |
invokeMethod(java.lang.String methodName,
java.lang.String[] typeNames,
java.lang.Object[] parameters)
Invokes the method represented by the current object instance, using thespecified parameters.
|
void |
invokeVoidMethod(java.lang.String methodName,
java.lang.String[] typeNames,
java.lang.Object[] parameters)
Invokes the method represented by the current object instance, using the specified parameters and does not return any value.
|
void |
registerEventCallBack(java.lang.String eventName,
DotNetNativeTypes.IClrEventHandler callBack)
Add an event to the current object using the specified event name and function pointer which is the event handler.
|
void |
registerEventCallBackWithReturn(java.lang.String eventName,
DotNetNativeTypes.IClrEventHandlerReturn callBack)
Add an event to the current object using the specified event name and function pointer which is the event handler.
|
void |
setFieldValue(java.lang.String fieldName,
java.lang.Object value)
Sets the value of the field with the specified name supported by the given object.
|
void |
setPropertyIndexValue(java.lang.String propertyName,
int index,
java.lang.Object value)
Sets the property value of a specified object with property name andindex value for index properties.
|
void |
setPropertyIndexValue(java.lang.String propertyName,
java.lang.String[] typeNames,
java.lang.Object[] Indices,
java.lang.Object value)
Sets the property value of a specified object with optional index values for index properties.
|
void |
setPropertyValue(java.lang.String propertyName,
java.lang.Object value)
Sets the property value of a specified object using the specified property name.
|
void |
unRegisterEventCallBack(java.lang.String eventName,
DotNetNativeTypes.IClrEventHandler callBack)
Remove an event from the current object using the specified event name and function pointer which is the event handler.
|
void |
unRegisterEventCallBackWithReturn(java.lang.String eventName,
DotNetNativeTypes.IClrEventHandlerReturn callBack)
Remove an event from the current object using the specified event name and function pointer which is the event handler.
|
DotNetNativeTypes.ClrObject getBaseObject() throws EClrError
EClrError
boolean equals(IClrBase baseObject) throws EClrError
baseObject
- The object to compare with the current object.EClrError
IClrType getType() throws EClrError
EClrError
java.lang.Object getFieldValue(java.lang.String fieldName) throws EClrError
fieldName
- The string containing the name of the data field to get.EClrError
void setFieldValue(java.lang.String fieldName, java.lang.Object value) throws EClrError
fieldName
- The string containing the name of the data field to get.value
- The value to assign to the field.EClrError
java.lang.Object getPropertyValue(java.lang.String propertyName) throws EClrError
propertyName
- The string containing the name of the public property to get.EClrError
void setPropertyValue(java.lang.String propertyName, java.lang.Object value) throws EClrError
propertyName
- The string containing the name of the public property to get.value
- The new property value.EClrError
java.lang.Object getPropertyIndexValue(java.lang.String propertyName, int index) throws EClrError
propertyName
- The string containing the name of the public property to get.index
- Index value for indexed properties. The indexes of indexed properties are zero-based.EClrError
java.lang.Object getPropertyIndexValue(java.lang.String propertyName, java.lang.String[] typeNames, java.lang.Object[] indices) throws EClrError
propertyName
- The string containing the name of the public property to get.typeNames
- An array of Type objects names representing the number, order, and type of the parameters for the indexed property to get.indices
- Index values for indexed properties.EClrError
void setPropertyIndexValue(java.lang.String propertyName, int index, java.lang.Object value) throws EClrError
propertyName
- The string containing the name of the public property to get.index
- Index value for indexed properties.value
- The new property value.EClrError
void setPropertyIndexValue(java.lang.String propertyName, java.lang.String[] typeNames, java.lang.Object[] Indices, java.lang.Object value) throws EClrError
propertyName
- The string containing the name of the public property to get.typeNames
- An array of Type objects names representing the number, order, and type of the parameters for the indexed property to get.Indices
- Index values for indexed properties.value
- The new property value.EClrError
void invokeVoidMethod(java.lang.String methodName, java.lang.String[] typeNames, java.lang.Object[] parameters) throws EClrError
methodName
- The string containing the name of the public method to get.typeNames
- The names of the method parameter types separated by commas or semi-colon. The names of the parameter types has the same number,
order as the parameters of the method to be invoked.parameters
- An argument list for the invoked method. This is an array of objects with the same number, order, and type as the parameters of the method to be invoked.EClrError
java.lang.Object invokeMethod(java.lang.String methodName, java.lang.String[] typeNames, java.lang.Object[] parameters) throws EClrError
methodName
- The string containing the name of the public method to get.typeNames
- The names of the method parameter types separated by commas or semi-colon. The names of the parameter types has the same number, order as the parameters of the method to be invoked.parameters
- An argument list for the invoked method. This is an array of objects with the same number, order, and type as the parameters of the method to be invoked.EClrError
java.lang.Object invokeGenericMethod(java.lang.String methodName, java.lang.String[] genericTypeNames, java.lang.String[] parameterTypeNames, java.lang.Object[] parameters) throws EClrError
methodName
- The string containing the name of the public generic method to get.genericTypeNames
- The names of the types separated by commas or semi-colon which will be substituted for the type parameters of the current object generic method definition.parameterTypeNames
- The names of the method parameter types separated by commas or semi-colon. The names of the parameter types has the same number, order as the parameters of the method to be invoked.parameters
- An argument list for the invoked method. This is an array of objects with the same number, order, and type as the parameters of the method to be invoked.EClrError
void registerEventCallBack(java.lang.String eventName, DotNetNativeTypes.IClrEventHandler callBack) throws EClrError
eventName
- The string containing the name of an event that is declaredcallBack
- Encapsulates a method to be invoked when the event is raised by the current object.EClrError
void registerEventCallBackWithReturn(java.lang.String eventName, DotNetNativeTypes.IClrEventHandlerReturn callBack) throws EClrError
eventName
- The string containing the name of an event that is declaredcallBack
- Encapsulates a method to be invoked when the event is raised by the current object.EClrError
void unRegisterEventCallBack(java.lang.String eventName, DotNetNativeTypes.IClrEventHandler callBack) throws EClrError
eventName
- The string containing the name of an event that is declared.callBack
- The delegate to be disassociated from the events raised by current object.EClrError
void unRegisterEventCallBackWithReturn(java.lang.String eventName, DotNetNativeTypes.IClrEventHandlerReturn callBack) throws EClrError
eventName
- The string containing the name of an event that is declared.callBack
- The delegate to be disassociated from the events raised by current object.EClrError