PageRenderTime 73ms CodeModel.GetById 7ms RepoModel.GetById 0ms app.codeStats 0ms

/projects/jasml-0.10/doc/userguide.html

https://gitlab.com/essere.lab.public/qualitas.class-corpus
HTML | 152 lines | 124 code | 22 blank | 6 comment | 0 complexity | 791809eb8b5cab74ad102df6fb77c895 MD5 | raw file
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html><!-- InstanceBegin template="/Templates/jasml_template.dwt" codeOutsideHTMLIsLocked="false" -->
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  5. <meta name="keywords" content="java assemble assembling compiler decompiler jasmin byte code macro instrcution java virtual machine instruction">
  6. <!-- InstanceBeginEditable name="doctitle" -->
  7. <title>Jasml - User Guide</title>
  8. <!-- InstanceEndEditable -->
  9. <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
  10. <link href="style.css" rel="stylesheet" type="text/css">
  11. <style type="text/css">
  12. <!--
  13. .STYLE3 {font-size: small}
  14. -->
  15. </style>
  16. </head>
  17. <body>
  18. <h1 align="center" ><strong><a href="index.html" class="NOUnderLine">Jasml</a> </strong></h1>
  19. <h1 align="center" ><strong>The Java Assembling Language </strong></h1>
  20. <hr>
  21. <table width="100%" border="0" cellspacing="2" cellpadding="6">
  22. <tr valign="top">
  23. <td width="230" nowrap="nowrap" class="TableRightBorder"> <p><a href="index.html"><strong>Jasml Home</strong></a></p>
  24. <p>
  25. <a href="userguide.html"><strong>User Guide </strong></a> </p>
  26. <ul>
  27. <li><a href="userguide.html#gui_ins" class="NOUnderLine">Installation</a></li>
  28. </ul>
  29. <ul>
  30. <li><a href="userguide.html#gui_com" class="NOUnderLine">Command Line Parameters </a></li>
  31. </ul>
  32. <p><a href="example.html"><strong>A Simple Example</strong></a></p>
  33. <a href="syntax.html"><strong>Jasml Syntax </strong></a>
  34. <ul>
  35. <li><a href="syntax.html#min" class="NOUnderLine">Minor and Major versions</a></li>
  36. </ul>
  37. <ul>
  38. <li><a href="syntax.html#cla" class="NOUnderLine">Class or Interface Definitions</a></li>
  39. </ul>
  40. <ul>
  41. <li><a href="syntax.html#fie" class="NOUnderLine">Field Definitions</a></li>
  42. </ul>
  43. <ul>
  44. <li><a href="syntax.html#met" class="NOUnderLine">Methods Declarations </a></li>
  45. </ul>
  46. <ul>
  47. <li><a href="syntax.html#cla_att" class="NOUnderLine">Class Attribute Declarations</a></li>
  48. </ul>
  49. <ul>
  50. <li><a href="syntax.html#num" class="NOUnderLine">Numbers Strings and Chars</a></li>
  51. </ul> <ul>
  52. <li><a href="syntax.html#com" class="NOUnderLine">Comments</a></li>
  53. </ul>
  54. <p><a href="syntax_attr.html"><strong>Attributes </strong></a></p>
  55. <p><a href="syntax_instr.html" ><strong>Java Macro Instructions</strong></a></p>
  56. <p><a href="instructionindex.html"><strong>Java Macro Instruction Index </strong></a> </p>
  57. <p><a href="javadoc/index.html"><strong>Javadoc</strong></a> </p>
  58. <p><a href="download.html"><strong>Download</strong></a> </p>
  59. <p>&nbsp;</p>
  60. <p><a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=168010&amp;type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" /></a>
  61. </p>
  62. <p>&nbsp;</p></td>
  63. <td><!-- InstanceBeginEditable name="content" -->
  64. <p class="PageTitle">User Guide </p>
  65. <p class="ContentTitle"><a name="gui_ins">Installation:</a></p>
  66. <p>Download the JASML package, then unpack the file to your local directory, say, d:\jasml.<br>
  67. The directory should contain the following files and dirs:<br>
  68. jasml.jar , this is the JASML lib files.<br>
  69. doc , contains the documentation.<br>
  70. src , jasml source code.</p>
  71. <p>Before running JASML, make sure:<br>
  72. 1. JRE is properly installed and configured.<br>
  73. 2. Adding jasml.jar to your classpath, this can be down with <br>
  74. <span class="CodeSample">set classpath=%classpath%;d:\jasml\jasml.jar </span><br>
  75. replace d:\jasml to your the directory where the files are unpackaged.</p>
  76. <p class="ContentTitle"><a name="gui_com">Command Line Parameters:</a></p>
  77. <p>
  78. <pre>
  79. java jasml [-options] name
  80. name the name of the file to process.
  81. options can be:
  82. -d decompile java class into .jasm file.
  83. -c compile jasm file into .class file.
  84. -o override without prompt if the file already exists.
  85. -r process all sub-directories.
  86. if this is specified, name must be a directory name.
  87. -h show a discription for each instruction.
  88. -s label will occupy a single line in generated .jasm file.
  89. -l generate LineNumberTable when decompiling classes.
  90. </pre>
  91. </p>
  92. <p class="ContentTitle">Samples:</p>
  93. <p>
  94. <pre>
  95. java jasml -d c:\testpackage\SimpleClass.class
  96. decompile c:\testpackage\SimpleClass.class, into c:\testpackage\SimpleClass.jasm.
  97. java jasml -d -h -s -l c:\testpackage\SimpleClass.class
  98. decompile c:\testpackage\SimpleClass.class, into c:\testpackage\SimpleClass.jasm,
  99. generating a description of each macro instruction, outputing the LineNumberTable
  100. attribute for each method, and each label will occupy a single line in the
  101. generated .jasm file.
  102. java jasml -d -o c:\testpackage\SimpleClass.class
  103. decompile c:\testpackage\SimpleClass.class, if c:\testpackage\SimpleClass.jasm
  104. already exists, override it.
  105. java jasml -d -o c:\testpackage
  106. decompile all .class file in c:\testpackage, and override existing .jasm files.
  107. java jasml -d -o -r c:\testpackage
  108. decompile all .class file in c:\testpackage and its sub-directories, and
  109. override existing .jasm files.
  110. java jasml -c c:\testpackage\SimpleClass.jasm
  111. compile c:\testpackage\SimpleClass.jasml into c:\testpackage\SimpleClass.class.
  112. java jasml -c -o c:\testpackage\SimpleClass.jasm
  113. compile c:\testpackage\SimpleClass.jasml into c:\testpackage\SimpleClass.class.
  114. if c:\testpackage\SimpleClass.class already exists, override it.
  115. java jasml -c -o c:\testpackage\
  116. compile all .jasm files in c:\testpackage and its sub-directory into .class files,
  117. and override all existing files.
  118. </pre>
  119. <br>
  120. </p>
  121. <!-- InstanceEndEditable --></td>
  122. </tr>
  123. <tr>
  124. <td colspan="2" align="center">
  125. <hr>
  126. <span class="STYLE3">Copyright 2006 - <a href="mailto:yang.jiang.z@gmail.com">Jiang Yang</a> , All Rights Reserved </span></td>
  127. </tr>
  128. </table>
  129. </body>
  130. <!-- InstanceEnd --></html>