Search in sources :

Example 1 with WithAccessor

use of org.mvel2.optimizers.impl.refl.nodes.WithAccessor in project mvel by mvel.

the class ReflectiveAccessorOptimizer method getWithProperty.

private Object getWithProperty(Object ctx) {
    currType = null;
    String root = start == cursor ? null : new String(expr, start, cursor - 1).trim();
    int st = cursor + 1;
    cursor = balancedCaptureWithLineAccounting(expr, cursor, end, '{', pCtx);
    WithAccessor wa = new WithAccessor(pCtx, root, expr, st, cursor++ - st, ingressType);
    addAccessorNode(wa);
    return wa.getValue(ctx, thisRef, variableFactory);
}
Also used : WithAccessor(org.mvel2.optimizers.impl.refl.nodes.WithAccessor)

Aggregations

WithAccessor (org.mvel2.optimizers.impl.refl.nodes.WithAccessor)1