⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 longtype.java

📁 JDK1.4编译器前端
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
        bitNot_Constant_visited.put(_parameters, new Integer(boundariesCrossed));        Constant bitNot_Constant_value = bitNot_compute(c);        bitNot_Constant_visited.remove(_parameters);        return bitNot_Constant_value;    }    private Constant bitNot_compute(Constant c) {  return Constant.create(~c.longValue());  }    protected java.util.Map mul_Constant_Constant_visited;    // Declared in ConstantExpression.jrag at line 334 @SuppressWarnings({"unchecked", "cast"})     public Constant mul(Constant c1, Constant c2) {        java.util.List _parameters = new java.util.ArrayList(2);        _parameters.add(c1);        _parameters.add(c2);if(mul_Constant_Constant_visited == null) mul_Constant_Constant_visited = new java.util.HashMap(4);        if(new Integer(boundariesCrossed).equals(mul_Constant_Constant_visited.get(_parameters)))            throw new RuntimeException("Circular definition of attr: mul in class: ");        mul_Constant_Constant_visited.put(_parameters, new Integer(boundariesCrossed));        Constant mul_Constant_Constant_value = mul_compute(c1, c2);        mul_Constant_Constant_visited.remove(_parameters);        return mul_Constant_Constant_value;    }    private Constant mul_compute(Constant c1, Constant c2) {  return Constant.create(c1.longValue() * c2.longValue());  }    protected java.util.Map div_Constant_Constant_visited;    // Declared in ConstantExpression.jrag at line 343 @SuppressWarnings({"unchecked", "cast"})     public Constant div(Constant c1, Constant c2) {        java.util.List _parameters = new java.util.ArrayList(2);        _parameters.add(c1);        _parameters.add(c2);if(div_Constant_Constant_visited == null) div_Constant_Constant_visited = new java.util.HashMap(4);        if(new Integer(boundariesCrossed).equals(div_Constant_Constant_visited.get(_parameters)))            throw new RuntimeException("Circular definition of attr: div in class: ");        div_Constant_Constant_visited.put(_parameters, new Integer(boundariesCrossed));        Constant div_Constant_Constant_value = div_compute(c1, c2);        div_Constant_Constant_visited.remove(_parameters);        return div_Constant_Constant_value;    }    private Constant div_compute(Constant c1, Constant c2) {  return Constant.create(c1.longValue() / c2.longValue());  }    protected java.util.Map mod_Constant_Constant_visited;    // Declared in ConstantExpression.jrag at line 352 @SuppressWarnings({"unchecked", "cast"})     public Constant mod(Constant c1, Constant c2) {        java.util.List _parameters = new java.util.ArrayList(2);        _parameters.add(c1);        _parameters.add(c2);if(mod_Constant_Constant_visited == null) mod_Constant_Constant_visited = new java.util.HashMap(4);        if(new Integer(boundariesCrossed).equals(mod_Constant_Constant_visited.get(_parameters)))            throw new RuntimeException("Circular definition of attr: mod in class: ");        mod_Constant_Constant_visited.put(_parameters, new Integer(boundariesCrossed));        Constant mod_Constant_Constant_value = mod_compute(c1, c2);        mod_Constant_Constant_visited.remove(_parameters);        return mod_Constant_Constant_value;    }    private Constant mod_compute(Constant c1, Constant c2) {  return Constant.create(c1.longValue() % c2.longValue());  }    protected java.util.Map add_Constant_Constant_visited;    // Declared in ConstantExpression.jrag at line 361 @SuppressWarnings({"unchecked", "cast"})     public Constant add(Constant c1, Constant c2) {        java.util.List _parameters = new java.util.ArrayList(2);        _parameters.add(c1);        _parameters.add(c2);if(add_Constant_Constant_visited == null) add_Constant_Constant_visited = new java.util.HashMap(4);        if(new Integer(boundariesCrossed).equals(add_Constant_Constant_visited.get(_parameters)))            throw new RuntimeException("Circular definition of attr: add in class: ");        add_Constant_Constant_visited.put(_parameters, new Integer(boundariesCrossed));        Constant add_Constant_Constant_value = add_compute(c1, c2);        add_Constant_Constant_visited.remove(_parameters);        return add_Constant_Constant_value;    }    private Constant add_compute(Constant c1, Constant c2) {  return Constant.create(c1.longValue() + c2.longValue());  }    protected java.util.Map sub_Constant_Constant_visited;    // Declared in ConstantExpression.jrag at line 371 @SuppressWarnings({"unchecked", "cast"})     public Constant sub(Constant c1, Constant c2) {        java.util.List _parameters = new java.util.ArrayList(2);        _parameters.add(c1);        _parameters.add(c2);if(sub_Constant_Constant_visited == null) sub_Constant_Constant_visited = new java.util.HashMap(4);        if(new Integer(boundariesCrossed).equals(sub_Constant_Constant_visited.get(_parameters)))            throw new RuntimeException("Circular definition of attr: sub in class: ");        sub_Constant_Constant_visited.put(_parameters, new Integer(boundariesCrossed));        Constant sub_Constant_Constant_value = sub_compute(c1, c2);        sub_Constant_Constant_visited.remove(_parameters);        return sub_Constant_Constant_value;    }    private Constant sub_compute(Constant c1, Constant c2) {  return Constant.create(c1.longValue() - c2.longValue());  }    protected java.util.Map lshift_Constant_Constant_visited;    // Declared in ConstantExpression.jrag at line 380 @SuppressWarnings({"unchecked", "cast"})     public Constant lshift(Constant c1, Constant c2) {        java.util.List _parameters = new java.util.ArrayList(2);        _parameters.add(c1);        _parameters.add(c2);if(lshift_Constant_Constant_visited == null) lshift_Constant_Constant_visited = new java.util.HashMap(4);        if(new Integer(boundariesCrossed).equals(lshift_Constant_Constant_visited.get(_parameters)))            throw new RuntimeException("Circular definition of attr: lshift in class: ");        lshift_Constant_Constant_visited.put(_parameters, new Integer(boundariesCrossed));        Constant lshift_Constant_Constant_value = lshift_compute(c1, c2);        lshift_Constant_Constant_visited.remove(_parameters);        return lshift_Constant_Constant_value;    }    private Constant lshift_compute(Constant c1, Constant c2) {  return Constant.create(c1.longValue() << c2.longValue());  }    protected java.util.Map rshift_Constant_Constant_visited;    // Declared in ConstantExpression.jrag at line 387 @SuppressWarnings({"unchecked", "cast"})     public Constant rshift(Constant c1, Constant c2) {        java.util.List _parameters = new java.util.ArrayList(2);        _parameters.add(c1);        _parameters.add(c2);if(rshift_Constant_Constant_visited == null) rshift_Constant_Constant_visited = new java.util.HashMap(4);        if(new Integer(boundariesCrossed).equals(rshift_Constant_Constant_visited.get(_parameters)))            throw new RuntimeException("Circular definition of attr: rshift in class: ");        rshift_Constant_Constant_visited.put(_parameters, new Integer(boundariesCrossed));        Constant rshift_Constant_Constant_value = rshift_compute(c1, c2);        rshift_Constant_Constant_visited.remove(_parameters);        return rshift_Constant_Constant_value;    }    private Constant rshift_compute(Constant c1, Constant c2) {  return Constant.create(c1.longValue() >> c2.longValue());  }    protected java.util.Map urshift_Constant_Constant_visited;    // Declared in ConstantExpression.jrag at line 394 @SuppressWarnings({"unchecked", "cast"})     public Constant urshift(Constant c1, Constant c2) {        java.util.List _parameters = new java.util.ArrayList(2);        _parameters.add(c1);        _parameters.add(c2);if(urshift_Constant_Constant_visited == null) urshift_Constant_Constant_visited = new java.util.HashMap(4);        if(new Integer(boundariesCrossed).equals(urshift_Constant_Constant_visited.get(_parameters)))            throw new RuntimeException("Circular definition of attr: urshift in class: ");        urshift_Constant_Constant_visited.put(_parameters, new Integer(boundariesCrossed));        Constant urshift_Constant_Constant_value = urshift_compute(c1, c2);        urshift_Constant_Constant_visited.remove(_parameters);        return urshift_Constant_Constant_value;    }    private Constant urshift_compute(Constant c1, Constant c2) {  return Constant.create(c1.longValue() >>> c2.longValue());  }    protected java.util.Map andBitwise_Constant_Constant_visited;    // Declared in ConstantExpression.jrag at line 401 @SuppressWarnings({"unchecked", "cast"})     public Constant andBitwise(Constant c1, Constant c2) {        java.util.List _parameters = new java.util.ArrayList(2);        _parameters.add(c1);        _parameters.add(c2);if(andBitwise_Constant_Constant_visited == null) andBitwise_Constant_Constant_visited = new java.util.HashMap(4);        if(new Integer(boundariesCrossed).equals(andBitwise_Constant_Constant_visited.get(_parameters)))            throw new RuntimeException("Circular definition of attr: andBitwise in class: ");        andBitwise_Constant_Constant_visited.put(_parameters, new Integer(boundariesCrossed));        Constant andBitwise_Constant_Constant_value = andBitwise_compute(c1, c2);        andBitwise_Constant_Constant_visited.remove(_parameters);        return andBitwise_Constant_Constant_value;    }    private Constant andBitwise_compute(Constant c1, Constant c2) {  return Constant.create(c1.longValue() & c2.longValue());  }    protected java.util.Map xorBitwise_Constant_Constant_visited;    // Declared in ConstantExpression.jrag at line 409 @SuppressWarnings({"unchecked", "cast"})     public Constant xorBitwise(Constant c1, Constant c2) {        java.util.List _parameters = new java.util.ArrayList(2);        _parameters.add(c1);        _parameters.add(c2);if(xorBitwise_Constant_Constant_visited == null) xorBitwise_Constant_Constant_visited = new java.util.HashMap(4);        if(new Integer(boundariesCrossed).equals(xorBitwise_Constant_Constant_visited.get(_parameters)))            throw new RuntimeException("Circular definition of attr: xorBitwise in class: ");        xorBitwise_Constant_Constant_visited.put(_parameters, new Integer(boundariesCrossed));        Constant xorBitwise_Constant_Constant_value = xorBitwise_compute(c1, c2);        xorBitwise_Constant_Constant_visited.remove(_parameters);        return xorBitwise_Constant_Constant_value;    }    private Constant xorBitwise_compute(Constant c1, Constant c2) {  return Constant.create(c1.longValue() ^ c2.longValue());  }    protected java.util.Map orBitwise_Constant_Constant_visited;    // Declared in ConstantExpression.jrag at line 417 @SuppressWarnings({"unchecked", "cast"})     public Constant orBitwise(Constant c1, Constant c2) {        java.util.List _parameters = new java.util.ArrayList(2);        _parameters.add(c1);        _parameters.add(c2);if(orBitwise_Constant_Constant_visited == null) orBitwise_Constant_Constant_visited = new java.util.HashMap(4);        if(new Integer(boundariesCrossed).equals(orBitwise_Constant_Constant_visited.get(_parameters)))            throw new RuntimeException("Circular definition of attr: orBitwise in class: ");        orBitwise_Constant_Constant_visited.put(_parameters, new Integer(boundariesCrossed));        Constant orBitwise_Constant_Constant_value = orBitwise_compute(c1, c2);        orBitwise_Constant_Constant_visited.remove(_parameters);        return orBitwise_Constant_Constant_value;    }    private Constant orBitwise_compute(Constant c1, Constant c2) {  return Constant.create(c1.longValue() | c2.longValue());  }    protected java.util.Map questionColon_Constant_Constant_Constant_visited;    // Declared in ConstantExpression.jrag at line 425 @SuppressWarnings({"unchecked", "cast"})     public Constant questionColon(Constant cond, Constant c1, Constant c2) {        java.util.List _parameters = new java.util.ArrayList(3);        _parameters.add(cond);        _parameters.add(c1);        _parameters.add(c2);if(questionColon_Constant_Constant_Constant_visited == null) questionColon_Constant_Constant_Constant_visited = new java.util.HashMap(4);        if(new Integer(boundariesCrossed).equals(questionColon_Constant_Constant_Constant_visited.get(_parameters)))            throw new RuntimeException("Circular definition of attr: questionColon in class: ");        questionColon_Constant_Constant_Constant_visited.put(_parameters, new Integer(boundariesCrossed));        Constant questionColon_Constant_Constant_Constant_value = questionColon_compute(cond, c1, c2);        questionColon_Constant_Constant_Constant_visited.remove(_parameters);        return questionColon_Constant_Constant_Constant_value;    }    private Constant questionColon_compute(Constant cond, Constant c1, Constant c2) {  return Constant.create(cond.booleanValue() ? c1.longValue() : c2.longValue());  }    protected java.util.Map eqIsTrue_Expr_Expr_visited;    // Declared in ConstantExpression.jrag at line 529 @SuppressWarnings({"unchecked", "cast"})     public boolean eqIsTrue(Expr left, Expr right) {        java.util.List _parameters = new java.util.ArrayList(2);        _parameters.add(left);        _parameters.add(right);if(eqIsTrue_Expr_Expr_visited == null) eqIsTrue_Expr_Expr_visited = new java.util.HashMap(4);        if(new Integer(boundariesCrossed).equals(eqIsTrue_Expr_Expr_visited.get(_parameters)))            throw new RuntimeException("Circular definition of attr: eqIsTrue in class: ");        eqIsTrue_Expr_Expr_visited.put(_parameters, new Integer(boundariesCrossed));        boolean eqIsTrue_Expr_Expr_value = eqIsTrue_compute(left, right);        eqIsTrue_Expr_Expr_visited.remove(_parameters);        return eqIsTrue_Expr_Expr_value;    }    private boolean eqIsTrue_compute(Expr left, Expr right) {  return left.constant().longValue() == right.constant().longValue();  }    protected java.util.Map ltIsTrue_Expr_Expr_visited;    // Declared in ConstantExpression.jrag at line 537 @SuppressWarnings({"unchecked", "cast"})     public boolean ltIsTrue(Expr left, Expr right) {        java.util.List _parameters = new java.util.ArrayList(2);        _parameters.add(left);        _parameters.add(right);if(ltIsTrue_Expr_Expr_visited == null) ltIsTrue_Expr_Expr_visited = new java.util.HashMap(4);        if(new Integer(boundariesCrossed).equals(ltIsTrue_Expr_Expr_visited.get(_parameters)))            throw new RuntimeException("Circular definition of attr: ltIsTrue in class: ");        ltIsTrue_Expr_Expr_visited.put(_parameters, new Integer(boundariesCrossed));        boolean ltIsTrue_Expr_Expr_value = ltIsTrue_compute(left, right);        ltIsTrue_Expr_Expr_visited.remove(_parameters);        return ltIsTrue_Expr_Expr_value;    }    private boolean ltIsTrue_compute(Expr left, Expr right) {  return left.constant().longValue() < right.constant().longValue();  }    protected java.util.Map leIsTrue_Expr_Expr_visited;    // Declared in ConstantExpression.jrag at line 543 @SuppressWarnings({"unchecked", "cast"})     public boolean leIsTrue(Expr left, Expr right) {        java.util.List _parameters = new java.util.ArrayList(2);        _parameters.add(left);        _parameters.add(right);if(leIsTrue_Expr_Expr_visited == null) leIsTrue_Expr_Expr_visited = new java.util.HashMap(4);        if(new Integer(boundariesCrossed).equals(leIsTrue_Expr_Expr_visited.get(_parameters)))            throw new RuntimeException("Circular definition of attr: leIsTrue in class: ");        leIsTrue_Expr_Expr_visited.put(_parameters, new Integer(boundariesCrossed));        boolean leIsTrue_Expr_Expr_value = leIsTrue_compute(left, right);        leIsTrue_Expr_Expr_visited.remove(_parameters);        return leIsTrue_Expr_Expr_value;    }    private boolean leIsTrue_compute(Expr left, Expr right) {  return left.constant().longValue() <= right.constant().longValue();  }    protected int assignableToInt_visited = -1;    // Declared in NameCheck.jrag at line 424 @SuppressWarnings({"unchecked", "cast"})     public boolean assignableToInt() {        if(assignableToInt_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: assignableToInt in class: ");        assignableToInt_visited = boundariesCrossed;        boolean assignableToInt_value = assignableToInt_compute();        assignableToInt_visited = -1;        return assignableToInt_value;    }    private boolean assignableToInt_compute() {  return false;  }    protected int isLong_visited = -1;    // Declared in TypeAnalysis.jrag at line 199 @SuppressWarnings({"unchecked", "cast"})     public boolean isLong() {        if(isLong_visited == boundariesCrossed)            throw new RuntimeException("Circular definition of attr: isLong in class: ");        isLong_visited = boundariesCrossed;        boolean isLong_value = isLong_compute();        isLong_visited = -1;        return isLong_value;    }    private boolean isLong_compute() {  return true;  }public ASTNode rewriteTo() {    return super.rewriteTo();}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -