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

📄 typeaccess.java

📁 JDK1.4编译器前端
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
          throw new UnsupportedOperationException("setID is only valid for String lexemes");        tokenString_ID = (String)symbol.value;        IDstart = symbol.getStart();        IDend = symbol.getEnd();    }    // Declared in java.ast at line 15    public String getID() {        return tokenString_ID != null ? tokenString_ID : "";    }    protected int decls_visited = -1;    protected boolean decls_computed = false;    protected SimpleSet decls_value;    // Declared in LookupType.jrag at line 135 @SuppressWarnings({"unchecked", "cast"})     public SimpleSet decls() {        if(decls_computed)            return decls_value;        if(decls_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: decls in class: ");        decls_visited = boundariesCrossed;        int num = boundariesCrossed;        boolean isFinal = this.is$Final();        decls_value = decls_compute();        if(isFinal && num == boundariesCrossed)            decls_computed = true;        decls_visited = -1;        return decls_value;    }    private SimpleSet decls_compute() {    if(packageName().equals(""))      return lookupType(name());    else {      TypeDecl typeDecl = lookupType(packageName(), name());      if(typeDecl != null)        return SimpleSet.emptySet.add(typeDecl);      return SimpleSet.emptySet;    }  }    protected int decl_visited = -1;    protected boolean decl_computed = false;    protected TypeDecl decl_value;    // Declared in LookupType.jrag at line 150 @SuppressWarnings({"unchecked", "cast"})     public TypeDecl decl() {        if(decl_computed)            return decl_value;        if(decl_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: decl in class: ");        decl_visited = boundariesCrossed;        int num = boundariesCrossed;        boolean isFinal = this.is$Final();        decl_value = decl_compute();        if(isFinal && num == boundariesCrossed)            decl_computed = true;        decl_visited = -1;        return decl_value;    }    private TypeDecl decl_compute() {    SimpleSet decls = decls();    if(decls.size() == 1) {      return (TypeDecl)decls.iterator().next();    }    return unknownType();  }    protected java.util.Map qualifiedLookupVariable_String_visited;    // Declared in LookupVariable.jrag at line 152 @SuppressWarnings({"unchecked", "cast"})     public SimpleSet qualifiedLookupVariable(String name) {        Object _parameters = name;if(qualifiedLookupVariable_String_visited == null) qualifiedLookupVariable_String_visited = new java.util.HashMap(4);        if(new Integer(boundariesCrossed).equals(qualifiedLookupVariable_String_visited.get(_parameters)))            throw new RuntimeException("Circular definition of attr: qualifiedLookupVariable in class: ");        qualifiedLookupVariable_String_visited.put(_parameters, new Integer(boundariesCrossed));        SimpleSet qualifiedLookupVariable_String_value = qualifiedLookupVariable_compute(name);        qualifiedLookupVariable_String_visited.remove(_parameters);        return qualifiedLookupVariable_String_value;    }    private SimpleSet qualifiedLookupVariable_compute(String name) {    if(type().accessibleFrom(hostType())) {      SimpleSet c = type().memberFields(name);      c = keepAccessibleFields(c);      if(type().isClassDecl() && c.size() == 1)        c = removeInstanceVariables(c);      return c;    }    return SimpleSet.emptySet;  }    protected int dumpString_visited = -1;    // Declared in PrettyPrint.jadd at line 783 @SuppressWarnings({"unchecked", "cast"})     public String dumpString() {        if(dumpString_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: dumpString in class: ");        dumpString_visited = boundariesCrossed;        String dumpString_value = dumpString_compute();        dumpString_visited = -1;        return dumpString_value;    }    private String dumpString_compute() {  return getClass().getName() + " [" + getPackage() + ", " + getID() + "]";  }    protected int name_visited = -1;    // Declared in QualifiedNames.jrag at line 21 @SuppressWarnings({"unchecked", "cast"})     public String name() {        if(name_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: name in class: ");        name_visited = boundariesCrossed;        String name_value = name_compute();        name_visited = -1;        return name_value;    }    private String name_compute() {  return getID();  }    protected int packageName_visited = -1;    // Declared in QualifiedNames.jrag at line 26 @SuppressWarnings({"unchecked", "cast"})     public String packageName() {        if(packageName_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: packageName in class: ");        packageName_visited = boundariesCrossed;        String packageName_value = packageName_compute();        packageName_visited = -1;        return packageName_value;    }    private String packageName_compute() {  return getPackage();  }    protected int nameWithPackage_visited = -1;    // Declared in QualifiedNames.jrag at line 49 @SuppressWarnings({"unchecked", "cast"})     public String nameWithPackage() {        if(nameWithPackage_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: nameWithPackage in class: ");        nameWithPackage_visited = boundariesCrossed;        String nameWithPackage_value = nameWithPackage_compute();        nameWithPackage_visited = -1;        return nameWithPackage_value;    }    private String nameWithPackage_compute() {  return getPackage().equals("") ? name() : (getPackage() + "." + name());  }    protected int typeName_visited = -1;    // Declared in QualifiedNames.jrag at line 64 @SuppressWarnings({"unchecked", "cast"})     public String typeName() {        if(typeName_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: typeName in class: ");        typeName_visited = boundariesCrossed;        String typeName_value = typeName_compute();        typeName_visited = -1;        return typeName_value;    }    private String typeName_compute() {  return isQualified() ? (qualifier().typeName() + "." + name()) : nameWithPackage();  }    protected int isTypeAccess_visited = -1;    // Declared in ResolveAmbiguousNames.jrag at line 14 @SuppressWarnings({"unchecked", "cast"})     public boolean isTypeAccess() {        if(isTypeAccess_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: isTypeAccess in class: ");        isTypeAccess_visited = boundariesCrossed;        boolean isTypeAccess_value = isTypeAccess_compute();        isTypeAccess_visited = -1;        return isTypeAccess_value;    }    private boolean isTypeAccess_compute() {  return true;  }    protected int predNameType_visited = -1;    // Declared in SyntacticClassification.jrag at line 106 @SuppressWarnings({"unchecked", "cast"})     public NameType predNameType() {        if(predNameType_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: predNameType in class: ");        predNameType_visited = boundariesCrossed;        NameType predNameType_value = predNameType_compute();        predNameType_visited = -1;        return predNameType_value;    }    private NameType predNameType_compute() {  return NameType.PACKAGE_OR_TYPE_NAME;  }    protected int type_visited = -1;    // Declared in TypeAnalysis.jrag at line 280 @SuppressWarnings({"unchecked", "cast"})     public TypeDecl type() {        if(type_computed)            return type_value;        if(type_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: type in class: ");        type_visited = boundariesCrossed;        int num = boundariesCrossed;        boolean isFinal = this.is$Final();        type_value = type_compute();        if(isFinal && num == boundariesCrossed)            type_computed = true;        type_visited = -1;        return type_value;    }    private TypeDecl type_compute() {  return decl();  }    protected int staticContextQualifier_visited = -1;    // Declared in TypeHierarchyCheck.jrag at line 154 @SuppressWarnings({"unchecked", "cast"})     public boolean staticContextQualifier() {        if(staticContextQualifier_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: staticContextQualifier in class: ");        staticContextQualifier_visited = boundariesCrossed;        boolean staticContextQualifier_value = staticContextQualifier_compute();        staticContextQualifier_visited = -1;        return staticContextQualifier_value;    }    private boolean staticContextQualifier_compute() {  return true;  }public ASTNode rewriteTo() {    return super.rewriteTo();}}

⌨️ 快捷键说明

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