Package net.sourceforge.processdash.data.compiler

Examples of net.sourceforge.processdash.data.compiler.ListStack.pop()


      throws ExecutionException
    {
      ListStack stack = new ListStack();
      ExpressionContext context = new SimpleExpressionContext(prefix);
      script.run(stack, context);
      SimpleData value = (SimpleData) stack.pop();
      if (value != null)
        value = (SimpleData) value.getEditable(false);
      return value;
    }
View Full Code Here


        if (result instanceof CompiledScript) {
            try {
                CompiledScript script = (CompiledScript) result;
                ListStack stack = new ListStack();
                script.run(stack, context);
                result = stack.pop();
            } catch (Exception e) {}
        }

        return result;
    }
View Full Code Here

            try {
                calcNameSet.add(name);
                changeCount = extChanges.getUnhandledChangeCount();
                script.run(stack, context);
                newAlias = (String) stack.peekDescriptor();
                newValue = (SimpleData) stack.pop();
                if (newValue != null && newAlias == null)
                    newValue = (SimpleData) newValue.getEditable(false);
            } catch (ExecutionException e) {
                logger.warning("Error executing " + name + ": " + e);
                newValue = null;
View Full Code Here

        Object item;
        while (i.hasNext()) try {
            lContext.setLocalValue(item = i.next());
            stack.clear();
            script.run(stack, lContext);
            handleItem(result, item, stack.pop());
        } catch (Exception e) {}
        return result;
    }

    protected void handleItem(ListData result, Object local, Object val) {
View Full Code Here

                    if (stack == null)
                        stack = new ListStack();
                    else
                        stack.clear();
                    script.run(stack, context);
                    arg = stack.pop();
                } catch (Exception e) {}
            }

            if (arg instanceof SimpleData
                    && !isBadValue((SimpleData) arg))
View Full Code Here

        try {
            Stack stack = new ListStack();
            if (prefix != null)
                context = new RelativeExpressionContext(context, prefix);
            script.run(stack, context);
            return stack.pop();
        } catch (ExecutionException ee) {
            return null;
        }
    }
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.