org.apache.myfaces.view.facelets.el
Class LocationMethodExpression
java.lang.Object
javax.el.Expression
javax.el.MethodExpression
org.apache.myfaces.view.facelets.el.LocationMethodExpression
- All Implemented Interfaces:
- java.io.Serializable, javax.faces.FacesWrapper<javax.el.MethodExpression>
public class LocationMethodExpression
- extends javax.el.MethodExpression
- implements javax.faces.FacesWrapper<javax.el.MethodExpression>
A MethodExpression that contains the original MethodExpression and
the Location of the facelet file from which the MethodExpression was
created. This is needed when the current composite component (cc)
has to be resolved by the MethodExpression, because #{cc} refers to the
composite component which is implemented in the file the MethodExpression
comes from and not the one currently on top of the composite component stack.
This MethodExpression implementation passes through all methods to the delegate
MethodExpression, but saves the related composite component in a FacesContext attribute
before the invocation of the method on the delegate and removes it afterwards.
- Version:
- $Revision: 949310 $ $Date: 2010-05-28 17:23:15 -0500 (Fri, 28 May 2010) $
- Author:
- Jakob Korherr (latest modification by $Author: lu4242 $)
- See Also:
- Serialized Form
Methods inherited from class javax.el.MethodExpression |
isParmetersProvided |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
LocationMethodExpression
public LocationMethodExpression(javax.faces.view.Location location,
javax.el.MethodExpression delegate)
getLocation
public javax.faces.view.Location getLocation()
getMethodInfo
public javax.el.MethodInfo getMethodInfo(javax.el.ELContext context)
- Specified by:
getMethodInfo
in class javax.el.MethodExpression
invoke
public java.lang.Object invoke(javax.el.ELContext context,
java.lang.Object[] params)
- Specified by:
invoke
in class javax.el.MethodExpression
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in class javax.el.Expression
getExpressionString
public java.lang.String getExpressionString()
- Specified by:
getExpressionString
in class javax.el.Expression
hashCode
public int hashCode()
- Specified by:
hashCode
in class javax.el.Expression
isLiteralText
public boolean isLiteralText()
- Specified by:
isLiteralText
in class javax.el.Expression
getWrapped
public javax.el.MethodExpression getWrapped()
- Specified by:
getWrapped
in interface javax.faces.FacesWrapper<javax.el.MethodExpression>
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.