Class LocationValueExpression
- java.lang.Object
-
- jakarta.el.Expression
-
- jakarta.el.ValueExpression
-
- org.apache.myfaces.view.facelets.el.LocationValueExpression
-
- All Implemented Interfaces:
FacesWrapper<jakarta.el.ValueExpression>
,Externalizable
,Serializable
- Direct Known Subclasses:
ResourceLocationValueExpression
public class LocationValueExpression extends jakarta.el.ValueExpression implements FacesWrapper<jakarta.el.ValueExpression>, Externalizable
A ValueExpression that contains the original ValueExpression and the Location of the facelet file from which the ValueExpression was created. This is needed when the current composite component (cc) has to be resolved by the ValueExpression, because #{cc} refers to the composite component which is implemented in the file the ValueExpression comes from and not the one currently on top of the composite component stack. This ValueExpression implementation passes through all methods to the delegate ValueExpression, 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 LocationValueExpression()
LocationValueExpression(Location location, jakarta.el.ValueExpression delegate)
LocationValueExpression(Location location, jakarta.el.ValueExpression delegate, int ccLevel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocationValueExpression
apply(int newCCLevel)
LocationValueExpression
apply(int newCCLevel, Location newLocation)
boolean
equals(Object obj)
int
getCCLevel()
Class<?>
getExpectedType()
String
getExpressionString()
Location
getLocation()
Class<?>
getType(jakarta.el.ELContext context)
Object
getValue(jakarta.el.ELContext context)
jakarta.el.ValueReference
getValueReference(jakarta.el.ELContext context)
jakarta.el.ValueExpression
getWrapped()
int
hashCode()
boolean
isLiteralText()
boolean
isReadOnly(jakarta.el.ELContext context)
void
readExternal(ObjectInput in)
void
setValue(jakarta.el.ELContext context, Object value)
void
writeExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
LocationValueExpression
public LocationValueExpression()
-
LocationValueExpression
public LocationValueExpression(Location location, jakarta.el.ValueExpression delegate)
-
LocationValueExpression
public LocationValueExpression(Location location, jakarta.el.ValueExpression delegate, int ccLevel)
-
-
Method Detail
-
getLocation
public Location getLocation()
-
getCCLevel
public int getCCLevel()
-
apply
public LocationValueExpression apply(int newCCLevel)
-
apply
public LocationValueExpression apply(int newCCLevel, Location newLocation)
-
getExpectedType
public Class<?> getExpectedType()
- Specified by:
getExpectedType
in classjakarta.el.ValueExpression
-
getType
public Class<?> getType(jakarta.el.ELContext context)
- Specified by:
getType
in classjakarta.el.ValueExpression
-
getValue
public Object getValue(jakarta.el.ELContext context)
- Specified by:
getValue
in classjakarta.el.ValueExpression
-
isReadOnly
public boolean isReadOnly(jakarta.el.ELContext context)
- Specified by:
isReadOnly
in classjakarta.el.ValueExpression
-
setValue
public void setValue(jakarta.el.ELContext context, Object value)
- Specified by:
setValue
in classjakarta.el.ValueExpression
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in classjakarta.el.Expression
-
getExpressionString
public String 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.ValueExpression getWrapped()
- Specified by:
getWrapped
in interfaceFacesWrapper<jakarta.el.ValueExpression>
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
getValueReference
public jakarta.el.ValueReference getValueReference(jakarta.el.ELContext context)
- Overrides:
getValueReference
in classjakarta.el.ValueExpression
-
-