/* This file was generated with JastAdd2 (http://jastadd.org) version jenkins-JastAdd2-432 */
package AST;

/**
 * @production Stmt : {@link ASTNode};
 * @ast node
 * @declaredat JavaDemoNames.ast:10
 */
public abstract class Stmt extends ASTNode<ASTNode> implements Cloneable {
  /**
   * @apilevel internal
   */
  @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;
  }
  /**
   * 
   * @ast method
   * 
   */

  public Stmt() {
    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() {
  }
  /**
   * 
     * @apilevel low-level
     
   * @ast method
   * 
   */

  protected int numChildren() {
    return 0;
  }
  /**
   * 
     * @apilevel internal
     
   * @ast method
   * 
   */

  public boolean mayHaveRewrite() {
    return false;
  }
  /**
   * 
      * @apilevel low-level
      
   * @ast method
   * 
   */

  public void flushCache() {
    super.flushCache();
    isLocalVariableDecl_String_visited = null;
    isLocalVariableDecl_String_values = null;
  }
  /**
   * 
      * @apilevel internal
      
   * @ast method
   * 
   */

  public void flushCollectionCache() {
    super.flushCollectionCache();
  }
  /**
   * @apilevel internal
   */
  protected java.util.Map isLocalVariableDecl_String_visited;
  protected java.util.Map isLocalVariableDecl_String_values;
  /**
   * @attribute syn
   * @aspect JavaDemoNames
   * @declaredat JavaDemoNames.jrag:45
   */

  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)); }
    isLocalVariableDecl_String_visited.remove(_parameters);
        return isLocalVariableDecl_String_value;
  }
  /**
   * @apilevel internal
   */
  private boolean isLocalVariableDecl_compute(String name) {  return false;  }
  /**
   * @apilevel internal
   */
  public ASTNode rewriteTo() {    return super.rewriteTo();
  }}
