home *** CD-ROM | disk | FTP | other *** search
- package sun.tools.tree;
-
- import sun.tools.java.Environment;
- import sun.tools.java.Type;
-
- public class PositiveExpression extends UnaryExpression {
- public PositiveExpression(int var1, Expression var2) {
- super(35, var1, var2.type, var2);
- }
-
- void selectType(Environment var1, Context var2, int var3) {
- if ((var3 & 128) != 0) {
- super.type = Type.tDouble;
- } else if ((var3 & 64) != 0) {
- super.type = Type.tFloat;
- } else if ((var3 & 32) != 0) {
- super.type = Type.tLong;
- } else {
- super.type = Type.tInt;
- }
-
- super.right = ((Node)this).convert(var1, var2, super.type, super.right);
- }
-
- Expression simplify() {
- return super.right;
- }
- }
-