📄 fielddeclaration.java
字号:
isStatic_visited = -1; return isStatic_value; } private boolean isStatic_compute() { return getModifiers().isStatic() || hostType().isInterfaceDecl(); } protected int isFinal_visited = -1; // Declared in Modifiers.jrag at line 242 @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() || hostType().isInterfaceDecl(); } protected int isTransient_visited = -1; // Declared in Modifiers.jrag at line 243 @SuppressWarnings({"unchecked", "cast"}) public boolean isTransient() { if(isTransient_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: isTransient in class: "); isTransient_visited = boundariesCrossed; boolean isTransient_value = isTransient_compute(); isTransient_visited = -1; return isTransient_value; } private boolean isTransient_compute() { return getModifiers().isTransient(); } protected int isVolatile_visited = -1; // Declared in Modifiers.jrag at line 244 @SuppressWarnings({"unchecked", "cast"}) public boolean isVolatile() { if(isVolatile_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: isVolatile in class: "); isVolatile_visited = boundariesCrossed; boolean isVolatile_value = isVolatile_compute(); isVolatile_visited = -1; return isVolatile_value; } private boolean isVolatile_compute() { return getModifiers().isVolatile(); } protected int dumpString_visited = -1; // Declared in PrettyPrint.jadd at line 790 @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 252 @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 isVoid_visited = -1; // Declared in TypeAnalysis.jrag at line 274 @SuppressWarnings({"unchecked", "cast"}) public boolean isVoid() { if(isVoid_visited == boundariesCrossed) throw new RuntimeException("Circular definition of attr: isVoid in class: "); isVoid_visited = boundariesCrossed; boolean isVoid_value = isVoid_compute(); isVoid_visited = -1; return isVoid_value; } private boolean isVoid_compute() { return type().isVoid(); } protected int isClassVariable_visited = -1; // Declared in VariableDeclaration.jrag at line 55 @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 isStatic() || hostType().isInterfaceDecl(); } protected int isInstanceVariable_visited = -1; // Declared in VariableDeclaration.jrag at line 56 @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 (hostType().isClassDecl() || hostType().isAnonymous() )&& !isStatic(); } protected int isMethodParameter_visited = -1; // Declared in VariableDeclaration.jrag at line 57 @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 58 @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 59 @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 60 @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 false; } protected int isBlank_visited = -1; // Declared in VariableDeclaration.jrag at line 62 @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 name_visited = -1; // Declared in VariableDeclaration.jrag at line 64 @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 65 @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 handlesException_TypeDecl_visited; // Declared in ExceptionHandling.jrag at line 34 @SuppressWarnings({"unchecked", "cast"}) public boolean handlesException(TypeDecl exceptionType) { Object _parameters = exceptionType;if(handlesException_TypeDecl_visited == null) handlesException_TypeDecl_visited = new java.util.HashMap(4); if(new Integer(boundariesCrossed).equals(handlesException_TypeDecl_visited.get(_parameters))) throw new RuntimeException("Circular definition of attr: handlesException in class: "); handlesException_TypeDecl_visited.put(_parameters, new Integer(boundariesCrossed)); if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree"); boolean handlesException_TypeDecl_value = getParent().Define_boolean_handlesException(this, null, exceptionType); handlesException_TypeDecl_visited.remove(_parameters); return handlesException_TypeDecl_value; } // Declared in Modifiers.jrag at line 262 public boolean Define_boolean_mayBePrivate(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_mayBePrivate(this, caller); } // Declared in ExceptionHandling.jrag at line 143 public boolean Define_boolean_handlesException(ASTNode caller, ASTNode child, TypeDecl exceptionType) { if(caller == getInitOptNoTransform()){ if(hostType().isAnonymous()) return true; if(!exceptionType.isUncheckedException()) return true; for(Iterator iter = hostType().constructors().iterator(); iter.hasNext(); ) { ConstructorDecl decl = (ConstructorDecl)iter.next(); if(!decl.throwsException(exceptionType)) return false; } return true; } if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree"); return getParent().Define_boolean_handlesException(this, caller, exceptionType); } // Declared in DefiniteAssignment.jrag at line 322 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 264 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 Modifiers.jrag at line 260 public boolean Define_boolean_mayBePublic(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_mayBePublic(this, caller); } // Declared in DefiniteAssignment.jrag at line 39 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 Modifiers.jrag at line 266 public boolean Define_boolean_mayBeVolatile(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_mayBeVolatile(this, caller); } // Declared in Modifiers.jrag at line 261 public boolean Define_boolean_mayBeProtected(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_mayBeProtected(this, caller); } // Declared in Modifiers.jrag at line 265 public boolean Define_boolean_mayBeTransient(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_mayBeTransient(this, caller); } // Declared in TypeAnalysis.jrag at line 261 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 78 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 TypeHierarchyCheck.jrag at line 141 public boolean Define_boolean_inStaticContext(ASTNode caller, ASTNode child) { if(caller == getInitOptNoTransform()) { return isStatic() || hostType().isInterfaceDecl(); } if(getParent() == null) throw new RuntimeException("Trying to evaluate attribute in subtree not attached to main tree"); return getParent().Define_boolean_inStaticContext(this, caller); } // Declared in Modifiers.jrag at line 263 public boolean Define_boolean_mayBeStatic(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_mayBeStatic(this, caller); }public ASTNode rewriteTo() { return super.rewriteTo();}}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -