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

📄 fielddeclaration.java

📁 JDK1.4编译器后端
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
    private boolean isProtected_compute() {  return getModifiers().isProtected();  }    // Declared in Modifiers.jrag at line 240 @SuppressWarnings({"unchecked", "cast"})     public boolean isStatic() {        boolean isStatic_value = isStatic_compute();        return isStatic_value;    }    private boolean isStatic_compute() {  return getModifiers().isStatic() || hostType().isInterfaceDecl();  }    // Declared in Modifiers.jrag at line 242 @SuppressWarnings({"unchecked", "cast"})     public boolean isFinal() {        boolean isFinal_value = isFinal_compute();        return isFinal_value;    }    private boolean isFinal_compute() {  return getModifiers().isFinal() || hostType().isInterfaceDecl();  }    // Declared in Modifiers.jrag at line 243 @SuppressWarnings({"unchecked", "cast"})     public boolean isTransient() {        boolean isTransient_value = isTransient_compute();        return isTransient_value;    }    private boolean isTransient_compute() {  return getModifiers().isTransient();  }    // Declared in Modifiers.jrag at line 244 @SuppressWarnings({"unchecked", "cast"})     public boolean isVolatile() {        boolean isVolatile_value = isVolatile_compute();        return isVolatile_value;    }    private boolean isVolatile_compute() {  return getModifiers().isVolatile();  }    // Declared in PrettyPrint.jadd at line 790 @SuppressWarnings({"unchecked", "cast"})     public String dumpString() {        String dumpString_value = dumpString_compute();        return dumpString_value;    }    private String dumpString_compute() {  return getClass().getName() + " [" + getID() + "]";  }    // Declared in TypeAnalysis.jrag at line 252 @SuppressWarnings({"unchecked", "cast"})     public TypeDecl type() {        TypeDecl type_value = type_compute();        return type_value;    }    private TypeDecl type_compute() {  return getTypeAccess().type();  }    // Declared in TypeAnalysis.jrag at line 274 @SuppressWarnings({"unchecked", "cast"})     public boolean isVoid() {        boolean isVoid_value = isVoid_compute();        return isVoid_value;    }    private boolean isVoid_compute() {  return type().isVoid();  }    // Declared in VariableDeclaration.jrag at line 55 @SuppressWarnings({"unchecked", "cast"})     public boolean isClassVariable() {        boolean isClassVariable_value = isClassVariable_compute();        return isClassVariable_value;    }    private boolean isClassVariable_compute() {  return isStatic() || hostType().isInterfaceDecl();  }    // Declared in VariableDeclaration.jrag at line 56 @SuppressWarnings({"unchecked", "cast"})     public boolean isInstanceVariable() {        boolean isInstanceVariable_value = isInstanceVariable_compute();        return isInstanceVariable_value;    }    private boolean isInstanceVariable_compute() {  return (hostType().isClassDecl() || hostType().isAnonymous() )&& !isStatic();  }    // Declared in VariableDeclaration.jrag at line 57 @SuppressWarnings({"unchecked", "cast"})     public boolean isMethodParameter() {        boolean isMethodParameter_value = isMethodParameter_compute();        return isMethodParameter_value;    }    private boolean isMethodParameter_compute() {  return false;  }    // Declared in VariableDeclaration.jrag at line 58 @SuppressWarnings({"unchecked", "cast"})     public boolean isConstructorParameter() {        boolean isConstructorParameter_value = isConstructorParameter_compute();        return isConstructorParameter_value;    }    private boolean isConstructorParameter_compute() {  return false;  }    // Declared in VariableDeclaration.jrag at line 59 @SuppressWarnings({"unchecked", "cast"})     public boolean isExceptionHandlerParameter() {        boolean isExceptionHandlerParameter_value = isExceptionHandlerParameter_compute();        return isExceptionHandlerParameter_value;    }    private boolean isExceptionHandlerParameter_compute() {  return false;  }    // Declared in VariableDeclaration.jrag at line 60 @SuppressWarnings({"unchecked", "cast"})     public boolean isLocalVariable() {        boolean isLocalVariable_value = isLocalVariable_compute();        return isLocalVariable_value;    }    private boolean isLocalVariable_compute() {  return false;  }    // Declared in VariableDeclaration.jrag at line 62 @SuppressWarnings({"unchecked", "cast"})     public boolean isBlank() {        boolean isBlank_value = isBlank_compute();        return isBlank_value;    }    private boolean isBlank_compute() {  return !hasInit();  }    // Declared in VariableDeclaration.jrag at line 64 @SuppressWarnings({"unchecked", "cast"})     public String name() {        String name_value = name_compute();        return name_value;    }    private String name_compute() {  return getID();  }    protected boolean constant_computed = false;    protected Constant constant_value;    // Declared in VariableDeclaration.jrag at line 65 @SuppressWarnings({"unchecked", "cast"})     public Constant constant() {        if(constant_computed)            return constant_value;        int num = boundariesCrossed;        boolean isFinal = this.is$Final();        constant_value = constant_compute();        if(isFinal && num == boundariesCrossed)            constant_computed = true;        return constant_value;    }    private Constant constant_compute() {  return type().cast(getInit().constant());  }    // Declared in Attributes.jrag at line 183 @SuppressWarnings({"unchecked", "cast"})     public Collection attributes() {        if(attributes_computed)            return attributes_value;        int num = boundariesCrossed;        boolean isFinal = this.is$Final();        attributes_value = attributes_compute();        if(isFinal && num == boundariesCrossed)            attributes_computed = true;        return attributes_value;    }    private Collection attributes_compute() {    ArrayList l = new ArrayList();    if(isStatic() && isFinal() && isConstant() && (type().isPrimitive() || type().isString()))      l.add(new ConstantValueAttribute(hostType().constantPool(), this));    return l;  }    protected boolean flags_computed = false;    protected int flags_value;    // Declared in Flags.jrag at line 76 @SuppressWarnings({"unchecked", "cast"})     public int flags() {        if(flags_computed)            return flags_value;        int num = boundariesCrossed;        boolean isFinal = this.is$Final();        flags_value = flags_compute();        if(isFinal && num == boundariesCrossed)            flags_computed = true;        return flags_value;    }    private int flags_compute() {    int res = 0;    if(isPublic()) res |= Modifiers.ACC_PUBLIC;    if(isPrivate()) res |= Modifiers.ACC_PRIVATE;    if(isProtected()) res |= Modifiers.ACC_PROTECTED;    if(isStatic()) res |= Modifiers.ACC_STATIC;    if(isFinal()) res |= Modifiers.ACC_FINAL;    if(isVolatile()) res |= Modifiers.ACC_VOLATILE;    if(isTransient()) res |= Modifiers.ACC_TRANSIENT;    return res;  }    // Declared in GenerateClassfile.jrag at line 294 @SuppressWarnings({"unchecked", "cast"})     public boolean isBytecodeField() {        boolean isBytecodeField_value = isBytecodeField_compute();        return isBytecodeField_value;    }    private boolean isBytecodeField_compute() {  return true;  }    // Declared in GenerateClassfile.jrag at line 332 @SuppressWarnings({"unchecked", "cast"})     public boolean flush() {        boolean flush_value = flush_compute();        return flush_value;    }    private boolean flush_compute() {  return false;  }    // Declared in ExceptionHandling.jrag at line 34 @SuppressWarnings({"unchecked", "cast"})     public boolean handlesException(TypeDecl exceptionType) {        boolean handlesException_TypeDecl_value = getParent().Define_boolean_handlesException(this, null, exceptionType);        return handlesException_TypeDecl_value;    }    // Declared in Modifiers.jrag at line 262    public boolean Define_boolean_mayBePrivate(ASTNode caller, ASTNode child) {        if(caller == getModifiersNoTransform()) {            return true;        }        return getParent().Define_boolean_mayBePrivate(this, caller);    }    // Declared in ExceptionHandling.jrag at line 143    public boolean Define_boolean_handlesException(ASTNode caller, ASTNode child, TypeDecl exceptionType) {        if(caller == getInitOptNoTransform()){    if(hostType().isAnonymous())      return true;    if(!exceptionType.isUncheckedException())      return true;    for(Iterator iter = hostType().constructors().iterator(); iter.hasNext(); ) {      ConstructorDecl decl = (ConstructorDecl)iter.next();      if(!decl.throwsException(exceptionType))        return false;    }    return true;  }        return getParent().Define_boolean_handlesException(this, caller, exceptionType);    }    // Declared in DefiniteAssignment.jrag at line 322    public boolean Define_boolean_isDAbefore(ASTNode caller, ASTNode child, Variable v) {        if(caller == getInitOptNoTransform()){    return isDAbefore(v);  }        return getParent().Define_boolean_isDAbefore(this, caller, v);    }    // Declared in Modifiers.jrag at line 264    public boolean Define_boolean_mayBeFinal(ASTNode caller, ASTNode child) {        if(caller == getModifiersNoTransform()) {            return true;        }        return getParent().Define_boolean_mayBeFinal(this, caller);    }    // Declared in InnerClasses.jrag at line 64    public TypeDecl Define_TypeDecl_expectedType(ASTNode caller, ASTNode child) {        if(caller == getInitOptNoTransform()) {            return type().componentType();        }        return getParent().Define_TypeDecl_expectedType(this, caller);    }    // Declared in Modifiers.jrag at line 260    public boolean Define_boolean_mayBePublic(ASTNode caller, ASTNode child) {        if(caller == getModifiersNoTransform()) {            return true;        }        return getParent().Define_boolean_mayBePublic(this, caller);    }    // Declared in DefiniteAssignment.jrag at line 39    public boolean Define_boolean_isSource(ASTNode caller, ASTNode child) {        if(caller == getInitOptNoTransform()) {            return true;        }        return getParent().Define_boolean_isSource(this, caller);    }    // Declared in Modifiers.jrag at line 266    public boolean Define_boolean_mayBeVolatile(ASTNode caller, ASTNode child) {        if(caller == getModifiersNoTransform()) {            return true;        }        return getParent().Define_boolean_mayBeVolatile(this, caller);    }    // Declared in Modifiers.jrag at line 261    public boolean Define_boolean_mayBeProtected(ASTNode caller, ASTNode child) {        if(caller == getModifiersNoTransform()) {            return true;        }        return getParent().Define_boolean_mayBeProtected(this, caller);    }    // Declared in Modifiers.jrag at line 265    public boolean Define_boolean_mayBeTransient(ASTNode caller, ASTNode child) {        if(caller == getModifiersNoTransform()) {            return true;        }        return getParent().Define_boolean_mayBeTransient(this, caller);    }    // Declared in TypeAnalysis.jrag at line 261    public TypeDecl Define_TypeDecl_declType(ASTNode caller, ASTNode child) {        if(caller == getInitOptNoTransform()) {            return type();        }        return getParent().Define_TypeDecl_declType(this, caller);    }    // Declared in SyntacticClassification.jrag at line 78    public NameType Define_NameType_nameType(ASTNode caller, ASTNode child) {        if(caller == getTypeAccessNoTransform()) {            return NameType.TYPE_NAME;        }        return getParent().Define_NameType_nameType(this, caller);    }    // Declared in TypeHierarchyCheck.jrag at line 141    public boolean Define_boolean_inStaticContext(ASTNode caller, ASTNode child) {        if(caller == getInitOptNoTransform()) {            return isStatic() || hostType().isInterfaceDecl();        }        return getParent().Define_boolean_inStaticContext(this, caller);    }    // Declared in Modifiers.jrag at line 263    public boolean Define_boolean_mayBeStatic(ASTNode caller, ASTNode child) {        if(caller == getModifiersNoTransform()) {            return true;        }        return getParent().Define_boolean_mayBeStatic(this, caller);    }public ASTNode rewriteTo() {    return super.rewriteTo();}}

⌨️ 快捷键说明

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