/*
 * This file is released under terms of BSD license
 * See LICENSE file for more information
 */

package cx2x.xcodeml.xnode;

import org.w3c.dom.Document;


/**
 * The Xmod represents the module information produced by the Fortran front-end
 * of OMNI Compiler.
 *
 * @author clementval
 */
public class Xmod extends Xnode {

  // Xmod inner elements
  private final XtypeTable _typeTable;

  public Xmod(Document baseElement){
    super(baseElement.getDocumentElement());
    _typeTable = new XtypeTable(find(Xcode.TYPETABLE).getElement());
  }


  /**
   * Get the type table of the Xmod module.
   * @return The types table.
   */
  public XtypeTable getTypeTable(){
    return _typeTable;
  }
}

@@ -348,16 +348,46 @@
 lements%0A
+  private final String _path;%0A
   privat
@@ -452,16 +452,29 @@
 eElement
+, String path
 )%7B%0A    s
@@ -584,18 +584,35 @@
 t());%0A  
+  _path = path;%0A  
 %7D
-%0A
 %0A%0A  /**%0A

Add path information to the module object