📄 abstractdot.java
字号:
private Access rightSide_compute() { return getRight/*NoTransform*/() instanceof AbstractDot ? (Access)((AbstractDot)getRight/*NoTransform*/()).getLeft() : (Access)getRight(); } protected int lastAccess_visited = -1; // Declared in ResolveAmbiguousNames.jrag at line 67 @SuppressWarnings({"unchecked", "cast"}) public Access lastAccess() { if(lastAccess_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: lastAccess in class: "); lastAccess_visited = boundariesCrossed; Access lastAccess_value = lastAccess_compute(); lastAccess_visited = -1; return lastAccess_value; } private Access lastAccess_compute() { return getRight().lastAccess(); } protected int nextAccess_visited = -1; // Declared in ResolveAmbiguousNames.jrag at line 75 @SuppressWarnings({"unchecked", "cast"}) public Access nextAccess() { if(nextAccess_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: nextAccess in class: "); nextAccess_visited = boundariesCrossed; Access nextAccess_value = nextAccess_compute(); nextAccess_visited = -1; return nextAccess_value; } private Access nextAccess_compute() { return rightSide(); } protected int prevExpr_visited = -1; // Declared in ResolveAmbiguousNames.jrag at line 77 @SuppressWarnings({"unchecked", "cast"}) public Expr prevExpr() { if(prevExpr_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: prevExpr in class: "); prevExpr_visited = boundariesCrossed; Expr prevExpr_value = prevExpr_compute(); prevExpr_visited = -1; return prevExpr_value; } private Expr prevExpr_compute() { return leftSide(); } protected int hasPrevExpr_visited = -1; // Declared in ResolveAmbiguousNames.jrag at line 88 @SuppressWarnings({"unchecked", "cast"}) public boolean hasPrevExpr() { if(hasPrevExpr_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: hasPrevExpr in class: "); hasPrevExpr_visited = boundariesCrossed; boolean hasPrevExpr_value = hasPrevExpr_compute(); hasPrevExpr_visited = -1; return hasPrevExpr_value; } private boolean hasPrevExpr_compute() { return true; } protected int predNameType_visited = -1; // Declared in SyntacticClassification.jrag at line 60 @SuppressWarnings({"unchecked", "cast"}) public NameType predNameType() { if(predNameType_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: predNameType in class: "); predNameType_visited = boundariesCrossed; NameType predNameType_value = predNameType_compute(); predNameType_visited = -1; return predNameType_value; } private NameType predNameType_compute() { return getLeft() instanceof Access ? ((Access)getLeft()).predNameType() : NameType.NO_NAME; } protected int type_visited = -1; // Declared in TypeAnalysis.jrag at line 250 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl type() { if(type_computed) return type_value; if(type_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: type in class: "); type_visited = boundariesCrossed; int num = boundariesCrossed; boolean isFinal = this.is$Final(); type_value = type_compute(); if(isFinal && num == boundariesCrossed) type_computed = true; type_visited = -1; return type_value; } private TypeDecl type_compute() { return lastAccess().type(); } protected int isVariable_visited = -1; // Declared in TypeCheck.jrag at line 16 @SuppressWarnings({"unchecked", "cast"}) public boolean isVariable() { if(isVariable_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: isVariable in class: "); isVariable_visited = boundariesCrossed; boolean isVariable_value = isVariable_compute(); isVariable_visited = -1; return isVariable_value; } private boolean isVariable_compute() { return lastAccess().isVariable(); } protected int staticContextQualifier_visited = -1; // Declared in TypeHierarchyCheck.jrag at line 153 @SuppressWarnings({"unchecked", "cast"}) public boolean staticContextQualifier() { if(staticContextQualifier_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: staticContextQualifier in class: "); staticContextQualifier_visited = boundariesCrossed; boolean staticContextQualifier_value = staticContextQualifier_compute(); staticContextQualifier_visited = -1; return staticContextQualifier_value; } private boolean staticContextQualifier_compute() { return lastAccess().staticContextQualifier(); } protected java.util.Map isDUbefore_Variable_visited; 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_visited == null) isDUbefore_Variable_visited = new java.util.HashMap(4);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(); if(new Integer(boundariesCrossed).equals(isDUbefore_Variable_visited.get(_parameters))) throw new RuntimeException("Circular definition of attr: isDUbefore in class: "); isDUbefore_Variable_visited.put(_parameters, new Integer(boundariesCrossed)); int num = boundariesCrossed; boolean isFinal = this.is$Final(); if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree"); 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)); isDUbefore_Variable_visited.remove(_parameters); 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); } if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree"); 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); } if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree"); 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; } if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree"); 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); } if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree"); 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(); } if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree"); 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(); } if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree"); 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; } if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree"); 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; } if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree"); 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); } if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree"); 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(); } if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree"); 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(); } if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree"); 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(); } if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree"); 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); } if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree"); 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); } if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree"); return getParent().Define_boolean_isDUbefore(this, caller, v); }public ASTNode rewriteTo() { return super.rewriteTo();}}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -