Class MethodCallBuilderImpl
- All Implemented Interfaces:
NodeBuilder
public class MethodCallBuilderImpl extends MethodCallBuilder
-
Constructor Summary
Constructors Constructor Description MethodCallBuilderImpl(FlowBuilderImpl root, String id) -
Method Summary
Modifier and Type Method Description MethodCallBuilderdefaultOutcome(jakarta.el.ValueExpression ve)If the method is a void method, or the method returnsnull, this can be used to specify what value should be passed to runtime when the method returns.MethodCallBuilderdefaultOutcome(String outcome)If the method is a void method, or the method returnsnull, this can be used to specify what value should be passed to runtime when the method returns.MethodCallBuilderexpression(jakarta.el.MethodExpression me)Set the method expression of this method call node.MethodCallBuilderexpression(String methodExpression)Set the method expression of this method call node.MethodCallBuilderexpression(String methodExpression, Class[] paramTypes)Set the method expression of this method call node.MethodCallBuildermarkAsStartNode()Mark this node as the start node in the flow.MethodCallBuilderparameters(List<Parameter> parameters)Set the parameters of the method call node.
-
Constructor Details
-
Method Details
-
defaultOutcome
Description copied from class:MethodCallBuilderIf the method is a void method, or the method returns
null, this can be used to specify what value should be passed to runtime when the method returns.- Specified by:
defaultOutcomein classMethodCallBuilder- Parameters:
outcome- AValueExpressionString representing the default outcome, only used if the method is a void method or returnsnull.- Returns:
- the builder instance
-
defaultOutcome
Description copied from class:MethodCallBuilderIf the method is a void method, or the method returns
null, this can be used to specify what value should be passed to runtime when the method returns.- Specified by:
defaultOutcomein classMethodCallBuilder- Parameters:
ve- AValueExpressionrepresenting the default outcome, only used if the method is a void method or returnsnull.- Returns:
- the builder instance
-
expression
Description copied from class:MethodCallBuilderSet the method expression of this method call node. The method signature of the argument
methodExpressionmust match the number and type of the parameters passed in theMethodCallBuilder.parameters(java.util.List<jakarta.faces.flow.Parameter>)method.- Specified by:
expressionin classMethodCallBuilder- Parameters:
methodExpression- TheMethodExpressionString to invoke.- Returns:
- the builder instance
-
expression
Description copied from class:MethodCallBuilderSet the method expression of this method call node. The method signature of the argument
methodExpressionmust match the number and type of the parameters passed in theMethodCallBuilder.parameters(java.util.List<jakarta.faces.flow.Parameter>)method.- Specified by:
expressionin classMethodCallBuilder- Parameters:
methodExpression- TheMethodExpressionto invoke.paramTypes- the types of the parameters to the method.- Returns:
- the builder instance
-
parameters
Description copied from class:MethodCallBuilderSet the parameters of the method call node.
- Specified by:
parametersin classMethodCallBuilder- Parameters:
parameters- the parameters to pass to the method when it is invoked.- Returns:
- the builder instance
-
expression
Description copied from class:MethodCallBuilderSet the method expression of this method call node. The method signature of the argument
methodExpressionmust match the number and type of the parameters passed in theMethodCallBuilder.parameters(java.util.List<jakarta.faces.flow.Parameter>)method.- Specified by:
expressionin classMethodCallBuilder- Parameters:
me- TheMethodExpressionto invoke.- Returns:
- the builder instance
-
markAsStartNode
Description copied from interface:NodeBuilderMark this node as the start node in the flow. Any other node that had been marked as the start node will no longer be the start node.
- Specified by:
markAsStartNodein interfaceNodeBuilder- Specified by:
markAsStartNodein classMethodCallBuilder- Returns:
- the builder instance
-