mirror of
https://github.com/twiglet/cs2j.git
synced 2025-01-18 13:15:17 +01:00
add translations
This commit is contained in:
parent
65bd4c53b7
commit
f960e50051
29
CS2JLibrary/NetFramework/System/EventArgs.xml
Normal file
29
CS2JLibrary/NetFramework/System/EventArgs.xml
Normal file
@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
|
||||
This file is
|
||||
|
||||
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>
|
||||
<Import>CS2JNet.JavaSupport.language.EventArgs</Import>
|
||||
</Imports>
|
||||
<Java>EventArgs</Java>
|
||||
<Name>System.EventArgs</Name>
|
||||
<Uses />
|
||||
<Inherits>
|
||||
<Type>System.Object</Type>
|
||||
</Inherits>
|
||||
<Methods />
|
||||
<Properties>
|
||||
</Properties>
|
||||
<Events />
|
||||
<Indexers />
|
||||
<Constructors />
|
||||
<Fields />
|
||||
<Casts />
|
||||
<UnaryOps />
|
||||
<BinaryOps />
|
||||
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI=""><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>ptKNWkfazFtlOdOMKPsKSvD096c=</DigestValue></Reference></SignedInfo><SignatureValue>ROp3Fp6wLw1rNYGt34gt3gvDzWW0XKLPMB9/vcEJL4Psd5erNgP2m1dNBPVYZ5/Sq7hReNwFGygxVoNDbJuC9gJ0LAS/mukUnTObx0qvfsSQzD/+RZc6iiN8Jlq3XNaV7yv2NwrQ07JnTBUT3RTeOXLLdPgVCUSRpVc87PJVifg=</SignatureValue></Signature></Class>
|
44
CS2JLibrary/NetFramework/System/GC.xml
Normal file
44
CS2JLibrary/NetFramework/System/GC.xml
Normal file
@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
|
||||
This file is
|
||||
|
||||
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></Imports>
|
||||
<Name>System.GC</Name>
|
||||
<Uses />
|
||||
<Methods>
|
||||
<Method>
|
||||
<Java>System.gc()</Java>
|
||||
<Params>
|
||||
</Params>
|
||||
<Name>Collect</Name>
|
||||
<Return>System.Void</Return>
|
||||
</Method>
|
||||
<Method>
|
||||
<Warning>GCSupport.SuppressFinalize has no effect. It is not possible to suppress finalize() in Java</Warning>
|
||||
<Imports>
|
||||
<Import>CS2JNet.System.GCSupport</Import>
|
||||
</Imports>
|
||||
<Java>GCSupport.SuppressFinalize(${arg}) /* CS2J: this call does nothing */</Java>
|
||||
<Params>
|
||||
<Param>
|
||||
<Type>System.Object</Type>
|
||||
<Name>arg</Name>
|
||||
</Param>
|
||||
</Params>
|
||||
<Name>SuppressFinalize</Name>
|
||||
<Return>System.Void</Return>
|
||||
</Method>
|
||||
</Methods>
|
||||
<Properties />
|
||||
<Events />
|
||||
<Indexers />
|
||||
<Fields />
|
||||
<Casts />
|
||||
<UnaryOps />
|
||||
<BinaryOps />
|
||||
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI=""><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>yu2wOTyUyadVCuq3eoz/y2QNoGs=</DigestValue></Reference></SignedInfo><SignatureValue>ZdPXY6PcJn6yuDYvUzlFwxVDdR1r5a+dX1bLKQnRZKq7e8TV/K5ObmfbOkAvmqd+eIBWUlUSHbCPMoRlhYW8BQFIYcOf2YvItZLn9QWO1PWlvkNYPVmmofT9OCupVfRAB+ZIL10fi1NvAE65S24UqVpSAuk6qXrOqFvRyvhBQ00=</SignatureValue></Signature></Class>
|
80
CS2JLibrary/NetFramework/System/ObjectDisposedException.xml
Normal file
80
CS2JLibrary/NetFramework/System/ObjectDisposedException.xml
Normal file
@ -0,0 +1,80 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
|
||||
This file is
|
||||
|
||||
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>
|
||||
<Import>CS2JNet.System.ObjectDisposedException</Import>
|
||||
</Imports>
|
||||
<Java>ObjectDisposedException</Java>
|
||||
<Name>System.ObjectDisposedException</Name>
|
||||
<Uses />
|
||||
<Inherits>
|
||||
<Type>System.Exception</Type>
|
||||
</Inherits>
|
||||
<Methods />
|
||||
<Properties />
|
||||
<Events />
|
||||
<Indexers />
|
||||
<Constructors>
|
||||
<Constructor>
|
||||
<Imports>
|
||||
<Import>CS2JNet.System.ObjectDisposedException</Import>
|
||||
</Imports>
|
||||
<Java>new ObjectDisposedException()</Java>
|
||||
<Params />
|
||||
</Constructor>
|
||||
<Constructor>
|
||||
<Imports>
|
||||
<Import>CS2JNet.System.ObjectDisposedException</Import>
|
||||
</Imports>
|
||||
<Java>new ObjectDisposedException(${message})</Java>
|
||||
<Params>
|
||||
<Param>
|
||||
<Type>System.String</Type>
|
||||
<Name>message</Name>
|
||||
</Param>
|
||||
</Params>
|
||||
</Constructor>
|
||||
<Constructor>
|
||||
<Imports>
|
||||
<Import>CS2JNet.System.ObjectDisposedException</Import>
|
||||
</Imports>
|
||||
<Java>new ObjectDisposedException(${info},${ctxt})</Java>
|
||||
<Params>
|
||||
<Param>
|
||||
<Type>System.SerializationInfo</Type>
|
||||
<Name>info</Name>
|
||||
</Param>
|
||||
<Param>
|
||||
<Type>System.StreamingContext</Type>
|
||||
<Name>ctxt</Name>
|
||||
</Param>
|
||||
</Params>
|
||||
</Constructor>
|
||||
<Constructor>
|
||||
<Imports>
|
||||
<Import>CS2JNet.System.ObjectDisposedException</Import>
|
||||
</Imports>
|
||||
<Java>new ObjectDisposedException(${message}, ${inner})</Java>
|
||||
<Params>
|
||||
<Param>
|
||||
<Type>System.String</Type>
|
||||
<Name>message</Name>
|
||||
</Param>
|
||||
<Param>
|
||||
<Type>System.Exception</Type>
|
||||
<Name>inner</Name>
|
||||
</Param>
|
||||
</Params>
|
||||
</Constructor>
|
||||
</Constructors>
|
||||
<Fields />
|
||||
<Casts />
|
||||
<UnaryOps />
|
||||
<BinaryOps />
|
||||
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI=""><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>yu2wOTyUyadVCuq3eoz/y2QNoGs=</DigestValue></Reference></SignedInfo><SignatureValue>ZdPXY6PcJn6yuDYvUzlFwxVDdR1r5a+dX1bLKQnRZKq7e8TV/K5ObmfbOkAvmqd+eIBWUlUSHbCPMoRlhYW8BQFIYcOf2YvItZLn9QWO1PWlvkNYPVmmofT9OCupVfRAB+ZIL10fi1NvAE65S24UqVpSAuk6qXrOqFvRyvhBQ00=</SignatureValue></Signature></Class>
|
41
CS2JLibrary/src/CS2JNet/JavaSupport/language/RefSupport.java
Normal file
41
CS2JLibrary/src/CS2JNet/JavaSupport/language/RefSupport.java
Normal file
@ -0,0 +1,41 @@
|
||||
/*
|
||||
Copyright 2010,2011 Kevin Glynn (kevin.glynn@twigletsoftware.com)
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
Author(s):
|
||||
|
||||
Kevin Glynn (kevin.glynn@twigletsoftware.com)
|
||||
*/
|
||||
package CS2JNet.JavaSupport.language;
|
||||
|
||||
|
||||
// Wraps a parameter so that it can be used as a ref or out param.
|
||||
public class RefSupport<T> {
|
||||
|
||||
private T value;
|
||||
|
||||
/**
|
||||
* @param value the value to set
|
||||
*/
|
||||
public void setValue(T value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the value
|
||||
*/
|
||||
public T getValue() {
|
||||
return value;
|
||||
}
|
||||
}
|
46
CS2JLibrary/src/CS2JNet/System/ObjectDisposedException.java
Normal file
46
CS2JLibrary/src/CS2JNet/System/ObjectDisposedException.java
Normal file
@ -0,0 +1,46 @@
|
||||
/*
|
||||
Copyright 2010,2011 Kevin Glynn (kevin.glynn@twigletsoftware.com)
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
Author(s):
|
||||
|
||||
Kevin Glynn (kevin.glynn@twigletsoftware.com)
|
||||
*/
|
||||
|
||||
package CS2JNet.System;
|
||||
|
||||
/**
|
||||
* @author keving
|
||||
*
|
||||
*/
|
||||
public class ObjectDisposedException extends Exception {
|
||||
|
||||
public ObjectDisposedException() {
|
||||
|
||||
}
|
||||
|
||||
public ObjectDisposedException(String msg) {
|
||||
super(msg);
|
||||
}
|
||||
|
||||
public ObjectDisposedException(Throwable inner) {
|
||||
super(inner);
|
||||
}
|
||||
|
||||
public ObjectDisposedException(String msg, Throwable inner) {
|
||||
super(msg, inner);
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user