예제 #1
0
        protected object evaluateGetValueBody(OgnlContext context, object source)
        {
            object result;

            context.setCurrentObject(source);
            context.setCurrentNode(this);
            if (!constantValueCalculated)
            {
                constantValueCalculated = true;
                hasConstantValue        = isConstant(context);
                if (hasConstantValue)
                {
                    constantValue = getValueBody(context, source);
                }
            }
            return(hasConstantValue ? constantValue : getValueBody(context, source));
        }
예제 #2
0
 protected void evaluateSetValueBody(OgnlContext context, object target, object value)
 {
     context.setCurrentObject(target);
     context.setCurrentNode(this);
     setValueBody(context, target, value);
 }