org.apache.myfaces.view.facelets.el
Class LocationMethodExpression

java.lang.Object
  extended by javax.el.Expression
      extended by javax.el.MethodExpression
          extended by org.apache.myfaces.view.facelets.el.LocationMethodExpression
All Implemented Interfaces:
Serializable, FacesWrapper<javax.el.MethodExpression>

public class LocationMethodExpression
extends javax.el.MethodExpression
implements 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

Constructor Summary
LocationMethodExpression(Location location, javax.el.MethodExpression delegate)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getExpressionString()
           
 Location getLocation()
           
 javax.el.MethodInfo getMethodInfo(javax.el.ELContext context)
           
 javax.el.MethodExpression getWrapped()
           
 int hashCode()
           
 Object invoke(javax.el.ELContext context, Object[] params)
           
 boolean isLiteralText()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocationMethodExpression

public LocationMethodExpression(Location location,
                                javax.el.MethodExpression delegate)
Method Detail

getLocation

public Location getLocation()

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>


Copyright © 2010 The Apache Software Foundation. All Rights Reserved.