mirror of
https://github.com/twiglet/cs2j.git
synced 2025-01-18 13:15:17 +01:00
85 lines
1.9 KiB
XML
85 lines
1.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
|
|
This file is
|
|
|
|
Copyright 2007,2008,2009,2010 Rustici Software, LLC
|
|
Copyright 2010,2011 Kevin Glynn (kevin.glynn@twigletsoftware.com)
|
|
|
|
-->
|
|
<Class xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:www.twigletsoftware.com:schemas:txtemplate:1:0">
|
|
<Imports />
|
|
<Java>${T}[]</Java>
|
|
<Name>System.Array</Name>
|
|
<TypeParams>
|
|
<Name>T</Name>
|
|
</TypeParams>
|
|
<Uses />
|
|
<Inherits>
|
|
<Type>System.Collections.ICollection</Type>
|
|
<Type>System.IEnumerable</Type>
|
|
</Inherits>
|
|
<Iterable>
|
|
<ElementType>T</ElementType>
|
|
<Java>${expr}</Java>
|
|
</Iterable>
|
|
<Methods>
|
|
<Method>
|
|
<Imports>
|
|
<Import>java.util.Arrays</Import>
|
|
</Imports>
|
|
<Java>Array.get(${this}, ${index})</Java>
|
|
<Params>
|
|
<Param>
|
|
<Type>System.Int32</Type>
|
|
<Name>index</Name>
|
|
</Param>
|
|
</Params>
|
|
<Name>GetValue</Name>
|
|
<Return>T</Return>
|
|
</Method>
|
|
<Method>
|
|
<Imports>
|
|
<Import>java.util.Arrays</Import>
|
|
</Imports>
|
|
<Java>Arrays.sort(${array})</Java>
|
|
<Params>
|
|
<Param>
|
|
<Type>System.Object[]</Type>
|
|
<Name>array</Name>
|
|
</Param>
|
|
</Params>
|
|
<Name>Sort</Name>
|
|
<Return>System.Void</Return>
|
|
</Method>
|
|
</Methods>
|
|
<Properties>
|
|
<Property>
|
|
<Imports />
|
|
<Type>System.Int32</Type>
|
|
<Name>Length</Name>
|
|
<Get>${this:16}.length</Get>
|
|
</Property>
|
|
</Properties>
|
|
<Events />
|
|
<Indexers>
|
|
<Indexer>
|
|
<Imports />
|
|
<Params>
|
|
<Param>
|
|
<Type>System.Int32</Type>
|
|
<Name>i</Name>
|
|
</Param>
|
|
</Params>
|
|
<Type>T</Type>
|
|
<Get>${this}[${i}]</Get>
|
|
<Set>${this}[${i}] = ${value}</Set>
|
|
</Indexer>
|
|
</Indexers>
|
|
<Constructors />
|
|
<Fields />
|
|
<Casts />
|
|
<UnaryOps />
|
|
<BinaryOps />
|
|
</Class>
|