Is there any way for using an annotation for running a function before currently called function, something like this:
public void doSomethingEarlier() {
}
@DoSomethingEarlier
public void doSomething() {
}
So I want to call doSomethin() function, and before executing this function I want to automatically run doSomethingEarlier() function.