Package railo.transformer.bytecode.literal

Examples of railo.transformer.bytecode.literal.LitInteger


     */
    public static ExprInt toExprInt(Expression expr)  {
      if(expr instanceof ExprInt) return (ExprInt) expr;
        if(expr instanceof Literal) {
            Double dbl = ((Literal)expr).getDouble(null);
            if(dbl!=null) return new LitInteger((int)dbl.doubleValue(),expr.getStart(),expr.getEnd());
        }
        return new CastInt(expr);
    }
View Full Code Here

TOP

Related Classes of railo.transformer.bytecode.literal.LitInteger

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.