abstractdot.java

来自「JDK1.4编译器后端」· Java 代码 · 共 603 行 · 第 1/2 页

JAVA
603
字号
 @SuppressWarnings({"unchecked", "cast"})     public boolean isThisAccess() {        boolean isThisAccess_value = isThisAccess_compute();        return isThisAccess_value;    }    private boolean isThisAccess_compute() {  return getRight().isThisAccess();  }    // Declared in ResolveAmbiguousNames.jrag at line 38 @SuppressWarnings({"unchecked", "cast"})     public boolean isPackageAccess() {        boolean isPackageAccess_value = isPackageAccess_compute();        return isPackageAccess_value;    }    private boolean isPackageAccess_compute() {  return getRight().isPackageAccess();  }    // Declared in ResolveAmbiguousNames.jrag at line 42 @SuppressWarnings({"unchecked", "cast"})     public boolean isArrayAccess() {        boolean isArrayAccess_value = isArrayAccess_compute();        return isArrayAccess_value;    }    private boolean isArrayAccess_compute() {  return getRight().isArrayAccess();  }    // Declared in ResolveAmbiguousNames.jrag at line 46 @SuppressWarnings({"unchecked", "cast"})     public boolean isClassAccess() {        boolean isClassAccess_value = isClassAccess_compute();        return isClassAccess_value;    }    private boolean isClassAccess_compute() {  return getRight().isClassAccess();  }    // Declared in ResolveAmbiguousNames.jrag at line 50 @SuppressWarnings({"unchecked", "cast"})     public boolean isSuperConstructorAccess() {        boolean isSuperConstructorAccess_value = isSuperConstructorAccess_compute();        return isSuperConstructorAccess_value;    }    private boolean isSuperConstructorAccess_compute() {  return getRight().isSuperConstructorAccess();  }    // Declared in ResolveAmbiguousNames.jrag at line 59 @SuppressWarnings({"unchecked", "cast"})     public boolean isQualified() {        boolean isQualified_value = isQualified_compute();        return isQualified_value;    }    private boolean isQualified_compute() {  return hasParentDot();  }    // Declared in ResolveAmbiguousNames.jrag at line 63 @SuppressWarnings({"unchecked", "cast"})     public Expr leftSide() {        Expr leftSide_value = leftSide_compute();        return leftSide_value;    }    private Expr leftSide_compute() {  return getLeft();  }    // Declared in ResolveAmbiguousNames.jrag at line 64 @SuppressWarnings({"unchecked", "cast"})     public Access rightSide() {        Access rightSide_value = rightSide_compute();        return rightSide_value;    }    private Access rightSide_compute() {  return getRight/*NoTransform*/() instanceof AbstractDot ? (Access)((AbstractDot)getRight/*NoTransform*/()).getLeft() : (Access)getRight();  }    // Declared in ResolveAmbiguousNames.jrag at line 67 @SuppressWarnings({"unchecked", "cast"})     public Access lastAccess() {        Access lastAccess_value = lastAccess_compute();        return lastAccess_value;    }    private Access lastAccess_compute() {  return getRight().lastAccess();  }    // Declared in ResolveAmbiguousNames.jrag at line 75 @SuppressWarnings({"unchecked", "cast"})     public Access nextAccess() {        Access nextAccess_value = nextAccess_compute();        return nextAccess_value;    }    private Access nextAccess_compute() {  return rightSide();  }    // Declared in ResolveAmbiguousNames.jrag at line 77 @SuppressWarnings({"unchecked", "cast"})     public Expr prevExpr() {        Expr prevExpr_value = prevExpr_compute();        return prevExpr_value;    }    private Expr prevExpr_compute() {  return leftSide();  }    // Declared in ResolveAmbiguousNames.jrag at line 88 @SuppressWarnings({"unchecked", "cast"})     public boolean hasPrevExpr() {        boolean hasPrevExpr_value = hasPrevExpr_compute();        return hasPrevExpr_value;    }    private boolean hasPrevExpr_compute() {  return true;  }    // Declared in SyntacticClassification.jrag at line 60 @SuppressWarnings({"unchecked", "cast"})     public NameType predNameType() {        NameType predNameType_value = predNameType_compute();        return predNameType_value;    }    private NameType predNameType_compute() {  return getLeft() instanceof Access ? ((Access)getLeft()).predNameType() : NameType.NO_NAME;  }    // Declared in TypeAnalysis.jrag at line 250 @SuppressWarnings({"unchecked", "cast"})     public TypeDecl type() {        if(type_computed)            return type_value;        int num = boundariesCrossed;        boolean isFinal = this.is$Final();        type_value = type_compute();        if(isFinal && num == boundariesCrossed)            type_computed = true;        return type_value;    }    private TypeDecl type_compute() {  return lastAccess().type();  }    // Declared in TypeCheck.jrag at line 16 @SuppressWarnings({"unchecked", "cast"})     public boolean isVariable() {        boolean isVariable_value = isVariable_compute();        return isVariable_value;    }    private boolean isVariable_compute() {  return lastAccess().isVariable();  }    // Declared in TypeHierarchyCheck.jrag at line 153 @SuppressWarnings({"unchecked", "cast"})     public boolean staticContextQualifier() {        boolean staticContextQualifier_value = staticContextQualifier_compute();        return staticContextQualifier_value;    }    private boolean staticContextQualifier_compute() {  return lastAccess().staticContextQualifier();  }    // Declared in CreateBCode.jrag at line 209 @SuppressWarnings({"unchecked", "cast"})     public boolean needsPop() {        boolean needsPop_value = needsPop_compute();        return needsPop_value;    }    private boolean needsPop_compute() {  return lastAccess().needsPop();  }    // Declared in CreateBCode.jrag at line 929 @SuppressWarnings({"unchecked", "cast"})     public boolean definesLabel() {        boolean definesLabel_value = definesLabel_compute();        return definesLabel_value;    }    private boolean definesLabel_compute() {  return getParent().definesLabel();  }    // Declared in CreateBCode.jrag at line 989 @SuppressWarnings({"unchecked", "cast"})     public boolean canBeTrue() {        boolean canBeTrue_value = canBeTrue_compute();        return canBeTrue_value;    }    private boolean canBeTrue_compute() {  return lastAccess().canBeTrue();  }    // Declared in CreateBCode.jrag at line 999 @SuppressWarnings({"unchecked", "cast"})     public boolean canBeFalse() {        boolean canBeFalse_value = canBeFalse_compute();        return canBeFalse_value;    }    private boolean canBeFalse_compute() {  return lastAccess().canBeFalse();  }    protected java.util.Map isDUbefore_Variable_values;    // Declared in DefiniteAssignment.jrag at line 698 @SuppressWarnings({"unchecked", "cast"})     public boolean isDUbefore(Variable v) {        Object _parameters = v;if(isDUbefore_Variable_values == null) isDUbefore_Variable_values = new java.util.HashMap(4);        if(isDUbefore_Variable_values.containsKey(_parameters))            return ((Boolean)isDUbefore_Variable_values.get(_parameters)).booleanValue();        int num = boundariesCrossed;        boolean isFinal = this.is$Final();        boolean isDUbefore_Variable_value = getParent().Define_boolean_isDUbefore(this, null, v);        if(isFinal && num == boundariesCrossed)            isDUbefore_Variable_values.put(_parameters, Boolean.valueOf(isDUbefore_Variable_value));        return isDUbefore_Variable_value;    }    // Declared in LookupMethod.jrag at line 64    public Collection Define_Collection_lookupMethod(ASTNode caller, ASTNode child, String name) {        if(caller == getRightNoTransform()) {            return getLeft().type().memberMethods(name);        }        return getParent().Define_Collection_lookupMethod(this, caller, name);    }    // Declared in LookupVariable.jrag at line 137    public SimpleSet Define_SimpleSet_lookupVariable(ASTNode caller, ASTNode child, String name) {        if(caller == getRightNoTransform()) {            return getLeft().qualifiedLookupVariable(name);        }        return getParent().Define_SimpleSet_lookupVariable(this, caller, name);    }    // Declared in DefiniteAssignment.jrag at line 21    public boolean Define_boolean_isDest(ASTNode caller, ASTNode child) {        if(caller == getLeftNoTransform()) {            return false;        }        return getParent().Define_boolean_isDest(this, caller);    }    // Declared in DefiniteAssignment.jrag at line 356    public boolean Define_boolean_isDAbefore(ASTNode caller, ASTNode child, Variable v) {        if(caller == getRightNoTransform()) {            return getLeft().isDAafter(v);        }        return getParent().Define_boolean_isDAbefore(this, caller, v);    }    // Declared in LookupConstructor.jrag at line 17    public Collection Define_Collection_lookupConstructor(ASTNode caller, ASTNode child) {        if(caller == getRightNoTransform()) {            return getLeft().type().constructors();        }        return getParent().Define_Collection_lookupConstructor(this, caller);    }    // Declared in LookupConstructor.jrag at line 25    public Collection Define_Collection_lookupSuperConstructor(ASTNode caller, ASTNode child) {        if(caller == getRightNoTransform()) {            return getLeft().type().lookupSuperConstructor();        }        return getParent().Define_Collection_lookupSuperConstructor(this, caller);    }    // Declared in DefiniteAssignment.jrag at line 31    public boolean Define_boolean_isSource(ASTNode caller, ASTNode child) {        if(caller == getLeftNoTransform()) {            return true;        }        return getParent().Define_boolean_isSource(this, caller);    }    // Declared in LookupMethod.jrag at line 20    public Expr Define_Expr_nestedScope(ASTNode caller, ASTNode child) {        if(caller == getLeftNoTransform()) {            return isQualified() ? nestedScope() : this;        }        if(caller == getRightNoTransform()) {            return isQualified() ? nestedScope() : this;        }        return getParent().Define_Expr_nestedScope(this, caller);    }    // Declared in LookupType.jrag at line 82    public boolean Define_boolean_hasPackage(ASTNode caller, ASTNode child, String packageName) {        if(caller == getRightNoTransform()) {            return getLeft().hasQualifiedPackage(packageName);        }        return getParent().Define_boolean_hasPackage(this, caller, packageName);    }    // Declared in TypeHierarchyCheck.jrag at line 13    public String Define_String_methodHost(ASTNode caller, ASTNode child) {        if(caller == getRightNoTransform()) {            return getLeft().type().typeName();        }        return getParent().Define_String_methodHost(this, caller);    }    // Declared in SyntacticClassification.jrag at line 59    public NameType Define_NameType_nameType(ASTNode caller, ASTNode child) {        if(caller == getLeftNoTransform()) {            return getRight().predNameType();        }        return getParent().Define_NameType_nameType(this, caller);    }    // Declared in TypeCheck.jrag at line 516    public TypeDecl Define_TypeDecl_enclosingInstance(ASTNode caller, ASTNode child) {        if(caller == getRightNoTransform()) {            return getLeft().type();        }        return getParent().Define_TypeDecl_enclosingInstance(this, caller);    }    // Declared in LookupType.jrag at line 341    public SimpleSet Define_SimpleSet_lookupType(ASTNode caller, ASTNode child, String name) {        if(caller == getRightNoTransform()) {            return getLeft().qualifiedLookupType(name);        }        return getParent().Define_SimpleSet_lookupType(this, caller, name);    }    // Declared in DefiniteAssignment.jrag at line 838    public boolean Define_boolean_isDUbefore(ASTNode caller, ASTNode child, Variable v) {        if(caller == getRightNoTransform()) {            return getLeft().isDUafter(v);        }        return getParent().Define_boolean_isDUbefore(this, caller, v);    }public ASTNode rewriteTo() {    return super.rewriteTo();}}

⌨️ 快捷键说明

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