⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 granulebody.java

📁 JDK1.4编译器前端
💻 JAVA
字号:

package AST;
import java.util.HashSet;import java.util.LinkedHashSet;import java.io.FileNotFoundException;import java.io.File;import java.util.*;import beaver.*;import java.util.ArrayList;import java.util.zip.*;import java.io.*;
public class GranuleBody extends BodyDecl implements Cloneable {
    public void flushCache() {        super.flushCache();        typeBoolean_visited = -1;    }     @SuppressWarnings({"unchecked", "cast"})  public GranuleBody clone() throws CloneNotSupportedException {        GranuleBody node = (GranuleBody)super.clone();        node.typeBoolean_visited = -1;        node.in$Circle(false);        node.is$Final(false);    return node;    }     @SuppressWarnings({"unchecked", "cast"})  public GranuleBody copy() {      try {          GranuleBody node = (GranuleBody)clone();          if(children != null) node.children = (ASTNode[])children.clone();          return node;      } catch (CloneNotSupportedException e) {      }      System.err.println("Error: Could not clone node of type " + getClass().getName() + "!");      return null;    }     @SuppressWarnings({"unchecked", "cast"})  public GranuleBody fullCopy() {        GranuleBody res = (GranuleBody)copy();        for(int i = 0; i < getNumChildNoTransform(); i++) {          ASTNode node = getChildNoTransform(i);          if(node != null) node = node.fullCopy();          res.setChild(node, i);        }        return res;    }    // Declared in Granule.ast at line 3    // Declared in Granule.ast line 3
    public GranuleBody() {        super();

    }    // Declared in Granule.ast at line 10
    // Declared in Granule.ast line 3    public GranuleBody(Block p0) {        setChild(p0, 0);    }    // Declared in Granule.ast at line 14  protected int numChildren() {
    return 1;
  }    // Declared in Granule.ast at line 17
  public boolean mayHaveRewrite() { return false; }    // Declared in Granule.ast at line 2    // Declared in Granule.ast line 3    public void setBlock(Block node) {        setChild(node, 0);    }    // Declared in Granule.ast at line 5    public Block getBlock() {        return (Block)getChild(0);    }    // Declared in Granule.ast at line 9    public Block getBlockNoTransform() {        return (Block)getChildNoTransform(0);    }    protected int typeBoolean_visited = -1;    // Declared in GOP.jrag at line 195 @SuppressWarnings({"unchecked", "cast"})     public TypeDecl typeBoolean() {        if(typeBoolean_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: typeBoolean in class: ");        typeBoolean_visited = boundariesCrossed;        if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree");        TypeDecl typeBoolean_value = getParent().Define_TypeDecl_typeBoolean(this, null);        typeBoolean_visited = -1;        return typeBoolean_value;    }    // Declared in GOP.jrag at line 196    public TypeDecl Define_TypeDecl_returnType(ASTNode caller, ASTNode child) {        if(caller == getBlockNoTransform()) {            return typeBoolean();        }        if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree");        return getParent().Define_TypeDecl_returnType(this, caller);    }    // Declared in GOP.jrag at line 160    public boolean Define_boolean_reachable(ASTNode caller, ASTNode child) {        if(caller == getBlockNoTransform()) {            return true;        }        if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree");        return getParent().Define_boolean_reachable(this, caller);    }public ASTNode rewriteTo() {    return super.rewriteTo();}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -