expr.java
来自「JDK1.4编译器后端」· Java 代码 · 共 784 行 · 第 1/2 页
JAVA
784 行
// Declared in ResolveAmbiguousNames.jrag at line 17 @SuppressWarnings({"unchecked", "cast"}) public boolean isMethodAccess() { boolean isMethodAccess_value = isMethodAccess_compute(); return isMethodAccess_value; } private boolean isMethodAccess_compute() { return false; } // Declared in ResolveAmbiguousNames.jrag at line 21 @SuppressWarnings({"unchecked", "cast"}) public boolean isFieldAccess() { boolean isFieldAccess_value = isFieldAccess_compute(); return isFieldAccess_value; } private boolean isFieldAccess_compute() { return false; } // Declared in ResolveAmbiguousNames.jrag at line 25 @SuppressWarnings({"unchecked", "cast"}) public boolean isSuperAccess() { boolean isSuperAccess_value = isSuperAccess_compute(); return isSuperAccess_value; } private boolean isSuperAccess_compute() { return false; } // Declared in ResolveAmbiguousNames.jrag at line 31 @SuppressWarnings({"unchecked", "cast"}) public boolean isThisAccess() { boolean isThisAccess_value = isThisAccess_compute(); return isThisAccess_value; } private boolean isThisAccess_compute() { return false; } // Declared in ResolveAmbiguousNames.jrag at line 37 @SuppressWarnings({"unchecked", "cast"}) public boolean isPackageAccess() { boolean isPackageAccess_value = isPackageAccess_compute(); return isPackageAccess_value; } private boolean isPackageAccess_compute() { return false; } // Declared in ResolveAmbiguousNames.jrag at line 41 @SuppressWarnings({"unchecked", "cast"}) public boolean isArrayAccess() { boolean isArrayAccess_value = isArrayAccess_compute(); return isArrayAccess_value; } private boolean isArrayAccess_compute() { return false; } // Declared in ResolveAmbiguousNames.jrag at line 45 @SuppressWarnings({"unchecked", "cast"}) public boolean isClassAccess() { boolean isClassAccess_value = isClassAccess_compute(); return isClassAccess_value; } private boolean isClassAccess_compute() { return false; } // Declared in ResolveAmbiguousNames.jrag at line 49 @SuppressWarnings({"unchecked", "cast"}) public boolean isSuperConstructorAccess() { boolean isSuperConstructorAccess_value = isSuperConstructorAccess_compute(); return isSuperConstructorAccess_value; } private boolean isSuperConstructorAccess_compute() { return false; } // Declared in ResolveAmbiguousNames.jrag at line 55 @SuppressWarnings({"unchecked", "cast"}) public boolean isLeftChildOfDot() { boolean isLeftChildOfDot_value = isLeftChildOfDot_compute(); return isLeftChildOfDot_value; } private boolean isLeftChildOfDot_compute() { return hasParentDot() && parentDot().getLeft() == this; } // Declared in ResolveAmbiguousNames.jrag at line 56 @SuppressWarnings({"unchecked", "cast"}) public boolean isRightChildOfDot() { boolean isRightChildOfDot_value = isRightChildOfDot_compute(); return isRightChildOfDot_value; } private boolean isRightChildOfDot_compute() { return hasParentDot() && parentDot().getRight() == this; } // Declared in ResolveAmbiguousNames.jrag at line 69 @SuppressWarnings({"unchecked", "cast"}) public AbstractDot parentDot() { AbstractDot parentDot_value = parentDot_compute(); return parentDot_value; } private AbstractDot parentDot_compute() { return getParent() instanceof AbstractDot ? (AbstractDot)getParent() : null; } // Declared in ResolveAmbiguousNames.jrag at line 70 @SuppressWarnings({"unchecked", "cast"}) public boolean hasParentDot() { boolean hasParentDot_value = hasParentDot_compute(); return hasParentDot_value; } private boolean hasParentDot_compute() { return parentDot() != null; } // Declared in ResolveAmbiguousNames.jrag at line 72 @SuppressWarnings({"unchecked", "cast"}) public Access nextAccess() { Access nextAccess_value = nextAccess_compute(); return nextAccess_value; } private Access nextAccess_compute() { return parentDot().nextAccess(); } // Declared in ResolveAmbiguousNames.jrag at line 73 @SuppressWarnings({"unchecked", "cast"}) public boolean hasNextAccess() { boolean hasNextAccess_value = hasNextAccess_compute(); return hasNextAccess_value; } private boolean hasNextAccess_compute() { return isLeftChildOfDot(); } // Declared in TypeAnalysis.jrag at line 505 @SuppressWarnings({"unchecked", "cast"}) public Stmt enclosingStmt() { Stmt enclosingStmt_value = enclosingStmt_compute(); return enclosingStmt_value; } private Stmt enclosingStmt_compute() { ASTNode node = this; while(node != null && !(node instanceof Stmt)) node = node.getParent(); return (Stmt)node; } // Declared in TypeCheck.jrag at line 15 @SuppressWarnings({"unchecked", "cast"}) public boolean isVariable() { boolean isVariable_value = isVariable_compute(); return isVariable_value; } private boolean isVariable_compute() { return false; } // Declared in TypeHierarchyCheck.jrag at line 20 @SuppressWarnings({"unchecked", "cast"}) public boolean isUnknown() { boolean isUnknown_value = isUnknown_compute(); return isUnknown_value; } private boolean isUnknown_compute() { return type().isUnknown(); } // Declared in TypeHierarchyCheck.jrag at line 150 @SuppressWarnings({"unchecked", "cast"}) public boolean staticContextQualifier() { boolean staticContextQualifier_value = staticContextQualifier_compute(); return staticContextQualifier_value; } private boolean staticContextQualifier_compute() { return false; } // Declared in CreateBCode.jrag at line 208 @SuppressWarnings({"unchecked", "cast"}) public boolean needsPop() { boolean needsPop_value = needsPop_compute(); return needsPop_value; } private boolean needsPop_compute() { return true; } protected boolean false_label_computed = false; protected int false_label_value; // Declared in CreateBCode.jrag at line 921 @SuppressWarnings({"unchecked", "cast"}) public int false_label() { if(false_label_computed) return false_label_value; int num = boundariesCrossed; boolean isFinal = this.is$Final(); false_label_value = false_label_compute(); if(isFinal && num == boundariesCrossed) false_label_computed = true; return false_label_value; } private int false_label_compute() { return getParent().definesLabel() ? condition_false_label() : hostType().constantPool().newLabel(); } protected boolean true_label_computed = false; protected int true_label_value; // Declared in CreateBCode.jrag at line 923 @SuppressWarnings({"unchecked", "cast"}) public int true_label() { if(true_label_computed) return true_label_value; int num = boundariesCrossed; boolean isFinal = this.is$Final(); true_label_value = true_label_compute(); if(isFinal && num == boundariesCrossed) true_label_computed = true; return true_label_value; } private int true_label_compute() { return getParent().definesLabel() ? condition_true_label() : hostType().constantPool().newLabel(); } // Declared in CreateBCode.jrag at line 987 @SuppressWarnings({"unchecked", "cast"}) public boolean canBeTrue() { boolean canBeTrue_value = canBeTrue_compute(); return canBeTrue_value; } private boolean canBeTrue_compute() { return !isFalse(); } // Declared in CreateBCode.jrag at line 997 @SuppressWarnings({"unchecked", "cast"}) public boolean canBeFalse() { boolean canBeFalse_value = canBeFalse_compute(); return canBeFalse_value; } private boolean canBeFalse_compute() { return !isTrue(); } // Declared in DefiniteAssignment.jrag at line 15 @SuppressWarnings({"unchecked", "cast"}) public boolean isDest() { boolean isDest_value = getParent().Define_boolean_isDest(this, null); return isDest_value; } // Declared in DefiniteAssignment.jrag at line 25 @SuppressWarnings({"unchecked", "cast"}) public boolean isSource() { boolean isSource_value = getParent().Define_boolean_isSource(this, null); return isSource_value; } // Declared in DefiniteAssignment.jrag at line 49 @SuppressWarnings({"unchecked", "cast"}) public boolean isIncOrDec() { boolean isIncOrDec_value = getParent().Define_boolean_isIncOrDec(this, null); return isIncOrDec_value; } // Declared in DefiniteAssignment.jrag at line 236 @SuppressWarnings({"unchecked", "cast"}) public boolean isDAbefore(Variable v) { boolean isDAbefore_Variable_value = getParent().Define_boolean_isDAbefore(this, null, v); return isDAbefore_Variable_value; } // Declared in DefiniteAssignment.jrag at line 694 @SuppressWarnings({"unchecked", "cast"}) public boolean isDUbefore(Variable v) { boolean isDUbefore_Variable_value = getParent().Define_boolean_isDUbefore(this, null, v); return isDUbefore_Variable_value; } // Declared in LookupMethod.jrag at line 23 @SuppressWarnings({"unchecked", "cast"}) public Collection lookupMethod(String name) { Collection lookupMethod_String_value = getParent().Define_Collection_lookupMethod(this, null, name); return lookupMethod_String_value; } // Declared in LookupType.jrag at line 49 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeBoolean() { TypeDecl typeBoolean_value = getParent().Define_TypeDecl_typeBoolean(this, null); return typeBoolean_value; } // Declared in LookupType.jrag at line 50 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeByte() { TypeDecl typeByte_value = getParent().Define_TypeDecl_typeByte(this, null); return typeByte_value; } // Declared in LookupType.jrag at line 51 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeShort() { TypeDecl typeShort_value = getParent().Define_TypeDecl_typeShort(this, null); return typeShort_value; } // Declared in LookupType.jrag at line 52 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeChar() { TypeDecl typeChar_value = getParent().Define_TypeDecl_typeChar(this, null); return typeChar_value; } // Declared in LookupType.jrag at line 53 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeInt() { TypeDecl typeInt_value = getParent().Define_TypeDecl_typeInt(this, null); return typeInt_value; } // Declared in LookupType.jrag at line 54 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeLong() { TypeDecl typeLong_value = getParent().Define_TypeDecl_typeLong(this, null); return typeLong_value; } // Declared in LookupType.jrag at line 55 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeFloat() { TypeDecl typeFloat_value = getParent().Define_TypeDecl_typeFloat(this, null); return typeFloat_value; } // Declared in LookupType.jrag at line 56 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeDouble() { TypeDecl typeDouble_value = getParent().Define_TypeDecl_typeDouble(this, null); return typeDouble_value; } // Declared in LookupType.jrag at line 57 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeString() { TypeDecl typeString_value = getParent().Define_TypeDecl_typeString(this, null); return typeString_value; } // Declared in LookupType.jrag at line 58 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeVoid() { TypeDecl typeVoid_value = getParent().Define_TypeDecl_typeVoid(this, null); return typeVoid_value; } // Declared in LookupType.jrag at line 59 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeNull() { TypeDecl typeNull_value = getParent().Define_TypeDecl_typeNull(this, null); return typeNull_value; } // Declared in LookupType.jrag at line 72 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl unknownType() { TypeDecl unknownType_value = getParent().Define_TypeDecl_unknownType(this, null); return unknownType_value; } // Declared in LookupType.jrag at line 86 @SuppressWarnings({"unchecked", "cast"}) public boolean hasPackage(String packageName) { boolean hasPackage_String_value = getParent().Define_boolean_hasPackage(this, null, packageName); return hasPackage_String_value; } // Declared in LookupType.jrag at line 95 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl lookupType(String packageName, String typeName) { TypeDecl lookupType_String_String_value = getParent().Define_TypeDecl_lookupType(this, null, packageName, typeName); return lookupType_String_String_value; } // Declared in LookupType.jrag at line 176 @SuppressWarnings({"unchecked", "cast"}) public SimpleSet lookupType(String name) { SimpleSet lookupType_String_value = getParent().Define_SimpleSet_lookupType(this, null, name); return lookupType_String_value; } // Declared in LookupVariable.jrag at line 19 @SuppressWarnings({"unchecked", "cast"}) public SimpleSet lookupVariable(String name) { SimpleSet lookupVariable_String_value = getParent().Define_SimpleSet_lookupVariable(this, null, name); return lookupVariable_String_value; } // Declared in SyntacticClassification.jrag at line 20 @SuppressWarnings({"unchecked", "cast"}) public NameType nameType() { NameType nameType_value = getParent().Define_NameType_nameType(this, null); return nameType_value; } // Declared in TypeAnalysis.jrag at line 512 @SuppressWarnings({"unchecked", "cast"}) public BodyDecl enclosingBodyDecl() { BodyDecl enclosingBodyDecl_value = getParent().Define_BodyDecl_enclosingBodyDecl(this, null); return enclosingBodyDecl_value; } // Declared in TypeAnalysis.jrag at line 569 @SuppressWarnings({"unchecked", "cast"}) public String hostPackage() { String hostPackage_value = getParent().Define_String_hostPackage(this, null); return hostPackage_value; } // Declared in TypeAnalysis.jrag at line 584 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl hostType() { TypeDecl hostType_value = getParent().Define_TypeDecl_hostType(this, null); return hostType_value; } // Declared in TypeHierarchyCheck.jrag at line 11 @SuppressWarnings({"unchecked", "cast"}) public String methodHost() { String methodHost_value = getParent().Define_String_methodHost(this, null); return methodHost_value; } // Declared in TypeHierarchyCheck.jrag at line 134 @SuppressWarnings({"unchecked", "cast"}) public boolean inStaticContext() { boolean inStaticContext_value = getParent().Define_boolean_inStaticContext(this, null); return inStaticContext_value; } // Declared in CreateBCode.jrag at line 953 @SuppressWarnings({"unchecked", "cast"}) public int condition_false_label() { int condition_false_label_value = getParent().Define_int_condition_false_label(this, null); return condition_false_label_value; } // Declared in CreateBCode.jrag at line 957 @SuppressWarnings({"unchecked", "cast"}) public int condition_true_label() { int condition_true_label_value = getParent().Define_int_condition_true_label(this, null); return condition_true_label_value; }public ASTNode rewriteTo() { return super.rewriteTo();}}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?