All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nutz.el.opt.bit.LeftShift Maven / Gradle / Ivy

package org.nutz.el.opt.bit;

import org.nutz.el.opt.TwoTernary;
/**
 * 左移
 * @author juqkai([email protected])
 *
 */
public class LeftShift extends TwoTernary{
    public int fetchPriority() {
        return 5;
    }
    public Object calculate() {
        Integer lval = (Integer) calculateItem(left);
        Integer rval = (Integer) calculateItem(right);
        return lval << rval;
    }
    public String fetchSelf() {
        return "<<";
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy