Package javassist.compiler.ast

Examples of javassist.compiler.ast.StringL


/*      */   {
/*  395 */     left = stripPlusExpr(left);
/*  396 */     right = stripPlusExpr(right);
/*  397 */     ASTree newExpr = null;
/*  398 */     if (((left instanceof StringL)) && ((right instanceof StringL)) && (op == 43)) {
/*  399 */       newExpr = new StringL(((StringL)left).get() + ((StringL)right).get());
/*      */     }
/*  401 */     else if ((left instanceof IntConst))
/*  402 */       newExpr = ((IntConst)left).compute(op, right);
/*  403 */     else if ((left instanceof DoubleConst)) {
/*  404 */       newExpr = ((DoubleConst)left).compute(op, right);
View Full Code Here


/*  457 */     Object value = f.getConstantValue();
/*  458 */     if (value == null) {
/*  459 */       return null;
/*      */     }
/*  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);
/*      */     }
View Full Code Here

/* 1234 */       if (decl == null) {
/* 1235 */         return new Member(name);
/*      */       }
/* 1237 */       return new Variable(name, decl);
/*      */     case 406:
/* 1239 */       return new StringL(this.lex.getString());
/*      */     case 328:
/* 1241 */       return parseNew(tbl);
/*      */     case 40:
/* 1243 */       ASTree expr = parseExpression(tbl);
/* 1244 */       if (this.lex.get() == 41) {
View Full Code Here

TOP

Related Classes of javassist.compiler.ast.StringL

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.