- All Implemented Interfaces:
- Serializable
 This specialized MethodExpression enables the evaluation of composite component expressions. Instances
 of this expression will be created when
 TagAttributeImpl.getValueExpression(jakarta.faces.view.facelets.FaceletContext, Class)
 is invoked and the expression represents a composite component expression (i.e. #{cc.[properties]}).
 
 It's important to note that these MethodExpressions are context sensitive in that they leverage the
 location in which they were referenced in order to push the proper composite component to the evaluation context
 prior to evaluating the expression itself.
 
 Using Page test.xhtml
 ---------------------------------
    <ez:comp1 do="#{bean.action}" />
 comp1.xhtml
 ---------------------------------
 <composite:interface>
    <composite:attribute name="do" method-signature="String f()" required="true" />
 </composite:interface>
 <composite:implementation>
    <ez:nesting>
       <h:commandButton value="Click Me!" action="#{cc.attrs.do} />
    </ez:nesting>
 </composite:implementation>
 nesting.xhtml
 ---------------------------------
 <composite:interface />
 <composite:implementation>
    <composite:insertChildren>
 </composite:implementation>
 
 When commandButton is clicked, the ContextualCompositeMethodExpression first is looked up
 by 
invalid reference
com.sun.faces.facelets.tag.TagAttributeImpl.AttributeLookupMethodExpressionContextualCompositeMethodExpression. When this
 ContextualCompositeMethodExpression is invoked, the Location
 object necessary to find the proper composite component will be derived from
 source ValueExpression provided at construction time. 
 
 Using the derived
 Location, we can find the composite component that matches 'owns' the template in which
 the expression was defined in by comparing the path of the Location with the name and library of the
 Resource instance associated with each composite component. If a matching composite
 component is found, it will be made available to the EL by calling
 CompositeComponentStackManager.push(jakarta.faces.component.UIComponent).- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionContextualCompositeMethodExpression(ValueExpression source, MethodExpression delegate) ContextualCompositeMethodExpression(Location location, MethodExpression delegate) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanDetermines whether the specified object is equal to thisExpression.Returns the original String used to create thisExpression, unmodified.getMethodInfo(ELContext elContext) Evaluates the expression relative to the provided context, and returns information about the actual referenced method.inthashCode()Returns the hash code for thisExpression.If a String literal is specified as the expression, returns the String literal coerced to the expected return type of the method signature.booleanReturns whether this expression was created from only literal text.Methods inherited from class jakarta.el.MethodExpressiongetMethodReference, isParametersProvided
- 
Constructor Details- 
ContextualCompositeMethodExpression
- 
ContextualCompositeMethodExpression
 
- 
- 
Method Details- 
getMethodInfoDescription copied from class:MethodExpressionEvaluates the expression relative to the provided context, and returns information about the actual referenced method.- Specified by:
- getMethodInfoin class- MethodExpression
- Parameters:
- elContext- The context of this evaluation
- Returns:
- an instance of MethodInfocontaining information about the method the expression evaluated to.
 
- 
invokeDescription copied from class:MethodExpressionIf a String literal is specified as the expression, returns the String literal coerced to the expected return type of the method signature. AnELExceptionis thrown ifexpectedReturnTypeis void or if the coercion of the String literal to theexpectedReturnTypeyields an error (see Section "1.18 Type Conversion" of the Jakarta Expression Language specification). If not a String literal, evaluates the expression relative to the provided context, invokes the method that was found using the supplied parameters, and returns the result of the method invocation. Any parameters passed to this method is ignored if isLiteralText() or isParametersProvided() is true.- Specified by:
- invokein class- MethodExpression
- Parameters:
- elContext- The context of this evaluation.
- objects- The parameters to pass to the method, or- nullif no parameters.
- Returns:
- the result of the method invocation (nullif the method has avoidreturn type).
 
- 
getExpressionStringDescription copied from class:ExpressionReturns the original String used to create thisExpression, unmodified.This is used for debugging purposes but also for the purposes of comparison (e.g. to ensure the expression in a configuration file has not changed). This method does not provide sufficient information to re-create an expression. Two different expressions can have exactly the same expression string but different function mappings. Serialization should be used to save and restore the state of an Expression.- Specified by:
- getExpressionStringin class- Expression
- Returns:
- The original expression String.
 
- 
equalsDescription copied from class:ExpressionDetermines whether the specified object is equal to thisExpression.The result is trueif and only if the argument is notnull, is anExpressionobject that is the of the same type (ValueExpressionorMethodExpression), and has an identical parsed representation.Note that two expressions can be equal if their expression Strings are different. For example, ${fn1:foo()}and${fn2:foo()}are equal if their correspondingFunctionMappers mappedfn1:fooandfn2:footo the same method.- Specified by:
- equalsin class- Expression
- Parameters:
- o- the- Objectto test for equality.
- Returns:
- trueif- objequals this- Expression;- falseotherwise.
- See Also:
 
- 
hashCodepublic int hashCode()Description copied from class:ExpressionReturns the hash code for thisExpression.See the note in the Expression.equals(java.lang.Object)method on how two expressions can be equal if their expression Strings are different. Recall that if two objects are equal according to theequals(Object)method, then calling thehashCodemethod on each of the two objects must produce the same integer result. Implementations must take special note and implementhashCodecorrectly.- Specified by:
- hashCodein class- Expression
- Returns:
- The hash code for this Expression.
- See Also:
 
- 
isLiteralTextpublic boolean isLiteralText()Description copied from class:ExpressionReturns whether this expression was created from only literal text.This method must return trueif and only if the expression string this expression was created from contained no unescaped Jakarta Expression Language delimeters (${...}or#{...}).- Specified by:
- isLiteralTextin class- Expression
- Returns:
- trueif this expression was created from only literal text;- falseotherwise.
 
 
-