I have created a java class which delegates all calls to another class.
I want that on each method call program will output some info - method name and arguments.
There are very many methods in that class, so I don't want to insert System.out.println()
in each method manually.
Is there any way to do it with regex?
here is a sample method with required println() line:
private final PreparedStatement statement;
@Override
public void setNull(int parameterIndex, int sqlType) throws SQLException {
System.out.println("setNull: parameterIndex=" + ", sqlType" + sqlType);
statement.setNull(parameterIndex, sqlType);
}