
package AST;

public abstract class Stmt extends ASTNode<ASTNode> implements Cloneable {

  @SuppressWarnings({"unchecked", "cast"})
  public Stmt clone() throws CloneNotSupportedException {
    Stmt node = (Stmt) super.clone();
    node.isLocalVariableDecl_String_visited = null;
    node.isLocalVariableDecl_String_values = null;
    node.in$Circle(false);
    node.is$Final(false);
    return node;
  }

  public Stmt() {
    super();
  }

  public void init$Children() {
  }

  protected int numChildren() {
    return 0;
  }

  public boolean mayHaveRewrite() {
    return false;
  }

  public void flushCache() {
    super.flushCache();
    isLocalVariableDecl_String_visited = null;
    isLocalVariableDecl_String_values = null;
  }

  public void flushCollectionCache() {
    super.flushCollectionCache();
  }

  protected java.util.Map isLocalVariableDecl_String_visited;
  protected java.util.Map isLocalVariableDecl_String_values;

  public boolean isLocalVariableDecl(String name) {
    Object _parameters = name;
    if(isLocalVariableDecl_String_visited == null) isLocalVariableDecl_String_visited = new java.util.HashMap(4);
    if(isLocalVariableDecl_String_values == null) isLocalVariableDecl_String_values = new java.util.HashMap(4);
    if(isLocalVariableDecl_String_values.containsKey(_parameters)) {
      return ((Boolean)isLocalVariableDecl_String_values.get(_parameters)).booleanValue(); 
    }
    ASTNode$State state = state();
    if (Integer.valueOf(state().boundariesCrossed).equals(isLocalVariableDecl_String_visited.get(_parameters))) {
      throw new RuntimeException("Circular definition of attr: isLocalVariableDecl in class: ast.AST.SynDecl");
    }
    isLocalVariableDecl_String_visited.put(_parameters, Integer.valueOf(state().boundariesCrossed));
    int num = state.boundariesCrossed;
    boolean isFinal = this.is$Final();
    boolean isLocalVariableDecl_String_value = isLocalVariableDecl_compute(name);
    if(isFinal && num == state().boundariesCrossed) { 
      isLocalVariableDecl_String_values.put(_parameters, Boolean.valueOf(isLocalVariableDecl_String_value)); 
      Tracer.traceCached(this, "Stmt.isLocalVariableDecl", name, "" + isLocalVariableDecl_String_value);
    } else Tracer.traceCacheAbort(this, "Stmt.isLocalVariableDecl", name, "" + isLocalVariableDecl_String_value);
    isLocalVariableDecl_String_visited.remove(_parameters);
    return isLocalVariableDecl_String_value;
  }

  private boolean isLocalVariableDecl_compute(String name) {  return false;  }

  public ASTNode rewriteTo() {    return super.rewriteTo();
  }
}
