// export elementRules as ElementDecl
ReferenceExp[] refs= module.elementRules.getAll();
for( int i=0; i<refs.length; i++ )
if( ((ElementRules)refs[i]).exported )
elementDecls.put( refs[i].name, new DeclImpl(refs[i]) );
// export hedgeRules as ElementDecl.
// each exportable hedgeRule must be of length 1,
// but it should have already checked.
refs = module.hedgeRules.getAll();
for( int i=0; i<refs.length; i++ )
if ( ((HedgeRules)refs[i]).exported )
elementDecls.put( refs[i].name, new DeclImpl(refs[i]) );
// export attPools as AttributesDecl
ExportedAttPoolGenerator expGen = new ExportedAttPoolGenerator( module.pool );
refs = module.attPools.getAll();
for( int i=0; i<refs.length; i++ )
if( ((AttPoolClause)refs[i]).exported )
attributesDecls.put( refs[i].name,
new DeclImpl( refs[i].name, expGen.create(module,refs[i].exp) ) );
}