Selaa lähdekoodia

added CtClass.main().


git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@50 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
tags/rel_3_17_1_ga
chiba 20 vuotta sitten
vanhempi
commit
c7d2341f4d
4 muutettua tiedostoa jossa 22 lisäystä ja 5 poistoa
  1. 8
    1
      Readme.html
  2. 1
    1
      build.xml
  3. 3
    2
      src/main/META-INF/MANIFEST.MF
  4. 10
    1
      src/main/javassist/CtClass.java

+ 8
- 1
Readme.html Näytä tiedosto

on the local host. on the local host.
(Or, see <a href="sample/evolve/start.html">sample/evolve/start.html</a>.) (Or, see <a href="sample/evolve/start.html">sample/evolve/start.html</a>.)


<h3>8. Hints</h3>
<h2>Hints</h2>

<p>To know the version number, type this command:

<ul><pre>
% java -jar javassist.jar
</pre></ul>


<p>Javassist provides a class file viewer for debugging. For more details, <p>Javassist provides a class file viewer for debugging. For more details,
see javassist.Dump. see javassist.Dump.
<p>- version 2.7 in October, 2003. <p>- version 2.7 in October, 2003.


<ul> <ul>
<li>CtClass.main(), which prints the version number, has been added.
<li>ClassPool.SimpleLoader has been public. <li>ClassPool.SimpleLoader has been public.
<li>javassist.bytecode.DeprecatedAttribute has been added. <li>javassist.bytecode.DeprecatedAttribute has been added.
<li>javassist.bytecode.LocalVariableAttribute has been added. <li>javassist.bytecode.LocalVariableAttribute has been added.

+ 1
- 1
build.xml Näytä tiedosto

</target> </target>
<target name="jar" depends="compile"> <target name="jar" depends="compile">
<jar jarfile="javassist.jar">
<jar jarfile="javassist.jar" manifest="${src.dir}/META-INF/MANIFEST.MF">
<fileset dir="${build.classes.dir}"> <fileset dir="${build.classes.dir}">
<include name="**/*.class"/> <include name="**/*.class"/>
</fileset> </fileset>

+ 3
- 2
src/main/META-INF/MANIFEST.MF Näytä tiedosto

Manifest-Version: 1.0
Manifest-Version: 1.1
Specification-Title: Javassist Specification-Title: Javassist
Created-By: Shigeru Chiba, Tokyo Institute of Technology Created-By: Shigeru Chiba, Tokyo Institute of Technology
Specification-Vendor: Shigeru Chiba, Tokyo Institute of Technology Specification-Vendor: Shigeru Chiba, Tokyo Institute of Technology
Specification-Version: 2.7 Specification-Version: 2.7
Name: javassist/
Main-Class: javassist.CtClass
Name: javassist/

+ 10
- 1
src/main/javassist/CtClass.java Näytä tiedosto

/** /**
* The version number of this release. * The version number of this release.
*/ */
public static final String version = "2.7";
public static final String version = "2.7 beta 1";

/**
* Prints the version number and the copyright notice.
*/
public static void main(String[] args) {
System.out.println("Javassist version " + CtClass.version);
System.out.println("Copyright (C) 1999-2003 Shigeru Chiba."
+ " All Rights Reserved.");
}


static final String javaLangObject = "java.lang.Object"; static final String javaLangObject = "java.lang.Object";



Loading…
Peruuta
Tallenna