Examples of ExpressionContext


Examples of com.volantis.xml.expression.ExpressionContext

     */
    private ExpressionContext createExpressionContext() {
        EnvironmentInteractionTracker eit =
                new SimpleEnvironmentInteractionTracker();
        NamespacePrefixTracker npt = new DefaultNamespacePrefixTracker();
        ExpressionContext context = ExpressionFactory.getDefaultInstance().
                createExpressionContext(eit, npt);
        return context;
    }
View Full Code Here

Examples of com.volantis.xml.expression.ExpressionContext

                pipelineFactory.createPipelineContext(
                        createPipelineConfiguration(),
                        createRootEnvironmentInteraction());

        // extract the expression context
        ExpressionContext expresisonContext
                = pipelineContext.getExpressionContext();

        // allow subclasses to register functions that are specific to
        // their tests
        registerExpressionFunctions(expresisonContext);
View Full Code Here

Examples of com.volantis.xml.expression.ExpressionContext

        // get hold of an ExpressionFactory
        ExpressionFactory expressionFactory =
                pipelineFactory.getExpressionFactory();
       
        // create an expression context
        ExpressionContext expressionContext =
                expressionFactory .createExpressionContext(null, null);       
       
        // return a context
        return factory.createPipelineContext(config, expressionContext);
    }
View Full Code Here

Examples of com.volantis.xml.expression.ExpressionContext

    public void testSecondCreatePipelineContext() throws Exception {
        // create a config
        XMLPipelineConfiguration config =
                factory.createPipelineConfiguration();
       
        ExpressionContext expressionContext =
                factory.getExpressionFactory().createExpressionContext(
                        null, null);       
       
        // factor a context
        XMLPipelineContext context =
View Full Code Here

Examples of com.volantis.xml.expression.ExpressionContext

    // javadoc inherited
    public void startProcess() throws SAXException {

        // declare the variabe in the current ExpressionContext.
        ExpressionContext expressionContext
                = getPipelineContext().getExpressionContext();

        // The given name could be a prefixed name, so go through these hoops
        // to ensure that we register the variable against the correct
        // namespace (the namespace for no prefix is "no namespace" according
        // to http://www.w3.org/TR/xpath20/#id-variables - this is modelled
        // using the "default namespace" for variables)
        expressionContext.getCurrentScope().declareVariable(
            expressionContext.getNamespacePrefixTracker().
            resolveQName(new ImmutableQName(variableName), ""),
            expressionContext.getFactory().
            createStringValue(variableValue));
    }
View Full Code Here

Examples of com.volantis.xml.expression.ExpressionContext

    }

    // javadoc inherited
    public void startProcess() throws SAXException {
        // declare a variable scope
        ExpressionContext context =
                getPipelineContext().getExpressionContext();
        context.pushStackFrame();
    }
View Full Code Here

Examples of com.volantis.xml.expression.ExpressionContext

    }

    // javadoc inherited
    public void stopProcess() throws SAXException {
        // undeclare a variable scope
        ExpressionContext context =
                getPipelineContext().getExpressionContext();
        context.popStackFrame();
    }
View Full Code Here

Examples of jetbrick.template.parser.grammer.JetTemplateParser.ExpressionContext

    @Override
    public Code visitBreak_directive(Break_directiveContext ctx) {
        assert_inside_of_for_directive(ctx, "#break");

        ExpressionContext expression = ctx.expression();
        String source;
        if (expression != null) {
            SegmentCode c = (SegmentCode) expression.accept(this);
            source = get_if_expression_source(c);
        } else {
            source = "true";
        }
        source = "if (" + source + ") break; // line: " + ctx.getStart().getLine();
View Full Code Here

Examples of net.sourceforge.processdash.data.compiler.ExpressionContext

    public SimpleData evaluate(CompiledScript script, String prefix)
      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

Examples of org.apache.cocoon.components.expression.ExpressionContext

            ParameterInstance parameter = (ParameterInstance) parameters
                    .get(parameterName);
            Object parameterValue = parameter.getValue(expressionContext);
            attributeMap.put(parameterName, parameterValue);
        }
        ExpressionContext localExpressionContext = new ExpressionContext(
                expressionContext);
        HashMap macro = new HashMap();
        macro.put("body", this.body);
        macro.put("arguments", attributeMap);
        localExpressionContext.put("macro", macro);

        Define definition = resolveMacroDefinition(expressionContext,
                executionContext);
        Iterator iter = definition.getParameters().entrySet().iterator();
        while (iter.hasNext()) {
            Map.Entry e = (Map.Entry) iter.next();
            String key = (String) e.getKey();
            Parameter startParam = (Parameter) e.getValue();
            Object default_ = startParam.getDefaultValue();
            Object val = attributeMap.get(key);
            if (val == null) {
                val = default_;
            }
            localExpressionContext.put(key, val);
        }

        Event macroBodyStart = getNext();
        Event macroBodyEnd = 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.