mirror of
https://github.com/twiglet/cs2j.git
synced 2025-01-18 13:15:17 +01:00
create arraylists from arrays, fix java type corresponding to NumberFormatInfo and NumberStyles
This commit is contained in:
parent
b4bd3cf697
commit
d7298e12b5
@ -24,11 +24,13 @@
|
||||
<Return>System.Int32</Return>
|
||||
</Method>
|
||||
<Method>
|
||||
<Imports />
|
||||
<Java>${this}.addAll(${arg})</Java>
|
||||
<Imports>
|
||||
<Import>java.util.Arrays</Import>
|
||||
</Imports>
|
||||
<Java>${this}.addAll(Arrays.asList(${arg}))</Java>
|
||||
<Params>
|
||||
<Param>
|
||||
<Type>System.Collections.ICollection</Type>
|
||||
<Type>System.Object[]</Type>
|
||||
<Name>arg</Name>
|
||||
</Param>
|
||||
</Params>
|
||||
@ -40,7 +42,7 @@
|
||||
<Java>${this}.addAll(${arg})</Java>
|
||||
<Params>
|
||||
<Param>
|
||||
<Type>System.Array</Type>
|
||||
<Type>System.Collections.ICollection</Type>
|
||||
<Name>arg</Name>
|
||||
</Param>
|
||||
</Params>
|
||||
@ -169,6 +171,18 @@
|
||||
</Param>
|
||||
</Params>
|
||||
</Constructor>
|
||||
<Constructor>
|
||||
<Imports>
|
||||
<Import>java.util.Arrays</Import>
|
||||
</Imports>
|
||||
<Java>new ArrayList(Arrays.asList(${collection}))</Java>
|
||||
<Params>
|
||||
<Param>
|
||||
<Type>System.Object[]</Type>
|
||||
<Name>collection</Name>
|
||||
</Param>
|
||||
</Params>
|
||||
</Constructor>
|
||||
<Constructor>
|
||||
<Imports />
|
||||
<Java>new ArrayList(${collection})</Java>
|
||||
|
@ -1,7 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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>NumberFormatInfo</Java>
|
||||
<Imports>
|
||||
<Import>java.util.Locale</Import>
|
||||
</Imports>
|
||||
<Java>Locale</Java>
|
||||
<Name>System.Globalization.NumberFormatInfo</Name>
|
||||
<Uses />
|
||||
<Inherits>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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>NumberStyles</Java>
|
||||
<Java>int</Java>
|
||||
<Name>System.Globalization.NumberStyles</Name>
|
||||
<Uses />
|
||||
<Inherits> <Type>System.Object</Type> </Inherits>
|
||||
|
Loading…
x
Reference in New Issue
Block a user