/** * Inserts bytecode at the specified line in the body. * It is equivalent to: * * <br><code>insertAt(lineNum, true, src)</code> * * <br>See this method as well. * * @param lineNum the line number. The bytecode is inserted at the * beginning of the code at the line specified by this * line number. * @param src the source code representing the inserted bytecode. * It must be a single statement or block. * @return the line number at which the bytecode has been inserted. * * @see CtBehavior#insertAt(int,boolean,String) */ public int insertAt(int lineNum, String src) throws CannotCompileException { return insertAt(lineNum, true, src); }
/** * Inserts bytecode at the specified line in the body. * It is equivalent to: * * <br><code>insertAt(lineNum, true, src)</code> * * <br>See this method as well. * * @param lineNum the line number. The bytecode is inserted at the * beginning of the code at the line specified by this * line number. * @param src the source code representing the inserted bytecode. * It must be a single statement or block. * @return the line number at which the bytecode has been inserted. * * @see CtBehavior#insertAt(int,boolean,String) */ public int insertAt(int lineNum, String src) throws CannotCompileException { return insertAt(lineNum, true, src); }
/** * Utility method to inserts callback at the specified line in the body. * * @param behavior The behaviour to insert callback in * @param callback The callback representing. * @param lineNum The line number. The callback is inserted at the * beginning of the code at the line specified by this * line number. * * @return The line number at which the callback has been inserted. * * @see CtBehavior#insertAt(int, String) */ public static int insertAt(CtBehavior behavior, Callback callback, int lineNum) throws CannotCompileException { return behavior.insertAt(lineNum, callback.toString()); } }
/** * Utility method to inserts callback at the specified line in the body. * * @param behavior The behaviour to insert callback in * @param callback The callback representing. * @param lineNum The line number. The callback is inserted at the * beginning of the code at the line specified by this * line number. * * @return The line number at which the callback has been inserted. * * @see CtBehavior#insertAt(int, String) */ public static int insertAt(CtBehavior behavior, Callback callback, int lineNum) throws CannotCompileException { return behavior.insertAt(lineNum, callback.toString()); } }
/** * Inserts bytecode at the specified line in the body. * It is equivalent to: * * <br><code>insertAt(lineNum, true, src)</code> * * <br>See this method as well. * * @param lineNum the line number. The bytecode is inserted at the * beginning of the code at the line specified by this * line number. * @param src the source code representing the inserted bytecode. * It must be a single statement or block. * @return the line number at which the bytecode has been inserted. * * @see CtBehavior#insertAt(int,boolean,String) */ public int insertAt(int lineNum, String src) throws CannotCompileException { return insertAt(lineNum, true, src); }
/** * Inserts bytecode at the specified line in the body. * It is equivalent to: * * <br><code>insertAt(lineNum, true, src)</code> * * <br>See this method as well. * * @param lineNum the line number. The bytecode is inserted at the * beginning of the code at the line specified by this * line number. * @param src the source code representing the inserted bytecode. * It must be a single statement or block. * @return the line number at which the bytecode has been inserted. * * @see CtBehavior#insertAt(int,boolean,String) */ public int insertAt(int lineNum, String src) throws CannotCompileException { return insertAt(lineNum, true, src); }
/** * Inserts bytecode at the specified line in the body. * It is equivalent to: * * <br><code>insertAt(lineNum, true, src)</code> * * <br>See this method as well. * * @param lineNum the line number. The bytecode is inserted at the * beginning of the code at the line specified by this * line number. * @param src the source code representing the inserted bytecode. * It must be a single statement or block. * @return the line number at which the bytecode has been inserted. * * @see CtBehavior#insertAt(int,boolean,String) */ public int insertAt(int lineNum, String src) throws CannotCompileException { return insertAt(lineNum, true, src); }
/** * Inserts bytecode at the specified line in the body. * It is equivalent to: * * <br><code>insertAt(lineNum, true, src)</code> * * <br>See this method as well. * * @param lineNum the line number. The bytecode is inserted at the * beginning of the code at the line specified by this * line number. * @param src the source code representing the inserted bytecode. * It must be a single statement or block. * @return the line number at which the bytecode has been inserted. * * @see CtBehavior#insertAt(int,boolean,String) */ public int insertAt(int lineNum, String src) throws CannotCompileException { return insertAt(lineNum, true, src); }
/** * Inserts bytecode at the specified line in the body. * It is equivalent to: * * <br><code>insertAt(lineNum, true, src)</code> * * <br>See this method as well. * * @param lineNum the line number. The bytecode is inserted at the * beginning of the code at the line specified by this * line number. * @param src the source code representing the inserted bytecode. * It must be a single statement or block. * @return the line number at which the bytecode has been inserted. * * @see CtBehavior#insertAt(int,boolean,String) */ public int insertAt(int lineNum, String src) throws CannotCompileException { return insertAt(lineNum, true, src); }