Examples of EvaluationContext


Examples of org.apache.el.lang.EvaluationContext

     *      java.lang.Object[])
     */
    public Object invoke(ELContext context, Object[] params)
            throws PropertyNotFoundException, MethodNotFoundException,
            ELException {
        EvaluationContext ctx = new EvaluationContext(context, this.fnMapper,
                this.varMapper);
        return this.getNode().invoke(ctx, this.paramTypes, params);
    }
View Full Code Here

Examples of org.apache.el.lang.EvaluationContext

     *
     * @see javax.el.ValueExpression#getType(javax.el.ELContext)
     */
    public Class getType(ELContext context) throws PropertyNotFoundException,
            ELException {
        EvaluationContext ctx = new EvaluationContext(context, this.fnMapper,
                this.varMapper);
        return this.getNode().getType(ctx);
    }
View Full Code Here

Examples of org.apache.el.lang.EvaluationContext

     *
     * @see javax.el.ValueExpression#getValue(javax.el.ELContext)
     */
    public Object getValue(ELContext context) throws PropertyNotFoundException,
            ELException {
        EvaluationContext ctx = new EvaluationContext(context, this.fnMapper,
                this.varMapper);
        Object value = this.getNode().getValue(ctx);
        if (this.expectedType != null) {
            return ELSupport.coerceToType(value, this.expectedType);
        }
View Full Code Here

Examples of org.apache.el.lang.EvaluationContext

     *
     * @see javax.el.ValueExpression#isReadOnly(javax.el.ELContext)
     */
    public boolean isReadOnly(ELContext context)
            throws PropertyNotFoundException, ELException {
        EvaluationContext ctx = new EvaluationContext(context, this.fnMapper,
                this.varMapper);
        return this.getNode().isReadOnly(ctx);
    }
View Full Code Here

Examples of org.apache.el.lang.EvaluationContext

     *      java.lang.Object)
     */
    public void setValue(ELContext context, Object value)
            throws PropertyNotFoundException, PropertyNotWritableException,
            ELException {
        EvaluationContext ctx = new EvaluationContext(context, this.fnMapper,
                this.varMapper);
        this.getNode().setValue(ctx, value);
    }
View Full Code Here

Examples of org.apache.hivemind.conditional.EvaluationContext

*/
public class TestEvaluationContext extends HiveMindTestCase
{
    public void testProperty()
    {
        EvaluationContext ec = new EvaluationContextImpl(new DefaultClassResolver());

        System.setProperty("property-set-for-evaluation-context", "true");

        assertEquals(true, ec.isPropertySet("property-set-for-evaluation-context"));
        assertEquals(false, ec.isPropertySet("this-property-does-not-exist"));
    }
View Full Code Here

Examples of org.apache.ode.bpel.explang.EvaluationContext

  public final void run() {
    OSwitch oswitch = (OSwitch)_self.o;
    OSwitch.OCase matchedOCase = null;
    FaultData faultData = null;
   
    EvaluationContext evalCtx = getEvaluationContext();
    for (Iterator i = oswitch.getCases().iterator(); i.hasNext();) {
      OSwitch.OCase ocase = (OSwitch.OCase) i.next();
      try{
        if(getBpelRuntimeContext().getExpLangRuntime().evaluateAsBoolean(ocase.expression, evalCtx)){
          matchedOCase = ocase;
View Full Code Here

Examples of org.apache.struts2.el.lang.EvaluationContext

     *
     * @see javax.el.ValueExpression#getType(javax.el.ELContext)
     */
    public Class getType(ELContext context) throws PropertyNotFoundException,
            ELException {
        EvaluationContext ctx = new EvaluationContext(context, this.fnMapper,
                this.varMapper);
        return this.getNode().getType(ctx);
    }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.eval.EvaluationContext

  /**
   * @see IJavaProject#newEvaluationContext()
   */
  public IEvaluationContext newEvaluationContext() {
    EvaluationContext context = new EvaluationContext();
    context.setLineSeparator(Util.getLineSeparator(null/*no existing source*/, this));
    return new EvaluationContextWrapper(context, this);
  }
View Full Code Here

Examples of org.broadinstitute.gatk.tools.walkers.varianteval.util.EvaluationContext

    private final void checkStratificationCountsAreExpected(final StratificationManager<VariantStratifier, EvaluationContext> manager,
                                                            final List<Integer> expectedCounts) {
        for ( int key = 0; key < manager.size(); key++ ) {
            final String stratStateString = manager.getStratsAndStatesStringForKey(key);
            final EvaluationContext nec = manager.get(key);

            for ( final VariantEvaluator ve : nec.getVariantEvaluators() ) {
                // test for count here
                final CounterEval counterEval = (CounterEval)ve;
                final int expected = expectedCounts.get(key);
                Assert.assertEquals(counterEval.count, expected, "Count seen of " + counterEval.count + " not expected " + expected + " at " + stratStateString);
            }
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.