Class LocationMethodExpression
- java.lang.Object
- 
- jakarta.el.Expression
- 
- jakarta.el.MethodExpression
- 
- org.apache.myfaces.view.facelets.el.LocationMethodExpression
 
 
 
- 
- All Implemented Interfaces:
- FacesWrapper<jakarta.el.MethodExpression>,- Externalizable,- Serializable,- LocationAware
 
 public class LocationMethodExpression extends jakarta.el.MethodExpression implements FacesWrapper<jakarta.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 SummaryConstructors Constructor Description LocationMethodExpression()LocationMethodExpression(Location location, jakarta.el.MethodExpression delegate)LocationMethodExpression(Location location, jakarta.el.MethodExpression delegate, int ccLevel)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description LocationMethodExpressionapply(int newCCLevel)LocationMethodExpressionapply(int newCCLevel, Location newLocation)booleanequals(Object obj)StringgetExpressionString()LocationgetLocation()jakarta.el.MethodInfogetMethodInfo(jakarta.el.ELContext context)jakarta.el.MethodExpressiongetWrapped()inthashCode()Objectinvoke(jakarta.el.ELContext context, Object[] params)booleanisLiteralText()voidreadExternal(ObjectInput in)voidwriteExternal(ObjectOutput out)
 
- 
- 
- 
Constructor Detail- 
LocationMethodExpressionpublic LocationMethodExpression() 
 - 
LocationMethodExpressionpublic LocationMethodExpression(Location location, jakarta.el.MethodExpression delegate) 
 - 
LocationMethodExpressionpublic LocationMethodExpression(Location location, jakarta.el.MethodExpression delegate, int ccLevel) 
 
- 
 - 
Method Detail- 
getLocationpublic Location getLocation() - Specified by:
- getLocationin interface- LocationAware
- Returns:
- the Locationinstance where this object exists/is related to
 
 - 
applypublic LocationMethodExpression apply(int newCCLevel) 
 - 
applypublic LocationMethodExpression apply(int newCCLevel, Location newLocation) 
 - 
getMethodInfopublic jakarta.el.MethodInfo getMethodInfo(jakarta.el.ELContext context) - Specified by:
- getMethodInfoin class- jakarta.el.MethodExpression
 
 - 
invokepublic Object invoke(jakarta.el.ELContext context, Object[] params) - Specified by:
- invokein class- jakarta.el.MethodExpression
 
 - 
equalspublic boolean equals(Object obj) - Specified by:
- equalsin class- jakarta.el.Expression
 
 - 
getExpressionStringpublic String getExpressionString() - Specified by:
- getExpressionStringin class- jakarta.el.Expression
 
 - 
hashCodepublic int hashCode() - Specified by:
- hashCodein class- jakarta.el.Expression
 
 - 
isLiteralTextpublic boolean isLiteralText() - Specified by:
- isLiteralTextin class- jakarta.el.Expression
 
 - 
getWrappedpublic jakarta.el.MethodExpression getWrapped() - Specified by:
- getWrappedin interface- FacesWrapper<jakarta.el.MethodExpression>
 
 - 
readExternalpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException - Specified by:
- readExternalin interface- Externalizable
- Throws:
- IOException
- ClassNotFoundException
 
 - 
writeExternalpublic void writeExternal(ObjectOutput out) throws IOException - Specified by:
- writeExternalin interface- Externalizable
- Throws:
- IOException
 
 
- 
 
-