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

📄 modifiers.java

📁 JDK1.4编译器前端
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
        int num = boundariesCrossed;        boolean isFinal = this.is$Final();        isStatic_value = isStatic_compute();        if(isFinal && num == boundariesCrossed)            isStatic_computed = true;        isStatic_visited = -1;        return isStatic_value;    }    private boolean isStatic_compute() {  return numModifier("static") != 0;  }    protected int isFinal_visited = -1;    protected boolean isFinal_computed = false;    protected boolean isFinal_value;    // Declared in Modifiers.jrag at line 372 @SuppressWarnings({"unchecked", "cast"})     public boolean isFinal() {        if(isFinal_computed)            return isFinal_value;        if(isFinal_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: isFinal in class: ");        isFinal_visited = boundariesCrossed;        int num = boundariesCrossed;        boolean isFinal = this.is$Final();        isFinal_value = isFinal_compute();        if(isFinal && num == boundariesCrossed)            isFinal_computed = true;        isFinal_visited = -1;        return isFinal_value;    }    private boolean isFinal_compute() {  return numModifier("final") != 0;  }    protected int isAbstract_visited = -1;    protected boolean isAbstract_computed = false;    protected boolean isAbstract_value;    // Declared in Modifiers.jrag at line 373 @SuppressWarnings({"unchecked", "cast"})     public boolean isAbstract() {        if(isAbstract_computed)            return isAbstract_value;        if(isAbstract_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: isAbstract in class: ");        isAbstract_visited = boundariesCrossed;        int num = boundariesCrossed;        boolean isFinal = this.is$Final();        isAbstract_value = isAbstract_compute();        if(isFinal && num == boundariesCrossed)            isAbstract_computed = true;        isAbstract_visited = -1;        return isAbstract_value;    }    private boolean isAbstract_compute() {  return numModifier("abstract") != 0;  }    protected int isVolatile_visited = -1;    protected boolean isVolatile_computed = false;    protected boolean isVolatile_value;    // Declared in Modifiers.jrag at line 374 @SuppressWarnings({"unchecked", "cast"})     public boolean isVolatile() {        if(isVolatile_computed)            return isVolatile_value;        if(isVolatile_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: isVolatile in class: ");        isVolatile_visited = boundariesCrossed;        int num = boundariesCrossed;        boolean isFinal = this.is$Final();        isVolatile_value = isVolatile_compute();        if(isFinal && num == boundariesCrossed)            isVolatile_computed = true;        isVolatile_visited = -1;        return isVolatile_value;    }    private boolean isVolatile_compute() {  return numModifier("volatile") != 0;  }    protected int isTransient_visited = -1;    protected boolean isTransient_computed = false;    protected boolean isTransient_value;    // Declared in Modifiers.jrag at line 375 @SuppressWarnings({"unchecked", "cast"})     public boolean isTransient() {        if(isTransient_computed)            return isTransient_value;        if(isTransient_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: isTransient in class: ");        isTransient_visited = boundariesCrossed;        int num = boundariesCrossed;        boolean isFinal = this.is$Final();        isTransient_value = isTransient_compute();        if(isFinal && num == boundariesCrossed)            isTransient_computed = true;        isTransient_visited = -1;        return isTransient_value;    }    private boolean isTransient_compute() {  return numModifier("transient") != 0;  }    protected int isStrictfp_visited = -1;    protected boolean isStrictfp_computed = false;    protected boolean isStrictfp_value;    // Declared in Modifiers.jrag at line 376 @SuppressWarnings({"unchecked", "cast"})     public boolean isStrictfp() {        if(isStrictfp_computed)            return isStrictfp_value;        if(isStrictfp_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: isStrictfp in class: ");        isStrictfp_visited = boundariesCrossed;        int num = boundariesCrossed;        boolean isFinal = this.is$Final();        isStrictfp_value = isStrictfp_compute();        if(isFinal && num == boundariesCrossed)            isStrictfp_computed = true;        isStrictfp_visited = -1;        return isStrictfp_value;    }    private boolean isStrictfp_compute() {  return numModifier("strictfp") != 0;  }    protected int isSynchronized_visited = -1;    protected boolean isSynchronized_computed = false;    protected boolean isSynchronized_value;    // Declared in Modifiers.jrag at line 377 @SuppressWarnings({"unchecked", "cast"})     public boolean isSynchronized() {        if(isSynchronized_computed)            return isSynchronized_value;        if(isSynchronized_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: isSynchronized in class: ");        isSynchronized_visited = boundariesCrossed;        int num = boundariesCrossed;        boolean isFinal = this.is$Final();        isSynchronized_value = isSynchronized_compute();        if(isFinal && num == boundariesCrossed)            isSynchronized_computed = true;        isSynchronized_visited = -1;        return isSynchronized_value;    }    private boolean isSynchronized_compute() {  return numModifier("synchronized") != 0;  }    protected int isNative_visited = -1;    protected boolean isNative_computed = false;    protected boolean isNative_value;    // Declared in Modifiers.jrag at line 378 @SuppressWarnings({"unchecked", "cast"})     public boolean isNative() {        if(isNative_computed)            return isNative_value;        if(isNative_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: isNative in class: ");        isNative_visited = boundariesCrossed;        int num = boundariesCrossed;        boolean isFinal = this.is$Final();        isNative_value = isNative_compute();        if(isFinal && num == boundariesCrossed)            isNative_computed = true;        isNative_visited = -1;        return isNative_value;    }    private boolean isNative_compute() {  return numModifier("native") != 0;  }    protected int isSynthetic_visited = -1;    protected boolean isSynthetic_computed = false;    protected boolean isSynthetic_value;    // Declared in Modifiers.jrag at line 380 @SuppressWarnings({"unchecked", "cast"})     public boolean isSynthetic() {        if(isSynthetic_computed)            return isSynthetic_value;        if(isSynthetic_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: isSynthetic in class: ");        isSynthetic_visited = boundariesCrossed;        int num = boundariesCrossed;        boolean isFinal = this.is$Final();        isSynthetic_value = isSynthetic_compute();        if(isFinal && num == boundariesCrossed)            isSynthetic_computed = true;        isSynthetic_visited = -1;        return isSynthetic_value;    }    private boolean isSynthetic_compute() {  return numModifier("synthetic") != 0;  }    protected int numProtectionModifiers_visited = -1;    // Declared in Modifiers.jrag at line 382 @SuppressWarnings({"unchecked", "cast"})     public int numProtectionModifiers() {        if(numProtectionModifiers_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: numProtectionModifiers in class: ");        numProtectionModifiers_visited = boundariesCrossed;        int numProtectionModifiers_value = numProtectionModifiers_compute();        numProtectionModifiers_visited = -1;        return numProtectionModifiers_value;    }    private int numProtectionModifiers_compute() {  return numModifier("public") + numModifier("protected") + numModifier("private");  }    protected int numCompletenessModifiers_visited = -1;    // Declared in Modifiers.jrag at line 385 @SuppressWarnings({"unchecked", "cast"})     public int numCompletenessModifiers() {        if(numCompletenessModifiers_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: numCompletenessModifiers in class: ");        numCompletenessModifiers_visited = boundariesCrossed;        int numCompletenessModifiers_value = numCompletenessModifiers_compute();        numCompletenessModifiers_visited = -1;        return numCompletenessModifiers_value;    }    private int numCompletenessModifiers_compute() {  return numModifier("abstract") + numModifier("final") + numModifier("volatile");  }    protected java.util.Map numModifier_String_visited;    protected java.util.Map numModifier_String_values;    // Declared in Modifiers.jrag at line 388 @SuppressWarnings({"unchecked", "cast"})     public int numModifier(String name) {        Object _parameters = name;if(numModifier_String_visited == null) numModifier_String_visited = new java.util.HashMap(4);if(numModifier_String_values == null) numModifier_String_values = new java.util.HashMap(4);        if(numModifier_String_values.containsKey(_parameters))            return ((Integer)numModifier_String_values.get(_parameters)).intValue();        if(new Integer(boundariesCrossed).equals(numModifier_String_visited.get(_parameters)))            throw new RuntimeException("Circular definition of attr: numModifier in class: ");        numModifier_String_visited.put(_parameters, new Integer(boundariesCrossed));        int num = boundariesCrossed;        boolean isFinal = this.is$Final();        int numModifier_String_value = numModifier_compute(name);        if(isFinal && num == boundariesCrossed)            numModifier_String_values.put(_parameters, new Integer(numModifier_String_value));        numModifier_String_visited.remove(_parameters);        return numModifier_String_value;    }    private int numModifier_compute(String name) {    int n = 0;    for(int i = 0; i < getNumModifier(); i++) {      String s = getModifier(i).getID();      if(s.equals(name))        n++;    }    return n;  }    protected int mayBePublic_visited = -1;    // Declared in Modifiers.jrag at line 356 @SuppressWarnings({"unchecked", "cast"})     public boolean mayBePublic() {        if(mayBePublic_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: mayBePublic in class: ");        mayBePublic_visited = boundariesCrossed;        if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree");        boolean mayBePublic_value = getParent().Define_boolean_mayBePublic(this, null);        mayBePublic_visited = -1;        return mayBePublic_value;    }    protected int mayBePrivate_visited = -1;    // Declared in Modifiers.jrag at line 357 @SuppressWarnings({"unchecked", "cast"})     public boolean mayBePrivate() {        if(mayBePrivate_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: mayBePrivate in class: ");        mayBePrivate_visited = boundariesCrossed;        if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree");        boolean mayBePrivate_value = getParent().Define_boolean_mayBePrivate(this, null);        mayBePrivate_visited = -1;        return mayBePrivate_value;    }    protected int mayBeProtected_visited = -1;    // Declared in Modifiers.jrag at line 358 @SuppressWarnings({"unchecked", "cast"})     public boolean mayBeProtected() {        if(mayBeProtected_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: mayBeProtected in class: ");        mayBeProtected_visited = boundariesCrossed;        if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree");        boolean mayBeProtected_value = getParent().Define_boolean_mayBeProtected(this, null);        mayBeProtected_visited = -1;        return mayBeProtected_value;    }    protected int mayBeStatic_visited = -1;    // Declared in Modifiers.jrag at line 359 @SuppressWarnings({"unchecked", "cast"})     public boolean mayBeStatic() {        if(mayBeStatic_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: mayBeStatic in class: ");        mayBeStatic_visited = boundariesCrossed;        if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree");        boolean mayBeStatic_value = getParent().Define_boolean_mayBeStatic(this, null);        mayBeStatic_visited = -1;        return mayBeStatic_value;    }    protected int mayBeFinal_visited = -1;    // Declared in Modifiers.jrag at line 360 @SuppressWarnings({"unchecked", "cast"})     public boolean mayBeFinal() {        if(mayBeFinal_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: mayBeFinal in class: ");        mayBeFinal_visited = boundariesCrossed;        if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree");        boolean mayBeFinal_value = getParent().Define_boolean_mayBeFinal(this, null);        mayBeFinal_visited = -1;        return mayBeFinal_value;    }    protected int mayBeAbstract_visited = -1;    // Declared in Modifiers.jrag at line 361 @SuppressWarnings({"unchecked", "cast"})     public boolean mayBeAbstract() {        if(mayBeAbstract_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: mayBeAbstract in class: ");        mayBeAbstract_visited = boundariesCrossed;        if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree");        boolean mayBeAbstract_value = getParent().Define_boolean_mayBeAbstract(this, null);        mayBeAbstract_visited = -1;        return mayBeAbstract_value;    }    protected int mayBeVolatile_visited = -1;    // Declared in Modifiers.jrag at line 362 @SuppressWarnings({"unchecked", "cast"})     public boolean mayBeVolatile() {        if(mayBeVolatile_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: mayBeVolatile in class: ");        mayBeVolatile_visited = boundariesCrossed;        if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree");        boolean mayBeVolatile_value = getParent().Define_boolean_mayBeVolatile(this, null);        mayBeVolatile_visited = -1;        return mayBeVolatile_value;    }    protected int mayBeTransient_visited = -1;    // Declared in Modifiers.jrag at line 363 @SuppressWarnings({"unchecked", "cast"})     public boolean mayBeTransient() {        if(mayBeTransient_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: mayBeTransient in class: ");        mayBeTransient_visited = boundariesCrossed;        if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree");        boolean mayBeTransient_value = getParent().Define_boolean_mayBeTransient(this, null);        mayBeTransient_visited = -1;        return mayBeTransient_value;    }    protected int mayBeStrictfp_visited = -1;    // Declared in Modifiers.jrag at line 364 @SuppressWarnings({"unchecked", "cast"})     public boolean mayBeStrictfp() {        if(mayBeStrictfp_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: mayBeStrictfp in class: ");        mayBeStrictfp_visited = boundariesCrossed;        if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree");        boolean mayBeStrictfp_value = getParent().Define_boolean_mayBeStrictfp(this, null);        mayBeStrictfp_visited = -1;        return mayBeStrictfp_value;    }    protected int mayBeSynchronized_visited = -1;    // Declared in Modifiers.jrag at line 365 @SuppressWarnings({"unchecked", "cast"})     public boolean mayBeSynchronized() {        if(mayBeSynchronized_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: mayBeSynchronized in class: ");        mayBeSynchronized_visited = boundariesCrossed;        if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree");        boolean mayBeSynchronized_value = getParent().Define_boolean_mayBeSynchronized(this, null);        mayBeSynchronized_visited = -1;        return mayBeSynchronized_value;    }    protected int mayBeNative_visited = -1;    // Declared in Modifiers.jrag at line 366 @SuppressWarnings({"unchecked", "cast"})     public boolean mayBeNative() {        if(mayBeNative_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: mayBeNative in class: ");        mayBeNative_visited = boundariesCrossed;        if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree");        boolean mayBeNative_value = getParent().Define_boolean_mayBeNative(this, null);        mayBeNative_visited = -1;        return mayBeNative_value;    }public ASTNode rewriteTo() {    return super.rewriteTo();}}

⌨️ 快捷键说明

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