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

package cx2x.xcodeml.xelement;

import org.w3c.dom.Element;

/**
 * Xindex class is the common class for XarrayIndex (8.10) and
 * XindexRange (8.11).
 *
 * @see XarrayIndex
 * @see XindexRange
 *
 * @author clementval
 */
public class Xindex extends XbaseElement {

  /**
   * Xelement standard ctor. Pass the base element to the base class and read
   * inner information (elements and attributes).
   * @param baseElement The root element of the Xelement
   */
  public Xindex(Element baseElement){
    super(baseElement);
  }
}

@@ -623,11 +623,167 @@
 nt);%0A  %7D
+%0A%0A  public boolean isArrayIndex()%7B%0A    return this instanceof XarrayIndex;%0A  %7D%0A%0A  public boolean isIndexRange()%7B%0A    return this instanceof XindexRange;%0A  %7D
 %0A%7D%0A

Add method to know the type of a Xindex object