当前位置: 首页>>代码示例>>Java>>正文


Java ELContext.isPropertyResolved方法代码示例

本文整理汇总了Java中javax.el.ELContext.isPropertyResolved方法的典型用法代码示例。如果您正苦于以下问题:Java ELContext.isPropertyResolved方法的具体用法?Java ELContext.isPropertyResolved怎么用?Java ELContext.isPropertyResolved使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在javax.el.ELContext的用法示例。


在下文中一共展示了ELContext.isPropertyResolved方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getValue

import javax.el.ELContext; //导入方法依赖的package包/类
@Override
public Object getValue(ELContext context, Object base, Object property)
        throws NullPointerException, PropertyNotFoundException, ELException {
    if (context == null) {
        throw new NullPointerException();
    }

    if (base == null) {
        context.setPropertyResolved(true);
        if (property != null) {
            try {
                return this.variableResolver.resolveVariable(property
                        .toString());
            } catch (javax.servlet.jsp.el.ELException e) {
                throw new ELException(e.getMessage(), e.getCause());
            }
        }
    }

    if (!context.isPropertyResolved()) {
        return elResolver.getValue(context, base, property);
    }
    return null;
}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:25,代码来源:ELResolverImpl.java

示例2: getType

import javax.el.ELContext; //导入方法依赖的package包/类
@Override
public Class<?> getType(ELContext context, Object base, Object property)
        throws NullPointerException, PropertyNotFoundException, ELException {
    if (context == null) {
        throw new NullPointerException();
    }

    if (base == null) {
        context.setPropertyResolved(true);
        if (property != null) {
            try {
                Object obj = this.variableResolver.resolveVariable(property
                        .toString());
                return (obj != null) ? obj.getClass() : null;
            } catch (javax.servlet.jsp.el.ELException e) {
                throw new ELException(e.getMessage(), e.getCause());
            }
        }
    }

    if (!context.isPropertyResolved()) {
        return elResolver.getType(context, base, property);
    }
    return null;
}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:26,代码来源:ELResolverImpl.java

示例3: setValue

import javax.el.ELContext; //导入方法依赖的package包/类
@Override
public void setValue(ELContext context, Object base, Object property,
        Object value) throws NullPointerException,
        PropertyNotFoundException, PropertyNotWritableException,
        ELException {
    if (context == null) {
        throw new NullPointerException();
    }

    if (base == null) {
        context.setPropertyResolved(true);
        throw new PropertyNotWritableException(
                "Legacy VariableResolver wrapped, not writable");
    }

    if (!context.isPropertyResolved()) {
        elResolver.setValue(context, base, property, value);
    }
}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:20,代码来源:ELResolverImpl.java

示例4: getValue

