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

📄 innerclassesattribute.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 InnerClassesAttribute extends Attribute {
    // Declared in Attributes.jrag at line 69    public InnerClassesAttribute(TypeDecl typeDecl) {      super(typeDecl.constantPool(), "InnerClasses");      ConstantPool c = typeDecl.constantPool();      Collection list = typeDecl.innerClassesAttributeEntries();      u2(list.size());      for(Iterator iter = list.iterator(); iter.hasNext(); ) {        TypeDecl type = (TypeDecl)iter.next();        u2(c.addClass(type.constantPoolName())); // inner_class_info_index        u2(type.isMemberType() ? c.addClass(type.enclosingType().constantPoolName()) : 0); // outer_class_info_index        u2(type.isAnonymous() ? 0 : c.addUtf8(type.name())); // inner_name_index        u2(type.isInterfaceDecl() ? (type.flags() | Modifiers.ACC_INTERFACE) : type.flags()); // inner_class_access_flags      }    }
}

⌨️ 快捷键说明

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