📄 typedecl.java
字号:
private Constant plus_compute(Constant c) { throw new UnsupportedOperationException("ConstantExpression operation plus" + " not supported for type " + getClass().getName()); } // Declared in ConstantExpression.jrag at line 313 @SuppressWarnings({"unchecked", "cast"}) public Constant minus(Constant c) { Constant minus_Constant_value = minus_compute(c); return minus_Constant_value; } private Constant minus_compute(Constant c) { throw new UnsupportedOperationException("ConstantExpression operation minus" + " not supported for type " + getClass().getName()); } // Declared in ConstantExpression.jrag at line 322 @SuppressWarnings({"unchecked", "cast"}) public Constant bitNot(Constant c) { Constant bitNot_Constant_value = bitNot_compute(c); return bitNot_Constant_value; } private Constant bitNot_compute(Constant c) { throw new UnsupportedOperationException("ConstantExpression operation bitNot" + " not supported for type " + getClass().getName()); } // Declared in ConstantExpression.jrag at line 329 @SuppressWarnings({"unchecked", "cast"}) public Constant mul(Constant c1, Constant c2) { Constant mul_Constant_Constant_value = mul_compute(c1, c2); return mul_Constant_Constant_value; } private Constant mul_compute(Constant c1, Constant c2) { throw new UnsupportedOperationException("ConstantExpression operation mul" + " not supported for type " + getClass().getName()); } // Declared in ConstantExpression.jrag at line 338 @SuppressWarnings({"unchecked", "cast"}) public Constant div(Constant c1, Constant c2) { Constant div_Constant_Constant_value = div_compute(c1, c2); return div_Constant_Constant_value; } private Constant div_compute(Constant c1, Constant c2) { throw new UnsupportedOperationException("ConstantExpression operation div" + " not supported for type " + getClass().getName()); } // Declared in ConstantExpression.jrag at line 347 @SuppressWarnings({"unchecked", "cast"}) public Constant mod(Constant c1, Constant c2) { Constant mod_Constant_Constant_value = mod_compute(c1, c2); return mod_Constant_Constant_value; } private Constant mod_compute(Constant c1, Constant c2) { throw new UnsupportedOperationException("ConstantExpression operation mod" + " not supported for type " + getClass().getName()); } // Declared in ConstantExpression.jrag at line 356 @SuppressWarnings({"unchecked", "cast"}) public Constant add(Constant c1, Constant c2) { Constant add_Constant_Constant_value = add_compute(c1, c2); return add_Constant_Constant_value; } private Constant add_compute(Constant c1, Constant c2) { throw new UnsupportedOperationException("ConstantExpression operation add" + " not supported for type " + getClass().getName()); } // Declared in ConstantExpression.jrag at line 366 @SuppressWarnings({"unchecked", "cast"}) public Constant sub(Constant c1, Constant c2) { Constant sub_Constant_Constant_value = sub_compute(c1, c2); return sub_Constant_Constant_value; } private Constant sub_compute(Constant c1, Constant c2) { throw new UnsupportedOperationException("ConstantExpression operation sub" + " not supported for type " + getClass().getName()); } // Declared in ConstantExpression.jrag at line 375 @SuppressWarnings({"unchecked", "cast"}) public Constant lshift(Constant c1, Constant c2) { Constant lshift_Constant_Constant_value = lshift_compute(c1, c2); return lshift_Constant_Constant_value; } private Constant lshift_compute(Constant c1, Constant c2) { throw new UnsupportedOperationException("ConstantExpression operation lshift" + " not supported for type " + getClass().getName()); } // Declared in ConstantExpression.jrag at line 382 @SuppressWarnings({"unchecked", "cast"}) public Constant rshift(Constant c1, Constant c2) { Constant rshift_Constant_Constant_value = rshift_compute(c1, c2); return rshift_Constant_Constant_value; } private Constant rshift_compute(Constant c1, Constant c2) { throw new UnsupportedOperationException("ConstantExpression operation rshift" + " not supported for type " + getClass().getName()); } // Declared in ConstantExpression.jrag at line 389 @SuppressWarnings({"unchecked", "cast"}) public Constant urshift(Constant c1, Constant c2) { Constant urshift_Constant_Constant_value = urshift_compute(c1, c2); return urshift_Constant_Constant_value; } private Constant urshift_compute(Constant c1, Constant c2) { throw new UnsupportedOperationException("ConstantExpression operation urshift" + " not supported for type " + getClass().getName()); } // Declared in ConstantExpression.jrag at line 396 @SuppressWarnings({"unchecked", "cast"}) public Constant andBitwise(Constant c1, Constant c2) { Constant andBitwise_Constant_Constant_value = andBitwise_compute(c1, c2); return andBitwise_Constant_Constant_value; } private Constant andBitwise_compute(Constant c1, Constant c2) { throw new UnsupportedOperationException("ConstantExpression operation andBitwise" + " not supported for type " + getClass().getName()); } // Declared in ConstantExpression.jrag at line 404 @SuppressWarnings({"unchecked", "cast"}) public Constant xorBitwise(Constant c1, Constant c2) { Constant xorBitwise_Constant_Constant_value = xorBitwise_compute(c1, c2); return xorBitwise_Constant_Constant_value; } private Constant xorBitwise_compute(Constant c1, Constant c2) { throw new UnsupportedOperationException("ConstantExpression operation xorBitwise" + " not supported for type " + getClass().getName()); } // Declared in ConstantExpression.jrag at line 412 @SuppressWarnings({"unchecked", "cast"}) public Constant orBitwise(Constant c1, Constant c2) { Constant orBitwise_Constant_Constant_value = orBitwise_compute(c1, c2); return orBitwise_Constant_Constant_value; } private Constant orBitwise_compute(Constant c1, Constant c2) { throw new UnsupportedOperationException("ConstantExpression operation orBitwise" + " not supported for type " + getClass().getName()); } // Declared in ConstantExpression.jrag at line 420 @SuppressWarnings({"unchecked", "cast"}) public Constant questionColon(Constant cond, Constant c1, Constant c2) { Constant questionColon_Constant_Constant_Constant_value = questionColon_compute(cond, c1, c2); return questionColon_Constant_Constant_Constant_value; } private Constant questionColon_compute(Constant cond, Constant c1, Constant c2) { throw new UnsupportedOperationException("ConstantExpression operation questionColon" + " not supported for type " + getClass().getName()); } // Declared in ConstantExpression.jrag at line 524 @SuppressWarnings({"unchecked", "cast"}) public boolean eqIsTrue(Expr left, Expr right) { boolean eqIsTrue_Expr_Expr_value = eqIsTrue_compute(left, right); return eqIsTrue_Expr_Expr_value; } private boolean eqIsTrue_compute(Expr left, Expr right) { System.err.println("Evaluation eqIsTrue for unknown type: " + getClass().getName()); return false; } // Declared in ConstantExpression.jrag at line 535 @SuppressWarnings({"unchecked", "cast"}) public boolean ltIsTrue(Expr left, Expr right) { boolean ltIsTrue_Expr_Expr_value = ltIsTrue_compute(left, right); return ltIsTrue_Expr_Expr_value; } private boolean ltIsTrue_compute(Expr left, Expr right) { return false; } // Declared in ConstantExpression.jrag at line 541 @SuppressWarnings({"unchecked", "cast"}) public boolean leIsTrue(Expr left, Expr right) { boolean leIsTrue_Expr_Expr_value = leIsTrue_compute(left, right); return leIsTrue_Expr_Expr_value; } private boolean leIsTrue_compute(Expr left, Expr right) { return false; } // Declared in DataStructures.jrag at line 116 @SuppressWarnings({"unchecked", "cast"}) public int size() { int size_value = size_compute(); return size_value; } private int size_compute() { return 1; } // Declared in DataStructures.jrag at line 117 @SuppressWarnings({"unchecked", "cast"}) public boolean isEmpty() { boolean isEmpty_value = isEmpty_compute(); return isEmpty_value; } private boolean isEmpty_compute() { return false; } // Declared in DataStructures.jrag at line 121 @SuppressWarnings({"unchecked", "cast"}) public boolean contains(Object o) { boolean contains_Object_value = contains_compute(o); return contains_Object_value; } private boolean contains_compute(Object o) { return this == o; } protected boolean isException_computed = false; protected boolean isException_value; // Declared in ExceptionHandling.jrag at line 24 @SuppressWarnings({"unchecked", "cast"}) public boolean isException() { if(isException_computed) return isException_value; int num = boundariesCrossed; boolean isFinal = this.is$Final(); isException_value = isException_compute(); if(isFinal && num == boundariesCrossed) isException_computed = true; return isException_value; } private boolean isException_compute() { return instanceOf(typeException()); } protected boolean isCheckedException_computed = false; protected boolean isCheckedException_value; // Declared in ExceptionHandling.jrag at line 25 @SuppressWarnings({"unchecked", "cast"}) public boolean isCheckedException() { if(isCheckedException_computed) return isCheckedException_value; int num = boundariesCrossed; boolean isFinal = this.is$Final(); isCheckedException_value = isCheckedException_compute(); if(isFinal && num == boundariesCrossed) isCheckedException_computed = true; return isCheckedException_value; } private boolean isCheckedException_compute() { return isException() && (instanceOf(typeRuntimeException()) || instanceOf(typeError())); } protected boolean isUncheckedException_computed = false; protected boolean isUncheckedException_value; // Declared in ExceptionHandling.jrag at line 27 @SuppressWarnings({"unchecked", "cast"}) public boolean isUncheckedException() { if(isUncheckedException_computed) return isUncheckedException_value; int num = boundariesCrossed; boolean isFinal = this.is$Final(); isUncheckedException_value = isUncheckedException_compute(); if(isFinal && num == boundariesCrossed) isUncheckedException_computed = true; return isUncheckedException_value; } private boolean isUncheckedException_compute() { return isException() && !isCheckedException(); } protected java.util.Map mayCatch_TypeDecl_values; // Declared in ExceptionHandling.jrag at line 222 @SuppressWarnings({"unchecked", "cast"}) public boolean mayCatch(TypeDecl thrownType) { Object _parameters = thrownType;if(mayCatch_TypeDecl_values == null) mayCatch_TypeDecl_values = new java.util.HashMap(4); if(mayCatch_TypeDecl_values.containsKey(_parameters)) return ((Boolean)mayCatch_TypeDecl_values.get(_parameters)).booleanValue(); int num = boundariesCrossed; boolean isFinal = this.is$Final(); boolean mayCatch_TypeDecl_value = mayCatch_compute(thrownType); if(isFinal && num == boundariesCrossed) mayCatch_TypeDecl_values.put(_parameters, Boolean.valueOf(mayCatch_TypeDecl_value)); return mayCatch_TypeDecl_value; } private boolean mayCatch_compute(TypeDecl thrownType) { return thrownType.instanceOf(this) || this.instanceOf(thrownType); } // Declared in LookupConstructor.jrag at line 21 @SuppressWarnings({"unchecked", "cast"}) public Collection lookupSuperConstructor() { Collection lookupSuperConstructor_value = lookupSuperConstructor_compute(); return lookupSuperConstructor_value; } private Collection lookupSuperConstructor_compute() { return Collections.EMPTY_LIST; } protected boolean constructors_computed = false; protected Collection constructors_value; // Declared in LookupConstructor.jrag at line 99 @SuppressWarnings({"unchecked", "cast"}) public Collection constructors() { if(constructors_computed) return constructors_value; int num = boundariesCrossed; boolean isFinal = this.is$Final(); constructors_value = constructors_compute(); if(isFinal && num == boundariesCrossed) constructors_computed = true; return constructors_value; } private Collection constructors_compute() { Collection c = new ArrayList(); for(int i = 0; i < getNumBodyDecl(); i++) { if(getBodyDecl(i) instanceof ConstructorDecl) { c.add(getBodyDecl(i)); } } if(c.isEmpty() && isClassDecl()) { Modifiers m = new Modifiers(); if(isPublic()) m.addModifier(new Modifier("public")); else if(isProtected()) m.addModifier(new Modifier("protected")); else if(isPrivate()) m.addModifier(new Modifier("private")); addBodyDecl( new ConstructorDecl( m, name(), new List(), new List(), new Opt(), new Block() ) ); c.add(getBodyDecl(getNumBodyDecl()-1)); } return c; } protected java.util.Map unqualifiedLookupMethod_String_values; // Declared in LookupMethod.jrag at line 36 @SuppressWarnings({"unchecked", "cast"}) public Collection unqualifiedLookupMethod(String name) { Object _parameters = name;if(unqualifiedLookupMethod_String_values == null) unqualifiedLookupMethod_String_values = new java.util.HashMap(4); if(unqualifiedLookupMethod_String_values.containsKey(_parameters)) return (Collection)unqualifiedLookupMethod_String_values.get(_parameters); int num = boundariesCrossed; boolean isFinal = this.is$Final(); Collection unqualifiedLookupMethod_String_value = unqualifiedLookupMethod_compute(name); if(isFinal && num == boundariesCrossed) unqualifiedLookupMethod_String_values.put(_parameters, unqualifiedLookupMethod_String_value); return unqualifiedLookupMethod_String_value; } private Collection unqualifiedLookupMethod_compute(String name) { Collection c = memberMethods(name); if(!c.isEmpty()) return c; if(isInnerType()) return lookupMethod(name); return removeInstanceMethods(lookupMethod(name)); } // Declared in LookupMethod.jrag at line 193 @SuppressWarnings({"unchecked", "cast"}) public Collection memberMethods(String name) { Collection memberMethods_String_value = memberMethods_compute(name); return memberMethods_String_value; } private Collection memberMethods_compute(String name) { Collection c = (Collection)methodsNameMap().get(name); if(c != null) return c; return Collections.EMPTY_LIST; } protected boolean methodsNameMap_computed = false; protected HashMap methodsNameMap_value; // Declared in LookupMethod.jrag at line 199 @SuppressWarnings({"unchecked", "cast"}) public HashMap methodsNameMap() { if(methodsNameMap_computed) return methodsNameMap_value; int num = boundariesCrossed; boolean isFinal = this.is$Final(); methodsNameMap_value = methodsNameMap_compute(); if(isFinal && num == boundariesCrossed) m
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -