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) booleanjakarta.el.MethodInfogetMethodInfo(jakarta.el.ELContext context) jakarta.el.MethodExpressioninthashCode()booleanvoidvoidMethods 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:
getLocationin interfaceLocationAware- Returns:
- the
Locationinstance where this object exists/is related to
-
apply
-
apply
-
getMethodInfo
public jakarta.el.MethodInfo getMethodInfo(jakarta.el.ELContext context) - Specified by:
getMethodInfoin classjakarta.el.MethodExpression
-
invoke
- Specified by:
invokein classjakarta.el.MethodExpression
-
equals
- Specified by:
equalsin classjakarta.el.Expression
-
getExpressionString
- Specified by:
getExpressionStringin classjakarta.el.Expression
-
hashCode
public int hashCode()- Specified by:
hashCodein classjakarta.el.Expression
-
isLiteralText
public boolean isLiteralText()- Specified by:
isLiteralTextin classjakarta.el.Expression
-
getWrapped
public jakarta.el.MethodExpression getWrapped()- Specified by:
getWrappedin interfaceFacesWrapper<jakarta.el.MethodExpression>
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-