Package railo.transformer.bytecode.literal

Examples of railo.transformer.bytecode.literal.LitFloat


     */
    public static ExprFloat toExprFloat(Expression expr)  {
        if(expr instanceof ExprFloat) return (ExprFloat) expr;
        if(expr instanceof Literal) {
            Double dbl = ((Literal)expr).getDouble(null);
            if(dbl!=null) return new LitFloat((float)dbl.doubleValue(),expr.getStart(),expr.getEnd());
        }
        return new CastFloat(expr);
    }
View Full Code Here

TOP

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

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.