XES - User Guide - Converting Java Source code to C#

First startup the program as described in the main guide here. You will then get the program as shown here:

Click on the 'load java code' button at the bottom of the right pane. You will then get the file dialog to select the file required. When the file is loaded you will then see the symbol table as follows:

You can then modify any entries in the symbol table, for instance you may want to change:

java.io.*

to

System

When you have made any changes required to the symbol table, you can then select the 'transform' tab at the bottom of the left pane.

You can then press the 'load XSLT' button to bring up the open file dialog:

To convert to C# select the 'toCSharp.xsl' script. Clicking on open puts this in the left pane.

Clicking on 'Transform' at the bottom of the left screen puts the results in the right screen.

Clicking on 'Save to file' at the bottom of the right screen allows the generated code to be saved.


metadata block
see also:

Using XML with java

Correspondence about this page

This site may have errors. Don't use for critical systems.

Copyright (c) 1998-2023 Martin John Baker - All rights reserved - privacy policy.