|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.el.Expression
javax.el.MethodExpression
org.apache.myfaces.test.el.MockMethodExpression
public class MockMethodExpression
Mock implementation of MethodExpression.
| Constructor Summary | |
|---|---|
MockMethodExpression(String expression,
Class[] signature,
Class expectedType)
Construct a new expression for the specified expression string. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Return true if this expression is equal to the
specified expression. |
String |
getExpressionString()
Return the original String used to create this expression, unmodified. |
javax.el.MethodInfo |
getMethodInfo(javax.el.ELContext context)
Evaluate the expression relative to the specified context, and return information about the actual implementation method. |
int |
hashCode()
Return the hash code for this expression. |
Object |
invoke(javax.el.ELContext context,
Object[] params)
Evaluate the expression relative to the specified ocntext, and return the result after coercion to the expected result type. |
boolean |
isLiteralText()
Return true if the expression string for this expression
contains only literal text. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockMethodExpression(String expression,
Class[] signature,
Class expectedType)
Construct a new expression for the specified expression string.
expression - Expression string to be evaluatedsignature - Parameter signature of the method to be calledexpectedType - Expected type of the result| Method Detail |
|---|
public boolean equals(Object obj)
Return true if this expression is equal to the
specified expression.
equals in class javax.el.Expressionobj - Object to be comparedpublic String getExpressionString()
Return the original String used to create this expression, unmodified.
getExpressionString in class javax.el.Expressionpublic int hashCode()
Return the hash code for this expression.
hashCode in class javax.el.Expressionpublic boolean isLiteralText()
Return true if the expression string for this expression
contains only literal text.
isLiteralText in class javax.el.Expressionpublic javax.el.MethodInfo getMethodInfo(javax.el.ELContext context)
Evaluate the expression relative to the specified context, and return information about the actual implementation method.
getMethodInfo in class javax.el.MethodExpressioncontext - ELContext for this evaluation
public Object invoke(javax.el.ELContext context,
Object[] params)
Evaluate the expression relative to the specified ocntext, and return the result after coercion to the expected result type.
invoke in class javax.el.MethodExpressioncontext - ELContext for this evaluationparams - Parameters for this method call
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||