/*
 * 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 String _path;
  private final XtypeTable _typeTable;

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

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

@@ -153,17 +153,16 @@
 ument;%0A%0A
-%0A
 /**%0A * T
@@ -417,16 +417,221 @@
 Table;%0A%0A
+  /**%0A   * Constructs a basic Xmod object representing the XcodeML module file given%0A   * in input.%0A   * @param baseElement XcodeML document.%0A   * @param path        Path of the XcodeML module file.%0A   */%0A
   public
@@ -931,16 +931,16 @@
 able()%7B%0A
-
     retu
@@ -957,11 +957,166 @@
 ble;%0A  %7D
+%0A%0A  /**%0A   * Get the path associated with this XcodeML module.%0A   * @return Path of the module file.%0A   */%0A  public String getPath()%7B%0A    return _path;%0A  %7D
 %0A%7D%0A

Add comments + getPath()