The code you posted can be rewritten as such
OnClickerListener newListener = new View.OnClickListener() {
public void onClick(View v) {
}
}
findViewById(R.id.myButton).setOnClickListener(new Listener);
From my understanding, (and this is where yours and my definition of a method might differ), this is not a method inside another method.
What is happening is a new OnClickerListener object is being instantiated, containing a method called onClick. However, this object is also being set as the OnClickListener for findViewById(R.id.myButton) View object as well.
Hope this helps.