public class TClrGenericObject extends TClrObject implements IClrBase
SYSTEM_OBJECT
Constructor and Description |
---|
TClrGenericObject(DotNetNativeTypes.ClrObject clrGenericObject)
Initializes a new instance of the .Net generic object class with the specified clr Object pointer.
|
TClrGenericObject(java.lang.String genericTypeName,
java.lang.String[] genericTypeNames,
DotNetNativeTypes.ClrObjectArray arguments)
Initializes a new instance of the .Net generic object class with the specified type and Generic Types using the constructor that best matches the specified parameters.
|
TClrGenericObject(java.lang.String genericTypeName,
java.lang.String[] genericTypeNames,
java.lang.Object[] arguments)
Initializes a new instance of the .Net generic object class with the specified type and Generic Types using the constructor that best matches the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
AsType(java.lang.Class<T> type)
Casts the currently stored .Net value to another type.
|
void |
close() |
java.lang.Class<?>[] |
getParameterizedTypes()
Returns an array of Class objects that represent the type arguments of a closed java generic type or the parameterized types of a generic class.
|
IClrType[] |
getTypeParameters()
Returns an array of Type objects that represent the type arguments of a closed generic type or the type parameters of a generic type definition.
|
java.lang.Class<?> |
resolveTypeArgument(int parameterizedTypeIndex)
Gets the type argument of the generic class using the specified parameterized type index
|
void |
setParameterizedTypes(java.lang.Class<?>... parameterizedTypes)
Sets the type arguments of the generic class.
|
CastTo, CastTo, createBaseObject, createInstance, createInstance, getArrayElement, getArrayLength, getClrObject, getDefaultPointer, getFieldValue, getFieldValueAsBigDecimal, getFieldValueAsBoolean, getFieldValueAsByte, getFieldValueAsChar, getFieldValueAsClrDateTime, getFieldValueAsClrDecimal, getFieldValueAsClrObject, getFieldValueAsDateTime, getFieldValueAsDouble, getFieldValueAsFloat, getFieldValueAsInt, getFieldValueAsLong, getFieldValueAsSByte, getFieldValueAsShort, getFieldValueAsString, getFieldValueAsUInt, getFieldValueAsULong, getFieldValueAsUShort, getObjectAsString, getPropertyIndexValue, getPropertyIndexValueAsBigDecimal, getPropertyIndexValueAsBigDecimal, getPropertyIndexValueAsBoolean, getPropertyIndexValueAsBoolean, getPropertyIndexValueAsByte, getPropertyIndexValueAsByte, getPropertyIndexValueAsChar, getPropertyIndexValueAsChar, getPropertyIndexValueAsClrDateTime, getPropertyIndexValueAsClrDecimal, getPropertyIndexValueAsClrObject, getPropertyIndexValueAsClrObject, getPropertyIndexValueAsDateTime, getPropertyIndexValueAsDateTime, getPropertyIndexValueAsDouble, getPropertyIndexValueAsDouble, getPropertyIndexValueAsFloat, getPropertyIndexValueAsFloat, getPropertyIndexValueAsInt, getPropertyIndexValueAsInt, getPropertyIndexValueAsLong, getPropertyIndexValueAsLong, getPropertyIndexValueAsSByte, getPropertyIndexValueAsSByte, getPropertyIndexValueAsShort, getPropertyIndexValueAsShort, getPropertyIndexValueAsString, getPropertyIndexValueAsString, getPropertyIndexValueAsUInt, getPropertyIndexValueAsUInt, getPropertyIndexValueAsULong, getPropertyIndexValueAsULong, getPropertyIndexValueAsUShort, getPropertyIndexValueAsUShort, getPropertyValue, getPropertyValueAsBigDecimal, getPropertyValueAsBoolean, getPropertyValueAsByte, getPropertyValueAsChar, getPropertyValueAsClrDateTime, getPropertyValueAsClrDecimal, getPropertyValueAsClrObject, getPropertyValueAsDateTime, getPropertyValueAsDouble, getPropertyValueAsFloat, getPropertyValueAsInt, getPropertyValueAsLong, getPropertyValueAsSByte, getPropertyValueAsShort, getPropertyValueAsString, getPropertyValueAsUInt, getPropertyValueAsULong, getPropertyValueAsUShort, getTypeCode, invokeBigDecimalMethod, invokeBigDecimalMethod, invokeBooleanMethod, invokeBooleanMethod, invokeByteMethod, invokeByteMethod, invokeCharMethod, invokeCharMethod, invokeClrDateTimeMethod, invokeClrDateTimeMethod, invokeClrDecimalMethod, invokeClrDecimalMethod, invokeClrObjectMethod, invokeClrObjectMethod, invokeDateTimeMethod, invokeDateTimeMethod, invokeDoubleMethod, invokeDoubleMethod, invokeFloatMethod, invokeFloatMethod, invokeGenericMethod, invokeGenericMethod, invokeGenericMethod, invokeIntMethod, invokeIntMethod, invokeLongMethod, invokeLongMethod, invokeMethod, invokeMethod, invokeMethod, invokeSByteMethod, invokeSByteMethod, invokeShortMethod, invokeShortMethod, invokeStringMethod, invokeStringMethod, invokeUIntMethod, invokeUIntMethod, invokeULongMethod, invokeULongMethod, invokeUShortMethod, invokeUShortMethod, invokeVoidMethod, isArray, isEnum, isGeneric, isStatic, setArrayElement, toArray, toObject, unWrap
clearRef, equals, getBaseObject, getFieldValue, getPropertyIndexValue, getPropertyIndexValue, getPropertyValue, getType, invokeGenericClrObjectMethod, invokeGenericMethod, invokeMethod, invokeVoidMethod, registerEvent, registerEventCallBack, registerEventCallBackWithReturn, setFieldValue, setPropertyIndexValue, setPropertyIndexValue, setPropertyValue, unRegisterEvent, unRegisterEventCallBack, unRegisterEventCallBackWithReturn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, getBaseObject, getFieldValue, getPropertyIndexValue, getPropertyIndexValue, getPropertyValue, getType, invokeGenericMethod, invokeMethod, invokeVoidMethod, registerEventCallBack, registerEventCallBackWithReturn, setFieldValue, setPropertyIndexValue, setPropertyIndexValue, setPropertyValue, unRegisterEventCallBack, unRegisterEventCallBackWithReturn
public TClrGenericObject(DotNetNativeTypes.ClrObject clrGenericObject)
clrGenericObject
- public TClrGenericObject(java.lang.String genericTypeName, java.lang.String[] genericTypeNames, java.lang.Object[] arguments) throws EClrError
genericTypeName
- The type name of generic object to create.genericTypeNames
- A string of generic type names separated by commas or semi-colon.arguments
- An array of arguments that match in number, order, and type the parameters of the constructor to invoke.EClrError
public TClrGenericObject(java.lang.String genericTypeName, java.lang.String[] genericTypeNames, DotNetNativeTypes.ClrObjectArray arguments) throws EClrError
genericTypeName
- The type name of generic object to create.genericTypeNames
- A string of generic type names separated by commas or semi-colon.arguments
- An array of arguments that match in number, order, and type the parameters of the constructor to invoke.EClrError
public void close() throws java.lang.Exception
close
in interface java.lang.AutoCloseable
close
in class TClrObject
java.lang.Exception
public IClrType[] getTypeParameters() throws java.lang.Exception
java.lang.Exception
public java.lang.Class<?>[] getParameterizedTypes() throws java.lang.Exception
java.lang.Exception
public void setParameterizedTypes(java.lang.Class<?>... parameterizedTypes)
parameterizedTypes
- public java.lang.Class<?> resolveTypeArgument(int parameterizedTypeIndex) throws java.lang.Exception
parameterizedTypeIndex
- Specified the parameterized type index in the generic classjava.lang.Exception
public <T> T AsType(java.lang.Class<T> type) throws java.lang.Exception
AsType
in interface IClrObject
AsType
in class TClrObject
type
- The type to be converted to.java.lang.Exception