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:
- Externalizable, Serializable, FacesWrapper<javax.el.MethodExpression>, LocationAware
public class LocationMethodExpression
- extends javax.el.MethodExpression
- implements FacesWrapper<javax.el.MethodExpression>, Externalizable, LocationAware
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: 1150175 $ $Date: 2011-07-23 12:37:25 -0500 (Sat, 23 Jul 2011) $
- Author:
- Jakob Korherr (latest modification by $Author: lu4242 $)
- See Also:
- Serialized Form
| Methods inherited from class javax.el.MethodExpression |
isParmetersProvided |
LocationMethodExpression
public LocationMethodExpression()
LocationMethodExpression
public LocationMethodExpression(Location location,
javax.el.MethodExpression delegate)
getLocation
public Location getLocation()
- Specified by:
getLocation in interface LocationAware
- Returns:
- the
Location instance where this object exists/is related to
getMethodInfo
public javax.el.MethodInfo getMethodInfo(javax.el.ELContext context)
- Specified by:
getMethodInfo in class javax.el.MethodExpression
invoke
public Object invoke(javax.el.ELContext context,
Object[] params)
- Specified by:
invoke in class javax.el.MethodExpression
equals
public boolean equals(Object obj)
- Specified by:
equals in class javax.el.Expression
getExpressionString
public 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 FacesWrapper<javax.el.MethodExpression>
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal in interface Externalizable
- Throws:
IOException
ClassNotFoundException
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal in interface Externalizable
- Throws:
IOException
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.