本文整理汇总了Java中javax.el.MethodInfo类的典型用法代码示例。如果您正苦于以下问题:Java MethodInfo类的具体用法?Java MethodInfo怎么用?Java MethodInfo使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
MethodInfo类属于javax.el包,在下文中一共展示了MethodInfo类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getMethodInfo
import javax.el.MethodInfo; //导入依赖的package包/类
@Override
// Interface el.parser.Node uses raw types (and is auto-generated)
public MethodInfo getMethodInfo(EvaluationContext ctx,
@SuppressWarnings("rawtypes") Class[] paramTypes)
throws ELException {
Target t = getTarget(ctx);
Method m = ReflectionUtil.getMethod(
t.base, t.property, paramTypes, null);
return new MethodInfo(m.getName(), m.getReturnType(), m
.getParameterTypes());
}
示例2: getType
import javax.el.MethodInfo; //导入依赖的package包/类
public Class getType(FacesContext facesContext)
{
MethodInfo mi = _me.getMethodInfo(facesContext.getELContext());
if (mi == null)
return null;
return mi.getReturnType();
}
示例3: getMethodInfo
import javax.el.MethodInfo; //导入依赖的package包/类
public MethodInfo getMethodInfo(EvaluationContext ctx, Class[] paramTypes)
throws ELException {
Target t = getTarget(ctx);
Method m = ReflectionUtil.getMethod(t.base, t.property, paramTypes);
return new MethodInfo(m.getName(), m.getReturnType(), m
.getParameterTypes());
}
示例4: getMethodInfo
import javax.el.MethodInfo; //导入依赖的package包/类
@Override
// Interface el.parser.Node uses raw types (and is auto-generated)
public MethodInfo getMethodInfo(EvaluationContext ctx, @SuppressWarnings("rawtypes") Class[] paramTypes)
throws ELException {
Target t = getTarget(ctx);
Method m = ReflectionUtil.getMethod(t.base, t.property, paramTypes, null);
return new MethodInfo(m.getName(), m.getReturnType(), m.getParameterTypes());
}
示例5: getMethodInfo
import javax.el.MethodInfo; //导入依赖的package包/类
@Override
public MethodInfo getMethodInfo(ELContext context) throws ELException {
context.notifyBeforeEvaluation(getExpressionString());
MethodInfo result =
new MethodInfo(this.expr, this.expectedType, this.paramTypes);
context.notifyAfterEvaluation(getExpressionString());
return result;
}
示例6: getMethodInfo
import javax.el.MethodInfo; //导入依赖的package包/类
@Override
public MethodInfo getMethodInfo(EvaluationContext ctx,
Class<?>[] paramTypes) throws ELException {
throw new UnsupportedOperationException();
}
示例7: getMethodInfo
import javax.el.MethodInfo; //导入依赖的package包/类
public MethodInfo getMethodInfo(Object base, EvaluationContext ctx, Class[] paramTypes) throws ELException {
VariableMapper orig = ctx.getVariableMapper();
ctx.setVariableMapper(new ClosureVariableMapper(orig, this.image, base));
MethodInfo result = null;
try {
result = this.children[0].getMethodInfo(ctx, paramTypes);
} finally {
ctx.setVariableMapper(orig);
}
return result;
}
示例8: getMethodInfo
import javax.el.MethodInfo; //导入依赖的package包/类
public MethodInfo getMethodInfo(Object base, EvaluationContext ctx, Class[] paramTypes) throws ELException {
Collection c = this.toCollection(base);
if (c == null || c.isEmpty()) {
return null;
} else {
AstClosure closure = this.closure();
Object first = c.iterator().next();
return closure.getMethodInfo(first, ctx, paramTypes);
}
}
示例9: getMethodInfo
import javax.el.MethodInfo; //导入依赖的package包/类
@Override
// Interface el.parser.Node uses raw types (and is auto-generated)
public MethodInfo getMethodInfo(EvaluationContext ctx,
@SuppressWarnings("rawtypes") Class[] paramTypes)
throws ELException {
Target t = getTarget(ctx);
Method m = ReflectionUtil.getMethod(t.base, t.property, paramTypes);
return new MethodInfo(m.getName(), m.getReturnType(), m
.getParameterTypes());
}
示例10: getMethodInfo
import javax.el.MethodInfo; //导入依赖的package包/类
public MethodInfo getMethodInfo(EvaluationContext ctx, Class<?>[] paramTypes)
throws ELException;
示例11: getMethodInfo
import javax.el.MethodInfo; //导入依赖的package包/类
@Override
public MethodInfo getMethodInfo(EvaluationContext ctx,
Class<?>[] paramTypes) throws ELException {
return this.getMethodExpression(ctx).getMethodInfo(ctx.getELContext());
}
示例12: getMethodInfo
import javax.el.MethodInfo; //导入依赖的package包/类
@Override
public MethodInfo getMethodInfo(ELContext context) throws ELException {
return new MethodInfo(this.expr, this.expectedType, this.paramTypes);
}
示例13: getMethodInfo
import javax.el.MethodInfo; //导入依赖的package包/类
@Override
public MethodInfo getMethodInfo(ELContext elContext)
{
throw new UnsupportedOperationException("Not implemented yet");
}
示例14: getMethodInfo
import javax.el.MethodInfo; //导入依赖的package包/类
public MethodInfo getMethodInfo(ELContext context)
{
Class<?> type = _binding.getType(FacesContext.getCurrentInstance());
return new MethodInfo(null, type, null);
}
示例15: getMethodInfo
import javax.el.MethodInfo; //导入依赖的package包/类
public MethodInfo getMethodInfo(ELContext context)
{
return null;
}