Package javassist.compiler.ast

Examples of javassist.compiler.ast.DoubleConst


/*  461 */     if ((value instanceof String))
/*  462 */       return new StringL((String)value);
/*  463 */     if (((value instanceof Double)) || ((value instanceof Float))) {
/*  464 */       int token = (value instanceof Double) ? 405 : 404;
/*      */
/*  466 */       return new DoubleConst(((Number)value).doubleValue(), token);
/*      */     }
/*  468 */     if ((value instanceof Number)) {
/*  469 */       int token = (value instanceof Long) ? 403 : 402;
/*  470 */       return new IntConst(((Number)value).longValue(), token);
/*      */     }
View Full Code Here


/*  607 */         return false;
/*      */       }
/*  609 */       c.set(v);
/*      */     }
/*  611 */     else if ((oprand instanceof DoubleConst)) {
/*  612 */       DoubleConst c = (DoubleConst)oprand;
/*  613 */       if (op == 45)
/*  614 */         c.set(-c.get());
/*      */       else
/*  616 */         return false;
/*      */     }
/*      */     else {
/*  619 */       return false;
View Full Code Here

/*  872 */           this.lex.get();
/*  873 */           return new IntConst(-this.lex.getLong(), t2);
/*      */         case 404:
/*      */         case 405:
/*  876 */           this.lex.get();
/*  877 */           return new DoubleConst(-this.lex.getDouble(), t2);
/*      */         }
/*      */
/*      */       }
/*      */
/*  883 */       return Expr.make(t, parseUnaryExpr(tbl));
View Full Code Here

/* 1017 */       this.lex.get();
/* 1018 */       return new IntConst(this.lex.getLong(), token);
/*      */     case 404:
/*      */     case 405:
/* 1021 */       this.lex.get();
/* 1022 */       return new DoubleConst(this.lex.getDouble(), token);
/*      */     }
/*      */
/* 1029 */     ASTree expr = parsePrimaryExpr(tbl);
/*      */     while (true)
/*      */     {
View Full Code Here

TOP

Related Classes of javassist.compiler.ast.DoubleConst

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.