1
0
mirror of https://github.com/twiglet/cs2j.git synced 2025-01-18 13:15:17 +01:00

69 lines
1.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Class xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="file://C:/Documents%20and%20Settings/kevin.glynn/My%20Documents/CS2JLibrary/Translation.xsd"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Name>System.Reflection.FieldInfo</Name>
<Java>Field</Java>
<Imports>
<Import>java.lang.reflect.Field</Import>
</Imports>
<Properties>
<Property>
<Type>System.String</Type>
<Name>Name</Name>
<Get>${this}.getName()</Get>
</Property>
<Property>
<Type>System.Type</Type>
<Name>FieldType</Name>
<Get>${this}.getType()</Get>
</Property>
</Properties>
<Methods>
<Method>
<Return>System.Object[]</Return>
<Name>GetCustomAttributes</Name>
<Params>
<Param>
<Name>attributeType</Name>
<Type>System.Type</Type>
</Param>
<Param>
<Name>inherits</Name>
<Type>System.Boolean</Type>
</Param>
</Params>
<Java>FieldSupport.getAnnotations(${this}, ${attributeType}, ${inherits})</Java>
<Imports>
<Import>RusticiSoftware.JavaSupport.reflect.FieldSupport</Import>
</Imports>
</Method>
<Method>
<Return>System.Object</Return>
<Name>GetValue</Name>
<Params>
<Param>
<Name>obj</Name>
<Type>System.Object</Type>
</Param>
</Params>
<Java>${this}.get(${obj})</Java>
</Method>
<Method>
<Return>System.Void</Return>
<Name>SetValue</Name>
<Params>
<Param>
<Name>obj</Name>
<Type>System.Object</Type>
</Param>
<Param>
<Name>value</Name>
<Type>System.Object</Type>
</Param>
</Params>
<Java>${this}.set(${obj}, ${value})</Java>
</Method>
</Methods>
</Class>