@ Override public void setDefaultName ( String mname ) throws Exception { if ( mname == null ) { defaultModule = AstFactory . newAModuleModules ( ) ; } else { for ( AModuleModules m : modules ) { if ( m . getName ( ) . getName ( ) . equals ( mname ) ) { defaultModule = m ; return ; } } throw new Exception ( "Module " + mname + " not loaded" ) ; } }
Set the default module to the name given .