Method within a method java : <p>I am reading some java code and I came across the following unfamiliar syntax:</p>

<pre><code>controler.addOverridingModule( new AbstractModule() {
        @Override
        public void install() {
            this.addPlanStrategyBinding("RandomTripToCarsharingStrategy").to( RandomTripToCarsharingStrategy.class ) ;
            this.addPlanStrategyBinding("CarsharingSubtourModeChoiceStrategy").to( CarsharingSubtourModeChoiceStrategy.class ) ;
        }
    });
</code></pre>

<p>I am confused because the developer created a new method ("install") within the call to addOverridingModule. Could someone please tell me what is going on here?</p>

<p>Thanks!</p>
