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 MethodCallBuilder
defaultOutcome(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.MethodCallBuilder
defaultOutcome(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.MethodCallBuilder
expression(jakarta.el.MethodExpression me)
Set the method expression of this method call node.MethodCallBuilder
expression(String methodExpression)
Set the method expression of this method call node.MethodCallBuilder
expression(String methodExpression, Class[] paramTypes)
Set the method expression of this method call node.MethodCallBuilder
markAsStartNode()
Mark this node as the start node in the flow.MethodCallBuilder
parameters(List<Parameter> parameters)
Set the parameters of the method call node.
-
Constructor Details
-
Method Details
-
defaultOutcome
Description copied from class:MethodCallBuilder
If 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:
defaultOutcome
in classMethodCallBuilder
- Parameters:
outcome
- AValueExpression
String representing the default outcome, only used if the method is a void method or returnsnull
.- Returns:
- the builder instance
-
defaultOutcome
Description copied from class:MethodCallBuilder
If 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:
defaultOutcome
in classMethodCallBuilder
- Parameters:
ve
- AValueExpression
representing the default outcome, only used if the method is a void method or returnsnull
.- Returns:
- the builder instance
-
expression
Description copied from class:MethodCallBuilder
Set the method expression of this method call node. The method signature of the argument
methodExpression
must match the number and type of the parameters passed in theMethodCallBuilder.parameters(java.util.List<jakarta.faces.flow.Parameter>)
method.- Specified by:
expression
in classMethodCallBuilder
- Parameters:
methodExpression
- TheMethodExpression
String to invoke.- Returns:
- the builder instance
-
expression
Description copied from class:MethodCallBuilder
Set the method expression of this method call node. The method signature of the argument
methodExpression
must match the number and type of the parameters passed in theMethodCallBuilder.parameters(java.util.List<jakarta.faces.flow.Parameter>)
method.- Specified by:
expression
in classMethodCallBuilder
- Parameters:
methodExpression
- TheMethodExpression
to invoke.paramTypes
- the types of the parameters to the method.- Returns:
- the builder instance
-
parameters
Description copied from class:MethodCallBuilder
Set the parameters of the method call node.
- Specified by:
parameters
in classMethodCallBuilder
- Parameters:
parameters
- the parameters to pass to the method when it is invoked.- Returns:
- the builder instance
-
expression
Description copied from class:MethodCallBuilder
Set the method expression of this method call node. The method signature of the argument
methodExpression
must match the number and type of the parameters passed in theMethodCallBuilder.parameters(java.util.List<jakarta.faces.flow.Parameter>)
method.- Specified by:
expression
in classMethodCallBuilder
- Parameters:
me
- TheMethodExpression
to invoke.- Returns:
- the builder instance
-
markAsStartNode
Description copied from interface:NodeBuilder
Mark 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:
markAsStartNode
in interfaceNodeBuilder
- Specified by:
markAsStartNode
in classMethodCallBuilder
- Returns:
- the builder instance
-