public boolean isParametersProvided() { if (jjtGetNumChildren() > 1 && this.children[1] != null && this.children[1] instanceof AstDotSuffix) { return (this.children[1].jjtGetNumChildren()) > 0; } return false; }
public Object invoke(EvaluationContext ctx, Class[] paramTypes, Object[] paramValues) throws ELException { Target t = getTarget(ctx); Object[] params = null; if (jjtGetNumChildren() > 1 && this.children[1] instanceof AstDotSuffix) { params = ((AstDotSuffix) this.children[1]).getParameters(ctx); } Object result = null; if (params != null && params.length > 0) { ELResolver resolver = ctx.getELResolver(); ctx.setPropertyResolved(false); result = resolver.invoke(ctx, t.base, t.property, null, params); } else { Method m = ReflectionUtil.getMethod(t.base, t.property, paramTypes); try { result = m.invoke(t.base, (Object[]) paramValues); } catch (IllegalAccessException iae) { throw new ELException(iae); } catch (InvocationTargetException ite) { throw new ELException(ite.getCause()); } } return result; }
if (isParametersProvided()) { values = ((AstMethodParameters) this.jjtGetChild( this.jjtGetNumChildren() - 1)).getParameters(ctx); types = getTypesFromValues(values); } else {
if (isParametersProvided()) { values = ((AstMethodParameters) this.jjtGetChild( this.jjtGetNumChildren() - 1)).getParameters(ctx); types = getTypesFromValues(values); } else {
if (isParametersProvided()) { values = ((AstMethodParameters) this.jjtGetChild( this.jjtGetNumChildren() - 1)).getParameters(ctx); types = getTypesFromValues(values); } else {
if (isParametersProvided()) { values = ((AstMethodParameters) this.jjtGetChild( this.jjtGetNumChildren() - 1)).getParameters(ctx); types = getTypesFromValues(values); } else {
public Object getValue(EvaluationContext ctx) throws ELException { Object base = this.children[0].getValue(ctx); int propCount = this.jjtGetNumChildren(); int i = 1; Object property = null; ELResolver resolver = ctx.getELResolver(); while (base != null && i < propCount) { property = this.children[i].getValue(ctx); if (property == null) { return null; } else { Object[] params = null; if (this.children[i] instanceof AstDotSuffix) { params = ((AstDotSuffix) this.children[i]).getParameters(ctx); } if (params != null && params.length > 0) { ctx.setPropertyResolved(false); base = resolver.invoke(ctx, base, property, null, params); } else { ctx.setPropertyResolved(false); base = resolver.getValue(ctx, base, property); } } i++; } return base; }
@Override public Object getValue(EvaluationContext ctx) throws ELException { Object base = this.children[0].getValue(ctx); int propCount = this.jjtGetNumChildren(); int i = 1; Object suffix = null;
@Override public Object getValue(EvaluationContext ctx) throws ELException { Object base = this.children[0].getValue(ctx); int propCount = this.jjtGetNumChildren(); int i = 1; Object suffix = null;
@Override public Object getValue(EvaluationContext ctx) throws ELException { Object base = this.children[0].getValue(ctx); int propCount = this.jjtGetNumChildren(); int i = 1; Object suffix = null;
@Override public Object getValue(EvaluationContext ctx) throws ELException { Object base = this.children[0].getValue(ctx); int propCount = this.jjtGetNumChildren(); int i = 1; Object suffix = null;
@Override public Object getValue(EvaluationContext ctx) throws ELException { Object base = this.children[0].getValue(ctx); int propCount = this.jjtGetNumChildren(); int i = 1; Object suffix = null;
int propCount = this.jjtGetNumChildren() - 1; int i = 1;
int propCount = this.jjtGetNumChildren();
int propCount = this.jjtGetNumChildren();
int propCount = this.jjtGetNumChildren();
int propCount = this.jjtGetNumChildren();
int propCount = this.jjtGetNumChildren();