/** * @since EL 3.0 */ @Override public boolean isParametersProvided() { return this.getNode().isParametersProvided(); }
public boolean equals(Object obj) { return (obj instanceof MethodExpressionImpl && obj.hashCode() == this .hashCode());
throws PropertyNotFoundException, MethodNotFoundException, ELException { Node n = this.getNode(); EvaluationContext ctx = new EvaluationContext(context, this.fnMapper, this.varMapper); ctx.notifyBeforeEvaluation(getExpressionString()); MethodInfo result = n.getMethodInfo(ctx, this.paramTypes); ctx.notifyAfterEvaluation(getExpressionString()); return result;
public MethodExpression createMethodExpression(Class expectedReturnType, Class[] expectedParamTypes) throws ELException { Node n = this.build(); if (n instanceof AstValue || n instanceof AstIdentifier) { return new MethodExpressionImpl(expression, n, this.fnMapper, this.varMapper, expectedReturnType, expectedParamTypes); } else if (n instanceof AstLiteralExpression) { return new MethodExpressionLiteral(expression, expectedReturnType, expectedParamTypes); } else { throw new ELException("Not a Valid Method Expression: " + expression); } } }
throws PropertyNotFoundException, MethodNotFoundException, ELException { Node n = this.getNode(); EvaluationContext ctx = new EvaluationContext(context, this.fnMapper, this.varMapper); ctx.notifyBeforeEvaluation(getExpressionString()); MethodInfo result = n.getMethodInfo(ctx, this.paramTypes); ctx.notifyAfterEvaluation(getExpressionString()); return result;
public MethodExpression createMethodExpression(Class<?> expectedReturnType, Class<?>[] expectedParamTypes) throws ELException { Node n = this.build(); if (!n.isParametersProvided() && expectedParamTypes == null) { throw new NullPointerException(MessageFactory .get("error.method.nullParms")); } if (n instanceof AstValue || n instanceof AstIdentifier) { return new MethodExpressionImpl(expression, n, this.fnMapper, this.varMapper, expectedReturnType, expectedParamTypes); } else if (n instanceof AstLiteralExpression) { return new MethodExpressionLiteral(expression, expectedReturnType, expectedParamTypes); } else { throw new ELException("Not a Valid Method Expression: " + expression); } }
/** * @since EL 2.2 * Note: The spelling mistake is deliberate. * isParmetersProvided() - Specification definition * isParametersProvided() - Corrected spelling */ @Override public boolean isParmetersProvided() { return this.getNode().isParametersProvided(); }
EvaluationContext ctx = new EvaluationContext(context, this.fnMapper, this.varMapper); ctx.notifyBeforeEvaluation(getExpressionString()); Object result = this.getNode().invoke(ctx, this.paramTypes, params); ctx.notifyAfterEvaluation(getExpressionString()); return result;
public MethodExpression createMethodExpression(Class<?> expectedReturnType, Class<?>[] expectedParamTypes) throws ELException { Node n = this.build(); if (!n.isParametersProvided() && expectedParamTypes == null) { throw new NullPointerException(MessageFactory .get("error.method.nullParms")); } if (n instanceof AstValue || n instanceof AstIdentifier) { return new MethodExpressionImpl(expression, n, this.fnMapper, this.varMapper, expectedReturnType, expectedParamTypes); } else if (n instanceof AstLiteralExpression) { return new MethodExpressionLiteral(expression, expectedReturnType, expectedParamTypes); } else { throw new ELException("Not a Valid Method Expression: " + expression); } } }
/** * @since EL 2.2 * Note: The spelling mistake is deliberate. * isParmetersProvided() - Specification definition * isParametersProvided() - Corrected spelling */ @Override public boolean isParmetersProvided() { return this.getNode().isParametersProvided(); }
EvaluationContext ctx = new EvaluationContext(context, this.fnMapper, this.varMapper); ctx.notifyBeforeEvaluation(getExpressionString()); Object result = this.getNode().invoke(ctx, this.paramTypes, params); ctx.notifyAfterEvaluation(getExpressionString()); return result;
public MethodExpression createMethodExpression(Class<?> expectedReturnType, Class<?>[] expectedParamTypes) throws ELException { Node n = this.build(); if (!n.isParametersProvided() && expectedParamTypes == null) { throw new NullPointerException(MessageFactory .get("error.method.nullParms")); } if (n instanceof AstValue || n instanceof AstIdentifier) { return new MethodExpressionImpl(expression, n, this.fnMapper, this.varMapper, expectedReturnType, expectedParamTypes); } else if (n instanceof AstLiteralExpression) { return new MethodExpressionLiteral(expression, expectedReturnType, expectedParamTypes); } else { throw new ELException("Not a Valid Method Expression: " + expression); } } }
public boolean equals(Object obj) { return (obj instanceof MethodExpressionImpl && obj.hashCode() == this .hashCode());
/** * @since EL 2.2 * Note: The spelling mistake is deliberate. * isParmetersProvided() - Specification definition * isParametersProvided() - Corrected spelling */ @Override public boolean isParmetersProvided() { return this.getNode().isParametersProvided(); }
public MethodExpression createMethodExpression(Class<?> expectedReturnType, Class<?>[] expectedParamTypes) throws ELException { Node n = this.build(); if (!n.isParametersProvided() && expectedParamTypes == null) { throw new NullPointerException(MessageFactory .get("error.method.nullParms")); } if (n instanceof AstValue || n instanceof AstIdentifier) { return new MethodExpressionImpl(expression, n, this.fnMapper, this.varMapper, expectedReturnType, expectedParamTypes); } else if (n instanceof AstLiteralExpression) { return new MethodExpressionLiteral(expression, expectedReturnType, expectedParamTypes); } else { throw new ELException("Not a Valid Method Expression: " + expression); } } }
public boolean equals(Object obj) { return (obj instanceof MethodExpressionImpl && obj.hashCode() == this .hashCode());
/** * @since EL 2.2 * Note: The spelling mistake is deliberate. * isParmetersProvided() - Specification definition * isParametersProvided() - Corrected spelling */ @Override public boolean isParmetersProvided() { return this.getNode().isParametersProvided(); }
public MethodExpression createMethodExpression(Class<?> expectedReturnType, Class<?>[] expectedParamTypes) throws ELException { Node n = this.build(); if (!n.isParametersProvided() && expectedParamTypes == null) { throw new NullPointerException(MESSAGES.nullParameterTypes()); } if (n instanceof AstValue || n instanceof AstIdentifier) { return new MethodExpressionImpl(expression, n, this.fnMapper, this.varMapper, expectedReturnType, expectedParamTypes); } else if (n instanceof AstLiteralExpression) { return new MethodExpressionLiteral(expression, expectedReturnType, expectedParamTypes); } else { throw new ELException(MESSAGES.invalidMethodExpression(expression)); } } }
public boolean equals(Object obj) { return (obj instanceof MethodExpressionImpl && obj.hashCode() == this .hashCode());