gt:     ASTNode$State state = state();
context: /* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */
  package soot.JastAddJ;
  
  import java.util.HashSet;
  import java.io.File;
  import java.util.*;
  import beaver.*;
  import java.util.ArrayList;
  import java.util.zip.*;
  import java.io.*;
  import java.io.FileNotFoundException;
  import java.util.Collection;
  import soot.*;
  import soot.util.*;
  import soot.jimple.*;
  import soot.coffi.ClassFile;
  import soot.coffi.method_info;
  import soot.coffi.CONSTANT_Utf8_info;
  import soot.tagkit.SourceFileTag;
  import soot.coffi.CoffiMethodSource;
  /**
   * @production ArrayAccess : {@link Access} ::= <span class="component">{@link Expr}</span>;
   * @ast node
   * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/java.ast:31
   */
  public class ArrayAccess extends Access implements Cloneable {
    /**
     * @apilevel low-level
     */
    public void flushCache() {
      super.flushCache();
      type_computed = false;
      type_value = null;
    }
    /**
     * @apilevel internal
     */
    public void flushCollectionCache() {
      super.flushCollectionCache();
    }
    /**
     * @apilevel internal
     */
    @SuppressWarnings({"unchecked", "cast"})
    public ArrayAccess clone() throws CloneNotSupportedException {
      ArrayAccess node = (ArrayAccess)super.clone();
      node.type_computed = false;
      node.type_value = null;
      node.in$Circle(false);
      node.is$Final(false);
      return node;
    }
    /**
     * @apilevel internal
     */
    @SuppressWarnings({"unchecked", "cast"})
    public ArrayAccess copy() {
      try {
        ArrayAccess node = (ArrayAccess) clone();
        node.parent = null;
        if(children != null)
          node.children = (ASTNode[]) children.clone();
        return node;
      } catch (CloneNotSupportedException e) {
        throw new Error("Error: clone not supported for " +
          getClass().getName());
      }
    }
    /**
     * Create a deep copy of the AST subtree at this node.
     * The copy is dangling, i.e. has no parent.
     * @return dangling copy of the subtree at this node
     * @apilevel low-level
     */
    @SuppressWarnings({"unchecked", "cast"})
    public ArrayAccess fullCopy() {
      ArrayAccess tree = (ArrayAccess) copy();
      if (children != null) {
        for (int i = 0; i < children.length; ++i) {
          ASTNode child = (ASTNode) children[i];
          if(child != null) {
            child = child.fullCopy();
            tree.setChild(child, i);
          }
        }
      }
      return tree;
    }
    /**
     * @ast method 
     * @aspect PrettyPrint
     * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:514
     */
    public void toString(StringBuffer s) {
      s.append("[");
      getExpr().toString(s);
      s.append("]");
    }
    /**
     * @ast method 
     * @aspect TypeCheck
     * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeCheck.jrag:137
     */
    public void typeCheck() {
      if(isQualified() && !qualifier().type().isArrayDecl() && !qualifier().type().isUnknown())
        error("the type " + qualifier().type().name() + " of the indexed element is not an array");
      if(!getExpr().type().unaryNumericPromotion().isInt() || !getExpr().type().isIntegralType())
        error("array index must be int after unary numeric promotion which " + getExpr().type().typeName() + " is not");
    }
    /**
     * @ast method 
     * @aspect Expressions
     * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Expressions.jrag:410
     */
    public soot.Value eval(Body b) {
      soot.Value arrayRef = b.newTemp(prevExpr().eval(b));
      soot.Value arrayIndex = b.newTemp(getExpr().eval(b));
      return b.newArrayRef(
        asLocal(b, arrayRef),
        asImmediate(b, arrayIndex),
        this
      );
    }
    /**
     * @ast method 
     * 
     */
    public ArrayAccess() {
      super();
  
  
    }
    /**
     * Initializes the child array to the correct size.
     * Initializes List and Opt nta children.
     * @apilevel internal
     * @ast method
     * @ast method 
     * 
     */
    public void init$Children() {
      children = new ASTNode[1];
    }
    /**
     * @ast method 
     * 
     */
    public ArrayAccess(Expr p0) {
      setChild(p0, 0);
    }
    /**
     * @apilevel low-level
     * @ast method 
     * 
     */
    protected int numChildren() {
      return 1;
    }
    /**
     * @apilevel internal
     * @ast method 
     * 
     */
    public boolean mayHaveRewrite() {
      return false;
    }
    /**
     * Replaces the Expr child.
     * @param node The new node to replace the Expr child.
     * @apilevel high-level
     * @ast method 
     * 
     */
    public void setExpr(Expr node) {
      setChild(node, 0);
    }
    /**
     * Retrieves the Expr child.
     * @return The current node used as the Expr child.
     * @apilevel high-level
     * @ast method 
     * 
     */
    public Expr getExpr() {
      return (Expr)getChild(0);
    }
    /**
     * Retrieves the Expr child.
     * <p><em>This method does not invoke AST transformations.</em></p>
     * @return The current node used as the Expr child.
     * @apilevel low-level
     * @ast method 
     * 
     */
    public Expr getExprNoTransform() {
      return (Expr)getChildNoTransform(0);
    }
    /**
     * @attribute syn
     * @aspect DA
     * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:235
     */
    public boolean isDAafter(Variable v) {
  