mirror of
https://github.com/twiglet/cs2j.git
synced 2025-01-18 13:15:17 +01:00
78 lines
1.9 KiB
XML
78 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>Number</Java>
|
|
<Name>System.Number</Name>
|
|
<Uses />
|
|
<Inherits>
|
|
<Type>System.Object</Type>
|
|
</Inherits>
|
|
<Properties>
|
|
<Property>
|
|
<Imports />
|
|
<Java>${this} != null</Java>
|
|
<Type>System.Boolean</Type>
|
|
<Name>HasValue</Name>
|
|
<Get>${this} != null</Get>
|
|
<Set>${this:16}.setHasValue(${value})</Set>
|
|
</Property>
|
|
</Properties>
|
|
<Methods>
|
|
<Method>
|
|
<Imports>
|
|
<Import>java.text.NumberFormat</Import>
|
|
</Imports>
|
|
<Java>NumberFormat.getInstance(${provider}).format(${this})</Java>
|
|
<Params>
|
|
<Param>
|
|
<Type>System.Globalization.CultureInfo</Type>
|
|
<Name>provider</Name>
|
|
</Param>
|
|
</Params>
|
|
<Name>ToString</Name>
|
|
<Return>System.String</Return>
|
|
</Method>
|
|
<Method>
|
|
<Imports>
|
|
<Import>CS2JNet.System.NumberSupport</Import>
|
|
</Imports>
|
|
<Java>NumberSupport.format(${this}, ${format})</Java>
|
|
<Params>
|
|
<Param>
|
|
<Type>System.String</Type>
|
|
<Name>format</Name>
|
|
</Param>
|
|
</Params>
|
|
<Name>ToString</Name>
|
|
<Return>System.String</Return>
|
|
</Method>
|
|
<Method>
|
|
<Java>${value} == ${this} ? 0 : (${value} > ${this} ? 1 : -1)</Java>
|
|
<Params>
|
|
<Param>
|
|
<Type>System.Number</Type>
|
|
<Name>value</Name>
|
|
</Param>
|
|
</Params>
|
|
<Name>CompareTo</Name>
|
|
<Return>System.Int32</Return>
|
|
</Method>
|
|
</Methods>
|
|
<Properties />
|
|
<Events />
|
|
<Indexers />
|
|
<Constructors />
|
|
<Fields />
|
|
<Casts />
|
|
<UnaryOps />
|
|
<BinaryOps />
|
|
</Class>
|