Пример #1
0
        public override Type getType(Bindings bindings, ELContext context)
        {
            ValueExpression expression = bindings.getVariable(index);

            if (expression != null)
            {
                return(expression.getType(context));
            }
            context.PropertyResolved = false;
            Type result = context.ELResolver.getType(context, null, name);

            if (!context.PropertyResolved)
            {
                throw new PropertyNotFoundException(LocalMessages.get("error.identifier.property.notfound", name));
            }
            return(result);
        }