Package javassist.compiler.ast

Examples of javassist.compiler.ast.CastExpr


/*  286 */     String cname1 = this.className;
/*  287 */     expr.elseExpr().accept(this);
/*      */
/*  289 */     if ((dim1 == 0) && (dim1 == this.arrayDim))
/*  290 */       if (CodeGen.rightIsStrong(type1, this.exprType)) {
/*  291 */         expr.setThen(new CastExpr(this.exprType, 0, expr.thenExpr()));
/*  292 */       } else if (CodeGen.rightIsStrong(this.exprType, type1)) {
/*  293 */         expr.setElse(new CastExpr(type1, 0, expr.elseExpr()));
/*  294 */         this.exprType = type1;
/*      */       }
/*      */   }
View Full Code Here


/*      */
/*      */   private void insertCast(BinExpr expr, int type1, int type2)
/*      */     throws CompileError
/*      */   {
/*  538 */     if (CodeGen.rightIsStrong(type1, type2))
/*  539 */       expr.setLeft(new CastExpr(type2, 0, expr.oprand1()));
/*      */     else
/*  541 */       this.exprType = type1;
/*      */   }
View Full Code Here

/*  903 */       this.lex.get();
/*  904 */       int dim = parseArrayDimension();
/*  905 */       if (this.lex.get() != 41) {
/*  906 */         throw new CompileError(") is missing", this.lex);
/*      */       }
/*  908 */       return new CastExpr(t, dim, parseUnaryExpr(tbl));
/*      */     }
/*  910 */     if ((t == 400) && (nextIsClassCast())) {
/*  911 */       this.lex.get();
/*  912 */       ASTList name = parseClassType(tbl);
/*  913 */       int dim = parseArrayDimension();
/*  914 */       if (this.lex.get() != 41) {
/*  915 */         throw new CompileError(") is missing", this.lex);
/*      */       }
/*  917 */       return new CastExpr(name, dim, parseUnaryExpr(tbl));
/*      */     }
/*      */
/*  920 */     return parsePostfix(tbl);
/*      */   }
View Full Code Here

TOP

Related Classes of javassist.compiler.ast.CastExpr

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.