📄 variabledeclaration.java
字号:
contains_Object_visited.put(_parameters, new Integer(boundariesCrossed)); boolean contains_Object_value = contains_compute(o); contains_Object_visited.remove(_parameters); return contains_Object_value; } private boolean contains_compute(Object o) { return this == o; } protected int isBlankFinal_visited = -1; // Declared in DefiniteAssignment.jrag at line 91 @SuppressWarnings({"unchecked", "cast"}) public boolean isBlankFinal() { if(isBlankFinal_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: isBlankFinal in class: "); isBlankFinal_visited = boundariesCrossed; boolean isBlankFinal_value = isBlankFinal_compute(); isBlankFinal_visited = -1; return isBlankFinal_value; } private boolean isBlankFinal_compute() { return isFinal() && (!hasInit() || !getInit().isConstant()); } protected int isValue_visited = -1; // Declared in DefiniteAssignment.jrag at line 92 @SuppressWarnings({"unchecked", "cast"}) public boolean isValue() { if(isValue_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: isValue in class: "); isValue_visited = boundariesCrossed; boolean isValue_value = isValue_compute(); isValue_visited = -1; return isValue_value; } private boolean isValue_compute() { return isFinal() && hasInit() && getInit().isConstant(); } protected java.util.Map isDAafter_Variable_visited; // Declared in DefiniteAssignment.jrag at line 493 @SuppressWarnings({"unchecked", "cast"}) public boolean isDAafter(Variable v) { Object _parameters = v;if(isDAafter_Variable_visited == null) isDAafter_Variable_visited = new java.util.HashMap(4);if(isDAafter_Variable_values == null) isDAafter_Variable_values = new java.util.HashMap(4); if(isDAafter_Variable_values.containsKey(_parameters)) return ((Boolean)isDAafter_Variable_values.get(_parameters)).booleanValue(); if(new Integer(boundariesCrossed).equals(isDAafter_Variable_visited.get(_parameters))) throw new RuntimeException("Circular definition of attr: isDAafter in class: "); isDAafter_Variable_visited.put(_parameters, new Integer(boundariesCrossed)); int num = boundariesCrossed; boolean isFinal = this.is$Final(); boolean isDAafter_Variable_value = isDAafter_compute(v); if(isFinal && num == boundariesCrossed) isDAafter_Variable_values.put(_parameters, Boolean.valueOf(isDAafter_Variable_value)); isDAafter_Variable_visited.remove(_parameters); return isDAafter_Variable_value; } private boolean isDAafter_compute(Variable v) { if(v == this) return hasInit(); return hasInit() ? getInit().isDAafter(v) : isDAbefore(v); } protected java.util.Map isDUafter_Variable_visited; // Declared in DefiniteAssignment.jrag at line 879 @SuppressWarnings({"unchecked", "cast"}) public boolean isDUafter(Variable v) { Object _parameters = v;if(isDUafter_Variable_visited == null) isDUafter_Variable_visited = new java.util.HashMap(4);if(isDUafter_Variable_values == null) isDUafter_Variable_values = new java.util.HashMap(4); if(isDUafter_Variable_values.containsKey(_parameters)) return ((Boolean)isDUafter_Variable_values.get(_parameters)).booleanValue(); if(new Integer(boundariesCrossed).equals(isDUafter_Variable_visited.get(_parameters))) throw new RuntimeException("Circular definition of attr: isDUafter in class: "); isDUafter_Variable_visited.put(_parameters, new Integer(boundariesCrossed)); int num = boundariesCrossed; boolean isFinal = this.is$Final(); boolean isDUafter_Variable_value = isDUafter_compute(v); if(isFinal && num == boundariesCrossed) isDUafter_Variable_values.put(_parameters, Boolean.valueOf(isDUafter_Variable_value)); isDUafter_Variable_visited.remove(_parameters); return isDUafter_Variable_value; } private boolean isDUafter_compute(Variable v) { if(v == this) return !hasInit(); return hasInit() ? getInit().isDUafter(v) : isDUbefore(v); } protected java.util.Map declaresVariable_String_visited; // Declared in LookupVariable.jrag at line 128 @SuppressWarnings({"unchecked", "cast"}) public boolean declaresVariable(String name) { Object _parameters = name;if(declaresVariable_String_visited == null) declaresVariable_String_visited = new java.util.HashMap(4); if(new Integer(boundariesCrossed).equals(declaresVariable_String_visited.get(_parameters))) throw new RuntimeException("Circular definition of attr: declaresVariable in class: "); declaresVariable_String_visited.put(_parameters, new Integer(boundariesCrossed)); boolean declaresVariable_String_value = declaresVariable_compute(name); declaresVariable_String_visited.remove(_parameters); return declaresVariable_String_value; } private boolean declaresVariable_compute(String name) { return name().equals(name); } protected int isSynthetic_visited = -1; // Declared in Modifiers.jrag at line 217 @SuppressWarnings({"unchecked", "cast"}) public boolean isSynthetic() { if(isSynthetic_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: isSynthetic in class: "); isSynthetic_visited = boundariesCrossed; boolean isSynthetic_value = isSynthetic_compute(); isSynthetic_visited = -1; return isSynthetic_value; } private boolean isSynthetic_compute() { return getModifiers().isSynthetic(); } protected int dumpString_visited = -1; // Declared in PrettyPrint.jadd at line 791 @SuppressWarnings({"unchecked", "cast"}) public String dumpString() { if(dumpString_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: dumpString in class: "); dumpString_visited = boundariesCrossed; String dumpString_value = dumpString_compute(); dumpString_visited = -1; return dumpString_value; } private String dumpString_compute() { return getClass().getName() + " [" + getID() + "]"; } protected int type_visited = -1; // Declared in TypeAnalysis.jrag at line 253 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl type() { if(type_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: type in class: "); type_visited = boundariesCrossed; TypeDecl type_value = type_compute(); type_visited = -1; return type_value; } private TypeDecl type_compute() { return getTypeAccess().type(); } protected int isClassVariable_visited = -1; // Declared in VariableDeclaration.jrag at line 38 @SuppressWarnings({"unchecked", "cast"}) public boolean isClassVariable() { if(isClassVariable_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: isClassVariable in class: "); isClassVariable_visited = boundariesCrossed; boolean isClassVariable_value = isClassVariable_compute(); isClassVariable_visited = -1; return isClassVariable_value; } private boolean isClassVariable_compute() { return false; } protected int isInstanceVariable_visited = -1; // Declared in VariableDeclaration.jrag at line 39 @SuppressWarnings({"unchecked", "cast"}) public boolean isInstanceVariable() { if(isInstanceVariable_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: isInstanceVariable in class: "); isInstanceVariable_visited = boundariesCrossed; boolean isInstanceVariable_value = isInstanceVariable_compute(); isInstanceVariable_visited = -1; return isInstanceVariable_value; } private boolean isInstanceVariable_compute() { return false; } protected int isMethodParameter_visited = -1; // Declared in VariableDeclaration.jrag at line 40 @SuppressWarnings({"unchecked", "cast"}) public boolean isMethodParameter() { if(isMethodParameter_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: isMethodParameter in class: "); isMethodParameter_visited = boundariesCrossed; boolean isMethodParameter_value = isMethodParameter_compute(); isMethodParameter_visited = -1; return isMethodParameter_value; } private boolean isMethodParameter_compute() { return false; } protected int isConstructorParameter_visited = -1; // Declared in VariableDeclaration.jrag at line 41 @SuppressWarnings({"unchecked", "cast"}) public boolean isConstructorParameter() { if(isConstructorParameter_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: isConstructorParameter in class: "); isConstructorParameter_visited = boundariesCrossed; boolean isConstructorParameter_value = isConstructorParameter_compute(); isConstructorParameter_visited = -1; return isConstructorParameter_value; } private boolean isConstructorParameter_compute() { return false; } protected int isExceptionHandlerParameter_visited = -1; // Declared in VariableDeclaration.jrag at line 42 @SuppressWarnings({"unchecked", "cast"}) public boolean isExceptionHandlerParameter() { if(isExceptionHandlerParameter_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: isExceptionHandlerParameter in class: "); isExceptionHandlerParameter_visited = boundariesCrossed; boolean isExceptionHandlerParameter_value = isExceptionHandlerParameter_compute(); isExceptionHandlerParameter_visited = -1; return isExceptionHandlerParameter_value; } private boolean isExceptionHandlerParameter_compute() { return false; } protected int isLocalVariable_visited = -1; // Declared in VariableDeclaration.jrag at line 43 @SuppressWarnings({"unchecked", "cast"}) public boolean isLocalVariable() { if(isLocalVariable_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: isLocalVariable in class: "); isLocalVariable_visited = boundariesCrossed; boolean isLocalVariable_value = isLocalVariable_compute(); isLocalVariable_visited = -1; return isLocalVariable_value; } private boolean isLocalVariable_compute() { return true; } protected int isFinal_visited = -1; // Declared in VariableDeclaration.jrag at line 45 @SuppressWarnings({"unchecked", "cast"}) public boolean isFinal() { if(isFinal_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: isFinal in class: "); isFinal_visited = boundariesCrossed; boolean isFinal_value = isFinal_compute(); isFinal_visited = -1; return isFinal_value; } private boolean isFinal_compute() { return getModifiers().isFinal(); } protected int isBlank_visited = -1; // Declared in VariableDeclaration.jrag at line 46 @SuppressWarnings({"unchecked", "cast"}) public boolean isBlank() { if(isBlank_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: isBlank in class: "); isBlank_visited = boundariesCrossed; boolean isBlank_value = isBlank_compute(); isBlank_visited = -1; return isBlank_value; } private boolean isBlank_compute() { return !hasInit(); } protected int isStatic_visited = -1; // Declared in VariableDeclaration.jrag at line 47 @SuppressWarnings({"unchecked", "cast"}) public boolean isStatic() { if(isStatic_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: isStatic in class: "); isStatic_visited = boundariesCrossed; boolean isStatic_value = isStatic_compute(); isStatic_visited = -1; return isStatic_value; } private boolean isStatic_compute() { return false; } protected int name_visited = -1; // Declared in VariableDeclaration.jrag at line 49 @SuppressWarnings({"unchecked", "cast"}) public String name() { if(name_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: name in class: "); name_visited = boundariesCrossed; String name_value = name_compute(); name_visited = -1; return name_value; } private String name_compute() { return getID(); } protected int constant_visited = -1; protected boolean constant_computed = false; protected Constant constant_value; // Declared in VariableDeclaration.jrag at line 51 @SuppressWarnings({"unchecked", "cast"}) public Constant constant() { if(constant_computed) return constant_value; if(constant_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: constant in class: "); constant_visited = boundariesCrossed; int num = boundariesCrossed; boolean isFinal = this.is$Final(); constant_value = constant_compute(); if(isFinal && num == boundariesCrossed) constant_computed = true; constant_visited = -1; return constant_value; } private Constant constant_compute() { return type().cast(getInit().constant()); } protected java.util.Map lookupVariable_String_visited; // Declared in LookupVariable.jrag at line 21 @SuppressWarnings({"unchecked", "cast"}) public SimpleSet lookupVariable(String name) { Object _parameters = name;if(lookupVariable_String_visited == null) lookupVariable_String_visited = new java.util.HashMap(4); if(new Integer(boundariesCrossed).equals(lookupVariable_String_visited.get(_parameters))) throw new RuntimeException("Circular definition of attr: lookupVariable in class: "); lookupVariable_String_visited.put(_parameters, new Integer(boundariesCrossed)); if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree"); SimpleSet lookupVariable_String_value = getParent().Define_SimpleSet_lookupVariable(this, null, name); lookupVariable_String_visited.remove(_parameters); return lookupVariable_String_value; } protected int outerScope_visited = -1; // Declared in NameCheck.jrag at line 289 @SuppressWarnings({"unchecked", "cast"}) public VariableScope outerScope() { if(outerScope_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: outerScope in class: "); outerScope_visited = boundariesCrossed; if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree"); VariableScope outerScope_value = getParent().Define_VariableScope_outerScope(this, null); outerScope_visited = -1; return outerScope_value; } protected int hostType_visited = -1; // Declared in TypeAnalysis.jrag at line 586 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl hostType() { if(hostType_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: hostType in class: "); hostType_visited = boundariesCrossed; if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree"); TypeDecl hostType_value = getParent().Define_TypeDecl_hostType(this, null); hostType_visited = -1; return hostType_value; } // Declared in DefiniteAssignment.jrag at line 40 public boolean Define_boolean_isSource(ASTNode caller, ASTNode child) { if(caller == getInitOptNoTransform()) { 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 TypeAnalysis.jrag at line 262 public TypeDecl Define_TypeDecl_declType(ASTNode caller, ASTNode child) { if(caller == getInitOptNoTransform()) { return type(); } if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree"); return getParent().Define_TypeDecl_declType(this, caller); } // Declared in SyntacticClassification.jrag at line 85 public NameType Define_NameType_nameType(ASTNode caller, ASTNode child) { if(caller == getTypeAccessNoTransform()) { return NameType.TYPE_NAME; } 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 DefiniteAssignment.jrag at line 498 public boolean Define_boolean_isDAbefore(ASTNode caller, ASTNode child, Variable v) { if(caller == getInitOptNoTransform()) { return isDAbefore(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 Modifiers.jrag at line 284 public boolean Define_boolean_mayBeFinal(ASTNode caller, ASTNode child) { if(caller == getModifiersNoTransform()) { return true; } if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree"); return getParent().Define_boolean_mayBeFinal(this, caller); } // Declared in DefiniteAssignment.jrag at line 884 public boolean Define_boolean_isDUbefore(ASTNode caller, ASTNode child, Variable v) { if(caller == getInitOptNoTransform()) { return isDUbefore(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 + -