import javax.el.ELContext; //导入方法依赖的package包/类
public Object getValue(ELContext context, Object base, Object property)
        throws NullPointerException, PropertyNotFoundException, ELException {
    if (context == null) {
        throw new NullPointerException();
    }

    if (base == null) {
        context.setPropertyResolved(true);
        if (property != null) {
            try {
                return this.variableResolver.resolveVariable(property
                        .toString());
            } catch (javax.servlet.jsp.el.ELException e) {
                throw new ELException(e.getMessage(), e.getCause());
            }
        }
    }

    if (!context.isPropertyResolved()) {
        return getDefaultResolver().getValue(context, base, property);
    }
    return null;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:24,代码来源:ELResolverImpl.java

示例5: getType

import javax.el.ELContext; //导入方法依赖的package包/类
public Class<?> getType(ELContext context, Object base, Object property)
        throws NullPointerException, PropertyNotFoundException, ELException {
    if (context == null) {
        throw new NullPointerException();
    }

    if (base == null) {
        context.setPropertyResolved(true);
        if (property != null) {
            try {
                Object obj = this.variableResolver.resolveVariable(property
                        .toString());
                return (obj != null) ? obj.getClass() : null;
            } catch (javax.servlet.jsp.el.ELException e) {
                throw new ELException(e.getMessage(), e.getCause());
            }
        }
    }

    if (!context.isPropertyResolved()) {
        return getDefaultResolver().getType(context, base, property);
    }
    return null;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:25,代码来源:ELResolverImpl.java

示例6: setValue

import javax.el.ELContext; //导入方法依赖的package包/类
public void setValue(ELContext context, Object base, Object property,
        Object value) throws NullPointerException,
        PropertyNotFoundException, PropertyNotWritableException,
        ELException {
    if (context == null) {
        throw new NullPointerException();
    }

    if (base == null) {
        context.setPropertyResolved(true);
        throw new PropertyNotWritableException(
                "Legacy VariableResolver wrapped, not writable");
    }

    if (!context.isPropertyResolved()) {
        getDefaultResolver().setValue(context, base, property, value);
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:19,代码来源:ELResolverImpl.java

示例7: getValue

import javax.el.ELContext; //导入方法依赖的package包/类
@Override
public Object getValue(ELContext context, Object base, Object property)
		throws NullPointerException, PropertyNotFoundException, ELException {
	if (context == null) {
		throw new NullPointerException();
	}

	if (base == null) {
		context.setPropertyResolved(true);
		if (property != null) {
			try {
				return this.variableResolver.resolveVariable(property.toString());
			} catch (javax.servlet.jsp.el.ELException e) {
				throw new ELException(e.getMessage(), e.getCause());
			}
		}
	}

	if (!context.isPropertyResolved()) {
		return elResolver.getValue(context, base, property);
	}
	return null;
}
 
开发者ID:how2j,项目名称:lazycat,代码行数:24,代码来源:ELResolverImpl.java

示例8: getType

import javax.el.ELContext; //导入方法依赖的package包/类
@Override
public Class<?> getType(ELContext context, Object base, Object property)
		throws NullPointerException, PropertyNotFoundException, ELException {
	if (context == null) {
		throw new NullPointerException();
	}

	if (base == null) {
		context.setPropertyResolved(true);
		if (property != null) {
			try {
				Object obj = this.variableResolver.resolveVariable(property.toString());
				return (obj != null) ? obj.getClass() : null;
			} catch (javax.servlet.jsp.el.ELException e) {
				throw new ELException(e.getMessage(), e.getCause());
			}
		}
	}

	if (!context.isPropertyResolved()) {
		return elResolver.getType(context, base, property);
	}
	return null;
}
 
开发者ID:how2j,项目名称:lazycat,代码行数:25,代码来源:ELResolverImpl.java

示例9: setValue

import javax.el.ELContext; //导入方法依赖的package包/类
@Override
public void setValue(ELContext context, Object base, Object property, Object value)
		throws NullPointerException, PropertyNotFoundException, PropertyNotWritableException, ELException {
	if (context == null) {
		throw new NullPointerException();
	}

	if (base == null) {
		context.setPropertyResolved(true);
		throw new PropertyNotWritableException("Legacy VariableResolver wrapped, not writable");
	}

	if (!context.isPropertyResolved()) {
		elResolver.setValue(context, base, property, value);
	}
}
 
开发者ID:how2j,项目名称:lazycat,代码行数:17,代码来源:ELResolverImpl.java

示例10: getValue

import javax.el.ELContext; //导入方法依赖的package包/类
@Override
public Object getValue(ELContext context, Object base, Object property)
    throws NullPointerException, PropertyNotFoundException, ELException {
    context.setPropertyResolved(false);

    int start;
    Object result = null;

    if (base == null) {
        // call implicit and app resolvers
        int index = 1 /* implicit */ + appResolversSize;
        for (int i = 0; i < index; i++) {
            result = resolvers[i].getValue(context, base, property);
            if (context.isPropertyResolved()) {
                return result;
            }
        }
        // skip collection-based resolvers (map, resource, list, array, and
        // bean)
        start = index + 5;
    } else {
        // skip implicit resolver only
        start = 1;
    }

    for (int i = start; i < size; i++) {
        result = resolvers[i].getValue(context, base, property);
        if (context.isPropertyResolved()) {
            return result;
        }
    }

    return null;
}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:35,代码来源:JasperELResolver.java

示例11: invoke

import javax.el.ELContext; //导入方法依赖的package包/类
@Override
public Object invoke(ELContext context, Object base, Object method,
        Class<?>[] paramTypes, Object[] params) {
    String targetMethod = coerceToString(method);
    if (targetMethod.length() == 0) {
        throw new ELException(new NoSuchMethodException());
    }

    context.setPropertyResolved(false);

    Object result = null;

    // skip implicit and call app resolvers
    int index = 1 /* implicit */ + appResolversSize;
    for (int i = 1; i < index; i++) {
        result = resolvers[i].invoke(
                context, base, targetMethod, paramTypes, params);
        if (context.isPropertyResolved()) {
            return result;
        }
    }

    // skip map, resource, list, and array resolvers
    index += 4;
    // call bean and the rest of resolvers
    for (int i = index; i < size; i++) {
        result = resolvers[i].invoke(
                context, base, targetMethod, paramTypes, params);
        if (context.isPropertyResolved()) {
            return result;
        }
    }

    return null;
}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:36,代码来源:JasperELResolver.java

示例12: getValue

import javax.el.ELContext; //导入方法依赖的package包/类
@Override
public Object getValue(ELContext context, Object base, Object property)
		throws NullPointerException, PropertyNotFoundException, ELException {
	context.setPropertyResolved(false);

	int start;
	Object result = null;

	if (base == null) {
		// call implicit and app resolvers
		int index = 1 /* implicit */ + appResolversSize;
		for (int i = 0; i < index; i++) {
			result = resolvers[i].getValue(context, base, property);
			if (context.isPropertyResolved()) {
				return result;
			}
		}
		// skip collection-based resolvers (map, resource, list, array, and
		// bean)
		start = index + 5;
	} else {
		// skip implicit resolver only
		start = 1;
	}

	for (int i = start; i < size; i++) {
		result = resolvers[i].getValue(context, base, property);
		if (context.isPropertyResolved()) {
			return result;
		}
	}

	return null;
}
 
开发者ID:how2j,项目名称:lazycat,代码行数:35,代码来源:JasperELResolver.java

示例13: invoke

import javax.el.ELContext; //导入方法依赖的package包/类
@Override
public Object invoke(ELContext context, Object base, Object method, Class<?>[] paramTypes, Object[] params) {
	String targetMethod = coerceToString(method);
	if (targetMethod.length() == 0) {
		throw new ELException(new NoSuchMethodException());
	}

	context.setPropertyResolved(false);

	Object result = null;

	// skip implicit and call app resolvers
	int index = 1 /* implicit */ + appResolversSize;
	for (int i = 1; i < index; i++) {
		result = resolvers[i].invoke(context, base, targetMethod, paramTypes, params);
		if (context.isPropertyResolved()) {
			return result;
		}
	}

	// skip map, resource, list, and array resolvers
	index += 4;
	// call bean and the rest of resolvers
	for (int i = index; i < size; i++) {
		result = resolvers[i].invoke(context, base, targetMethod, paramTypes, params);
		if (context.isPropertyResolved()) {
			return result;
		}
	}

	return null;
}
 
开发者ID:how2j,项目名称:lazycat,代码行数:33,代码来源:JasperELResolver.java

示例14: resolve

import javax.el.ELContext; //导入方法依赖的package包/类
private boolean resolve(ELContext context, Object base, Object property) {
    context.setPropertyResolved(base == null && property instanceof String);
    return context.isPropertyResolved();
}
 
开发者ID:devefx,项目名称:validator-web,代码行数:5,代码来源:RootResolver.java


注:本文中的javax.el.ELContext.isPropertyResolved方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。