org.apache.myfaces.tobago.component
Class MethodBindingToMethodExpression

java.lang.Object
  extended by javax.el.Expression
      extended by javax.el.MethodExpression
          extended by org.apache.myfaces.tobago.component.MethodBindingToMethodExpression
All Implemented Interfaces:
Serializable, StateHolder

public class MethodBindingToMethodExpression
extends MethodExpression
implements StateHolder

See Also:
Serialized Form

Constructor Summary
MethodBindingToMethodExpression()
          No-arg constructor used during restoreState
MethodBindingToMethodExpression(MethodBinding methodBinding)
          Creates a new instance of MethodBindingToMethodExpression
 
Method Summary
 boolean equals(Object obj)
           
 String getExpressionString()
           
 MethodBinding getMethodBinding()
          Return the wrapped MethodBinding.
 MethodInfo getMethodInfo(ELContext context)
          Note: MethodInfo.getParamTypes() may incorrectly return an empty class array if invoke() has not been called.
 int hashCode()
           
 Object invoke(ELContext context, Object[] params)
           
 boolean isLiteralText()
           
 boolean isTransient()
           
 void restoreState(FacesContext context, Object state)
           
 Object saveState(FacesContext context)
           
 void setTransient(boolean transientFlag)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodBindingToMethodExpression

public MethodBindingToMethodExpression()
No-arg constructor used during restoreState


MethodBindingToMethodExpression

public MethodBindingToMethodExpression(MethodBinding methodBinding)
Creates a new instance of MethodBindingToMethodExpression

Parameters:
methodBinding - The MethodBinding to wrap.
Method Detail

getMethodBinding

public MethodBinding getMethodBinding()
Return the wrapped MethodBinding.

Returns:
the wrapped MethodBinding

getMethodInfo

public MethodInfo getMethodInfo(ELContext context)
                         throws ELException
Note: MethodInfo.getParamTypes() may incorrectly return an empty class array if invoke() has not been called.

Specified by:
getMethodInfo in class MethodExpression
Throws:
IllegalStateException - if expected params types have not been determined.
ELException

invoke

public Object invoke(ELContext context,
                     Object[] params)
              throws ELException
Specified by:
invoke in class MethodExpression
Throws:
ELException

isLiteralText

public boolean isLiteralText()
Specified by:
isLiteralText in class Expression

getExpressionString

public String getExpressionString()
Specified by:
getExpressionString in class Expression

saveState

public Object saveState(FacesContext context)
Specified by:
saveState in interface StateHolder

restoreState

public void restoreState(FacesContext context,
                         Object state)
Specified by:
restoreState in interface StateHolder

setTransient

public void setTransient(boolean transientFlag)
Specified by:
setTransient in interface StateHolder

isTransient

public boolean isTransient()
Specified by:
isTransient in interface StateHolder

hashCode

public int hashCode()
Specified by:
hashCode in class Expression

equals

public boolean equals(Object obj)
Specified by:
equals in class Expression


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.