* caching of classes.
*
* @see #getCached(String)
- * @see #removeCached(String,CtClass)
+ * @see #removeCached(String)
*/
protected void cacheCtClass(String classname, CtClass c, boolean dynamic) {
classes.put(classname, c);
/**
* @param useCache false if the cached CtClass must be ignored.
- * @param searchParent false if the parent class pool is not searched.
* @return null if the class could not be found.
*/
protected synchronized CtClass get0(String classname, boolean useCache)
* @param pos the position of LOOKUPSWITCH
* @param code bytecode
* @param n the number of case labels
- * @param offsetPos the position of the table of pairs of a value and a branch target.
+ * @param pairsPos the position of the table of pairs of a value and a branch target.
* @param defaultOffset the offset to the default branch target.
*/
protected void visitLookupSwitch(int pos, byte[] code, int n,
* Divides the method body into basic blocks.
* The type information of the first block is initialized.
*
- * @param optmize if it is true and the method does not include
+ * @param optimize if it is true and the method does not include
* branches, this method returns null.
*/
public static TypedBlock[] makeBlocks(MethodInfo minfo, CodeAttribute ca,
* @param accDesc the descriptor of the accessor method. The first
* parameter type is <code>clazz</code>.
* If the private method is static,
- * <code>accDesc<code> must be identical to <code>desc</code>.
+ * <code>accDesc</code> must be identical to <code>desc</code>.
*
* @param orig the method info of the private method.
* @return
/**
* Compiles a method (or constructor) body.
*
- * @src a single statement or a block.
- * If null, this method produces a body returning zero or null.
+ * @param src a single statement or a block.
+ * If null, this method produces a body returning zero or null.
*/
public Bytecode compileBody(CtBehavior method, String src)
throws CompileError
* <code>isStatic</code> must be recorded before compilation.
* <code>maxLocals</code> is updated to include $0,...
*
- * @paaram use0 true if $0 is used.
+ * @param use0 true if $0 is used.
* @param varNo the register number of $0 (use0 is true)
* or $1 (otherwise).
* @param target the type of $0 (it can be null if use0 is false).
}
/**
- * @param name a qualified class name. e.g. java.lang.String
+ * @param className a qualified class name. e.g. java.lang.String
*/
public CtField lookupField(String className, Symbol fieldName)
throws CompileError
}
/**
- * @parma classname jvm class name.
+ * @param classname jvm class name.
*/
public CtClass lookupClass(int type, int dim, String classname)
throws CompileError
* An interface to an object for implementing $proceed().
*
* @see javassist.compiler.JvstCodeGen#setProceedHandler(ProceedHandler, String)
- * @see javassist.compiler.JvstCodeGen#atMethodCall(Expr)
*/
public interface ProceedHandler {
void doit(JvstCodeGen gen, Bytecode b, ASTList args) throws CompileError;
/**
* The visitor pattern.
*
- * @see ast.ASTree#accept(Visitor)
+ * @see ASTree#accept(Visitor)
*/
public class Visitor {
public void atASTList(ASTList n) throws CompileError {}