📄 classinstanceexpr.java
字号:
_parameters.add(v);if(computeDUbefore_int_Variable_values == null) computeDUbefore_int_Variable_values = new java.util.HashMap(4); if(computeDUbefore_int_Variable_values.containsKey(_parameters)) return ((Boolean)computeDUbefore_int_Variable_values.get(_parameters)).booleanValue(); int num = boundariesCrossed; boolean isFinal = this.is$Final(); boolean computeDUbefore_int_Variable_value = computeDUbefore_compute(i, v); if(isFinal && num == boundariesCrossed) computeDUbefore_int_Variable_values.put(_parameters, Boolean.valueOf(computeDUbefore_int_Variable_value)); return computeDUbefore_int_Variable_value; } private boolean computeDUbefore_compute(int i, Variable v) { return i == 0 ? isDUbefore(v) : getArg(i-1).isDUafter(v); } // Declared in LookupConstructor.jrag at line 53 @SuppressWarnings({"unchecked", "cast"}) public boolean applicableAndAccessible(ConstructorDecl decl) { boolean applicableAndAccessible_ConstructorDecl_value = applicableAndAccessible_compute(decl); return applicableAndAccessible_ConstructorDecl_value; } private boolean applicableAndAccessible_compute(ConstructorDecl decl) { return decl.applicable(getArgList()) && decl.accessibleFrom(hostType()) && (!decl.isProtected() || hasTypeDecl() || decl.hostPackage().equals(hostPackage())); } protected boolean decls_computed = false; protected SimpleSet decls_value; // Declared in LookupConstructor.jrag at line 73 @SuppressWarnings({"unchecked", "cast"}) public SimpleSet decls() { if(decls_computed) return decls_value; int num = boundariesCrossed; boolean isFinal = this.is$Final(); decls_value = decls_compute(); if(isFinal && num == boundariesCrossed) decls_computed = true; return decls_value; } private SimpleSet decls_compute() { TypeDecl typeDecl = hasTypeDecl() ? getTypeDecl() : getAccess().type(); return mostSpecificConstructor(typeDecl.constructors()); } protected boolean decl_computed = false; protected ConstructorDecl decl_value; // Declared in LookupConstructor.jrag at line 78 @SuppressWarnings({"unchecked", "cast"}) public ConstructorDecl decl() { if(decl_computed) return decl_value; int num = boundariesCrossed; boolean isFinal = this.is$Final(); decl_value = decl_compute(); if(isFinal && num == boundariesCrossed) decl_computed = true; return decl_value; } private ConstructorDecl decl_compute() { SimpleSet decls = decls(); if(decls.size() == 1) return (ConstructorDecl)decls.iterator().next(); return unknownConstructor(); } // Declared in LookupType.jrag at line 345 @SuppressWarnings({"unchecked", "cast"}) public SimpleSet qualifiedLookupType(String name) { SimpleSet qualifiedLookupType_String_value = qualifiedLookupType_compute(name); return qualifiedLookupType_String_value; } private SimpleSet qualifiedLookupType_compute(String name) { SimpleSet c = keepAccessibleTypes(type().memberTypes(name)); if(!c.isEmpty()) return c; if(type().name().equals(name)) return SimpleSet.emptySet.add(type()); return SimpleSet.emptySet; } protected java.util.Map localLookupType_String_values; // Declared in LookupType.jrag at line 384 @SuppressWarnings({"unchecked", "cast"}) public SimpleSet localLookupType(String name) { Object _parameters = name;if(localLookupType_String_values == null) localLookupType_String_values = new java.util.HashMap(4); if(localLookupType_String_values.containsKey(_parameters)) return (SimpleSet)localLookupType_String_values.get(_parameters); int num = boundariesCrossed; boolean isFinal = this.is$Final(); SimpleSet localLookupType_String_value = localLookupType_compute(name); if(isFinal && num == boundariesCrossed) localLookupType_String_values.put(_parameters, localLookupType_String_value); return localLookupType_String_value; } private SimpleSet localLookupType_compute(String name) { if(hasTypeDecl() && getTypeDecl().name().equals(name)) return SimpleSet.emptySet.add(getTypeDecl()); return SimpleSet.emptySet; } // Declared in NameCheck.jrag at line 130 @SuppressWarnings({"unchecked", "cast"}) public boolean validArgs() { boolean validArgs_value = validArgs_compute(); return validArgs_value; } private boolean validArgs_compute() { for(int i = 0; i < getNumArg(); i++) if(getArg(i).type().isUnknown()) return false; return true; } // Declared in SyntacticClassification.jrag at line 97 @SuppressWarnings({"unchecked", "cast"}) public NameType predNameType() { NameType predNameType_value = predNameType_compute(); return predNameType_value; } private NameType predNameType_compute() { return NameType.EXPRESSION_NAME; } // Declared in TypeAnalysis.jrag at line 312 @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 hasTypeDecl() ? getTypeDecl() : getAccess().type(); } // Declared in TypeCheck.jrag at line 519 @SuppressWarnings({"unchecked", "cast"}) public boolean noEnclosingInstance() { boolean noEnclosingInstance_value = noEnclosingInstance_compute(); return noEnclosingInstance_value; } private boolean noEnclosingInstance_compute() { return isQualified() ? qualifier().staticContextQualifier() : inStaticContext(); } // Declared in ExceptionHandling.jrag at line 38 @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 LookupConstructor.jrag at line 27 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeObject() { TypeDecl typeObject_value = getParent().Define_TypeDecl_typeObject(this, null); return typeObject_value; } // Declared in LookupConstructor.jrag at line 84 @SuppressWarnings({"unchecked", "cast"}) public ConstructorDecl unknownConstructor() { ConstructorDecl unknownConstructor_value = getParent().Define_ConstructorDecl_unknownConstructor(this, null); return unknownConstructor_value; } // Declared in TypeCheck.jrag at line 504 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl enclosingInstance() { TypeDecl enclosingInstance_value = getParent().Define_TypeDecl_enclosingInstance(this, null); return enclosingInstance_value; } // Declared in TypeHierarchyCheck.jrag at line 126 @SuppressWarnings({"unchecked", "cast"}) public boolean inExplicitConstructorInvocation() { boolean inExplicitConstructorInvocation_value = getParent().Define_boolean_inExplicitConstructorInvocation(this, null); return inExplicitConstructorInvocation_value; } // Declared in AnonymousClasses.jrag at line 15 public TypeDecl Define_TypeDecl_superType(ASTNode caller, ASTNode child) { if(caller == getTypeDeclOptNoTransform()) { return getAccess().type(); } return getParent().Define_TypeDecl_superType(this, caller); } // Declared in LookupVariable.jrag at line 135 public SimpleSet Define_SimpleSet_lookupVariable(ASTNode caller, ASTNode child, String name) { if(caller == getArgListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return unqualifiedScope().lookupVariable(name); } return getParent().Define_SimpleSet_lookupVariable(this, caller, name); } // Declared in AnonymousClasses.jrag at line 19 public ConstructorDecl Define_ConstructorDecl_constructorDecl(ASTNode caller, ASTNode child) { if(caller == getTypeDeclOptNoTransform()){ Collection c = getAccess().type().constructors(); SimpleSet maxSpecific = mostSpecificConstructor(c); if(maxSpecific.size() == 1) return (ConstructorDecl)maxSpecific.iterator().next(); return unknownConstructor(); } return getParent().Define_ConstructorDecl_constructorDecl(this, caller); } // Declared in TypeAnalysis.jrag at line 574 public TypeDecl Define_TypeDecl_hostType(ASTNode caller, ASTNode child) { if(caller == getTypeDeclOptNoTransform()) { return hostType(); } return getParent().Define_TypeDecl_hostType(this, caller); } // Declared in TypeAnalysis.jrag at line 532 public boolean Define_boolean_isMemberType(ASTNode caller, ASTNode child) { if(caller == getTypeDeclOptNoTransform()) { return false; } return getParent().Define_boolean_isMemberType(this, caller); } // Declared in LookupType.jrag at line 92 public boolean Define_boolean_hasPackage(ASTNode caller, ASTNode child, String packageName) { if(caller == getArgListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return unqualifiedScope().hasPackage(packageName); } return getParent().Define_boolean_hasPackage(this, caller, packageName); } // Declared in TypeAnalysis.jrag at line 218 public boolean Define_boolean_isAnonymous(ASTNode caller, ASTNode child) { if(caller == getTypeDeclOptNoTransform()) { return true; } return getParent().Define_boolean_isAnonymous(this, caller); } // Declared in SyntacticClassification.jrag at line 127 public NameType Define_NameType_nameType(ASTNode caller, ASTNode child) { if(caller == getArgListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return NameType.EXPRESSION_NAME; } if(caller == getTypeDeclOptNoTransform()) { return NameType.TYPE_NAME; } if(caller == getAccessNoTransform()) { return NameType.TYPE_NAME; } return getParent().Define_NameType_nameType(this, caller); } // Declared in DefiniteAssignment.jrag at line 431 public boolean Define_boolean_isDAbefore(ASTNode caller, ASTNode child, Variable v) { if(caller == getTypeDeclOptNoTransform()) { return isDAafterInstance(v); } if(caller == getArgListNoTransform()) { int i = caller.getIndexOfChild(child); return computeDAbefore(i, v); } return getParent().Define_boolean_isDAbefore(this, caller, v); } // Declared in LookupType.jrag at line 316 public SimpleSet Define_SimpleSet_lookupType(ASTNode caller, ASTNode child, String name) { if(caller == getTypeDeclOptNoTransform()){ SimpleSet c = localLookupType(name); if(!c.isEmpty()) return c; c = lookupType(name); if(!c.isEmpty()) return c; return unqualifiedScope().lookupType(name); } if(caller == getAccessNoTransform()){ SimpleSet c = lookupType(name); if(c.size() == 1) { if(isQualified()) c = keepInnerClasses(c); } return c; } if(caller == getArgListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return unqualifiedScope().lookupType(name); } return getParent().Define_SimpleSet_lookupType(this, caller, name); } // Declared in TypeHierarchyCheck.jrag at line 147 public boolean Define_boolean_inStaticContext(ASTNode caller, ASTNode child) { if(caller == getTypeDeclOptNoTransform()) { return isQualified() ? qualifier().staticContextQualifier() : inStaticContext(); } return getParent().Define_boolean_inStaticContext(this, caller); } // Declared in DefiniteAssignment.jrag at line 860 public boolean Define_boolean_isDUbefore(ASTNode caller, ASTNode child, Variable v) { if(caller == getArgListNoTransform()) { int i = caller.getIndexOfChild(child); return computeDUbefore(i, v); } return getParent().Define_boolean_isDUbefore(this, caller, v); }public ASTNode rewriteTo() { return super.rewriteTo();}}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -