opt.java
来自「JDK1.4编译器后端」· Java 代码 · 共 67 行
JAVA
67 行
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 Opt<T extends ASTNode> extends ASTNode<T> implements Cloneable {
public void flushCache() { super.flushCache(); } @SuppressWarnings({"unchecked", "cast"}) public Opt<T> clone() throws CloneNotSupportedException { Opt node = (Opt)super.clone(); node.in$Circle(false); node.is$Final(false); return node; } @SuppressWarnings({"unchecked", "cast"}) public Opt<T> copy() { try { Opt node = (Opt)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 Opt<T> fullCopy() { Opt res = (Opt)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 Opt.ast at line 3 // Declared in Opt.ast line 0
public Opt() { super();
} // Declared in Opt.ast at line 9
public Opt(T opt) {
setChild(opt, 0);
} // Declared in Opt.ast at line 13
public boolean mayHaveRewrite() { return false; } // Declared in CreateBCode.jrag at line 927 @SuppressWarnings({"unchecked", "cast"}) public boolean definesLabel() { boolean definesLabel_value = definesLabel_compute(); return definesLabel_value; } private boolean definesLabel_compute() { return getParent().definesLabel(); }public ASTNode rewriteTo() { return super.rewriteTo();}}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?