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:
-
Constructor Summary
ConstructorsConstructorDescriptionLocationMethodExpression
(Location location, jakarta.el.MethodExpression delegate) LocationMethodExpression
(Location location, jakarta.el.MethodExpression delegate, int ccLevel) -
Method Summary
Modifier and TypeMethodDescriptionapply
(int newCCLevel) boolean
jakarta.el.MethodInfo
getMethodInfo
(jakarta.el.ELContext context) jakarta.el.MethodExpression
int
hashCode()
boolean
void
void
Methods inherited from class jakarta.el.MethodExpression
getMethodReference, isParametersProvided
-
Constructor Details
-
LocationMethodExpression
public LocationMethodExpression() -
LocationMethodExpression
-
LocationMethodExpression
public LocationMethodExpression(Location location, jakarta.el.MethodExpression delegate, int ccLevel)
-
-
Method Details
-
getLocation
- Specified by:
getLocation
in interfaceLocationAware
- Returns:
- the
Location
instance where this object exists/is related to
-
apply
-
apply
-
getMethodInfo
public jakarta.el.MethodInfo getMethodInfo(jakarta.el.ELContext context) - Specified by:
getMethodInfo
in classjakarta.el.MethodExpression
-
invoke
- Specified by:
invoke
in classjakarta.el.MethodExpression
-
equals
- Specified by:
equals
in classjakarta.el.Expression
-
getExpressionString
- Specified by:
getExpressionString
in classjakarta.el.Expression
-
hashCode
public int hashCode()- Specified by:
hashCode
in classjakarta.el.Expression
-
isLiteralText
public boolean isLiteralText()- Specified by:
isLiteralText
in classjakarta.el.Expression
-
getWrapped
public jakarta.el.MethodExpression getWrapped()- Specified by:
getWrapped
in interfaceFacesWrapper<jakarta.el.MethodExpression>
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-