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$ $Date$
- Author:
- Jakob Korherr (latest modification by $Author$)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LocationMethodExpression()LocationMethodExpression(Location location, javax.el.MethodExpression delegate)LocationMethodExpression(Location location, javax.el.MethodExpression delegate, int ccLevel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocationMethodExpressionapply(int newCCLevel)LocationMethodExpressionapply(int newCCLevel, Location newLocation)booleanequals(Object obj)StringgetExpressionString()LocationgetLocation()javax.el.MethodInfogetMethodInfo(javax.el.ELContext context)javax.el.MethodExpressiongetWrapped()inthashCode()Objectinvoke(javax.el.ELContext context, Object[] params)booleanisLiteralText()voidreadExternal(ObjectInput in)voidwriteExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
LocationMethodExpression
public LocationMethodExpression()
-
LocationMethodExpression
public LocationMethodExpression(Location location, javax.el.MethodExpression delegate)
-
LocationMethodExpression
public LocationMethodExpression(Location location, javax.el.MethodExpression delegate, int ccLevel)
-
-
Method Detail
-
getLocation
public Location getLocation()
- Specified by:
getLocationin interfaceLocationAware- Returns:
- the
Locationinstance where this object exists/is related to
-
apply
public LocationMethodExpression apply(int newCCLevel)
-
apply
public LocationMethodExpression apply(int newCCLevel, Location newLocation)
-
getMethodInfo
public javax.el.MethodInfo getMethodInfo(javax.el.ELContext context)
- Specified by:
getMethodInfoin classjavax.el.MethodExpression
-
invoke
public Object invoke(javax.el.ELContext context, Object[] params)
- Specified by:
invokein classjavax.el.MethodExpression
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin classjavax.el.Expression
-
getExpressionString
public String getExpressionString()
- Specified by:
getExpressionStringin classjavax.el.Expression
-
hashCode
public int hashCode()
- Specified by:
hashCodein classjavax.el.Expression
-
isLiteralText
public boolean isLiteralText()
- Specified by:
isLiteralTextin classjavax.el.Expression
-
getWrapped
public javax.el.MethodExpression getWrapped()
- Specified by:
getWrappedin interfaceFacesWrapper<javax.el.MethodExpression>
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
-