version="true"\r
use="true"\r
Locale="en_US"\r
+ charset="iso-8859-1"\r
Public="true"\r
nohelp="true"\r
windowtitle="Javassist API">\r
* @param oldName replaced class name
* @param newName substituted class name
*/
- public void replaceClassName(String oldname, String newname) {
+ public void replaceClassName(String oldName, String newName) {
checkModify();
}
* For details of the method descriptor, see the JVM specification
* or <code>javassist.bytecode.Descriptor</code>.
*
- * @param name method name
* @param desc method descriptor
* @see javassist.bytecode.Descriptor
*/
/**
* Creates a public constructor.
*
- * @param returnType the type of the returned value.
- * @param mname the method name.
* @param parameters a list of the parameter types.
* @param exceptions a list of the exception types.
* @param body the source text of the constructor body.
*
* @param returnType the type of the returned value.
* @param mname the method name.
- * @param parameters a list of the parameter types.
- * @param exceptions a list of the exception types.
+ * @param parameterTypes a list of the parameter types.
+ * @param exceptionTypes a list of the exception types.
* @param body the method body
* (must not be a static method).
* @param constParam the constant parameter
/**
* Main method.
*
- * @param args[0] class file name.
+ * @param args <code>args[0]</code> is the class file name.
*/
public static void main(String[] args) throws Exception {
if (args.length != 1) {
*
* <p>This method calls <code>run()</code>.
*
- * @param args[0] class name to be loaded.
- * @param args[1-n] parameters passed to <code>main()</code>.
+ * @param args command line parameters.
+ * <ul>
+ * <code>args[0]</code> is the class name to be loaded.
+ * <br><code>args[1..n]</code> are parameters passed
+ * to the target <code>main()</code>.
+ * </ul>
*
* @see javassist.Loader#run(String[])
*/
/**
* Loads a class and calls <code>main()</code> in that class.
*
- * @param args[0] the name of the loaded class.
- * @param args[1-n] parameters passed to <code>main()</code>.
+ * @param args command line parameters.
+ * <ul>
+ * <code>args[0]</code> is the class name to be loaded.
+ * <br><code>args[1..n]</code> are parameters passed
+ * to the target <code>main()</code>.
+ * </ul>
*/
public void run(String[] args) throws Throwable {
int n = args.length - 1;
/**
* Appends a gap at the end of the bytecode sequence.
*
- * @param length gap length
+ * @param gapLength gap length
*/
public void appendGap(int gapLength) {
byte[] code = bytecode;
* Adds a new <code>CONSTANT_Fieldref_info</code> structure.
*
* @param classInfo <code>class_index</code>
- * @param nameandtypeinfo <code>name_and_type_index</code>.
+ * @param nameAndTypeInfo <code>name_and_type_index</code>.
* @return the index of the added entry.
*/
public int addFieldrefInfo(int classInfo, int nameAndTypeInfo) {
* Adds a new <code>CONSTANT_Methodref_info</code> structure.
*
* @param classInfo <code>class_index</code>
- * @param nameandtypeinfo <code>name_and_type_index</code>.
+ * @param nameAndTypeInfo <code>name_and_type_index</code>.
* @return the index of the added entry.
*/
public int addMethodrefInfo(int classInfo, int nameAndTypeInfo) {
* structure.
*
* @param classInfo <code>class_index</code>
- * @param nameandtypeinfo <code>name_and_type_index</code>.
+ * @param nameAndTypeInfo <code>name_and_type_index</code>.
* @return the index of the added entry.
*/
public int addInterfaceMethodrefInfo(int classInfo,
* Constructs a Deprecated attribute.
*
* @param cp a constant pool table.
- * @param filename the name of the source file.
*/
public DeprecatedAttribute(ConstPool cp) {
super(cp, tag, new byte[0]);
* Constructs a Synthetic attribute.
*
* @param cp a constant pool table.
- * @param filename the name of the source file.
*/
public SyntheticAttribute(ConstPool cp) {
super(cp, tag, new byte[0]);
*
* <p>This program is run as follows:
*
- * <ul><pre>% java Main2 arg1, ...</code>
+ * <ul><pre>% java Main2 arg1, ...</pre></ul>
*
* <p>The difference from the former one is that the class <code>Main</code>
* is loaded by <code>javassist.reflect.Loader</code> whereas the class
* Loads a class with an instance of <code>Loader</code>
* and calls <code>main()</code> in that class.
*
- * @param args[0] class name to be loaded.
- * @param args[1-n] parameters passed to <code>main()</code>.
+ * @param args command line parameters.
+ * <ul>
+ * <code>args[0]</code> is the class name to be loaded.
+ * <br><code>args[1..n]</code> are parameters passed
+ * to the target <code>main()</code>.
+ * </ul>
*/
public static void main(String[] args) throws Throwable {
Loader cl = new Loader();
* the proxy class and call a method on the exported object.
*
* @param name the name used for looking the object up.
- * @param object the exported object.
+ * @param obj the exported object.
* @return the object identifier
*
* @see javassist.rmi.ObjectImporter#lookupObject(String)