Examples of Eval


Examples of org.apache.poi.hssf.record.formula.eval.Eval

*
*/
public class Left extends TextFunction {

    public Eval evaluate(Eval[] operands, int srcCellRow, short srcCellCol) {
        Eval retval = ErrorEval.VALUE_INVALID;
        int index = 1;
        switch (operands.length) {
        default:
            break;
        case 2:
            Eval indexEval = operands[1];
            index = evaluateAsInteger(indexEval);
            if (index < 0) {
                break;
            }
        case 1:
View Full Code Here

Examples of org.apache.poi.hssf.record.formula.eval.Eval

        }
        return numval;
    }
   
    protected Eval xlateRefEval(RefEval reval) {
        Eval retval = reval.getInnerValueEval();
       
        if (retval instanceof RefEval) {
            retval = xlateRefEval((RefEval) retval);
        }
        return retval;
View Full Code Here

Examples of org.apache.poi.hssf.record.formula.eval.Eval

* @author Amol S. Deshmukh &lt; amolweb at ya hoo dot com &gt;
*
*/
public class Isnontext extends LogicalFunction {
    public Eval evaluate(Eval[] operands, int srcCellRow, short srcCellCol) {
        Eval retval = BoolEval.TRUE;
       
        switch (operands.length) {
        default:
            retval = ErrorEval.VALUE_INVALID;
            break;
        case 1:
            Eval eval = operands[0];
            if (eval instanceof StringEval) {
                retval = BoolEval.FALSE;
            }
            else if (eval instanceof RefEval) {
                Eval xlatedEval = xlateRefEval((RefEval) eval);
                if (xlatedEval instanceof StringEval) {
                    retval = BoolEval.FALSE;
                }
            }
        }
View Full Code Here

Examples of osgi.logger.provider.LoggerDispatcher.Eval

  public List<Info> list(String glob) throws Exception {
    final List<Info> infos = new ArrayList<>();
    final Pattern p = glob == null ? null : Glob.toPattern(glob);
    ;

    LoggerDispatcher.dispatcher.evaluate(new Eval() {

      @Override
      public void eval(AbstractLogger msf) {
        if (p == null || p.matcher(msf.name).find()) {
          Info info = new Info();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.