Top Fields Constructors Methods
com.sun.faces.flow.builder

public Class MethodCallBuilderImpl

extends MethodCallBuilder
Class Inheritance
Imports
java.util.List, com.sun.faces.flow.MethodCallNodeImpl, jakarta.el.ELContext, .MethodExpression, .ValueExpression, jakarta.faces.flow.Parameter, jakarta.faces.flow.builder.MethodCallBuilder

Field Summary

Modifier and TypeField and Description
private static final Class<?>[]
private String
private MethodCallNodeImpl
private FlowBuilderImpl

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public MethodCallBuilder
defaultOutcome(String
A ValueExpression String representing the default outcome, only used if the method is a void method or returns null.
outcome
)

Implements abstract jakarta.faces.flow.builder.MethodCallBuilder.defaultOutcome.

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.

public MethodCallBuilder
defaultOutcome(ValueExpression
A ValueExpression representing the default outcome, only used if the method is a void method or returns null.
ve
)

Implements abstract jakarta.faces.flow.builder.MethodCallBuilder.defaultOutcome.

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.

public MethodCallBuilder
expression(String
The MethodExpression String to invoke.
methodExpression
)

Implements abstract jakarta.faces.flow.builder.MethodCallBuilder.expression.

Set the method expression of this method call node.

public MethodCallBuilder
expression(String
The MethodExpression to invoke.
methodExpression
,
Class<T>[]
the types of the parameters to the method.
paramTypes
)

Implements abstract jakarta.faces.flow.builder.MethodCallBuilder.expression.

Set the method expression of this method call node.

public MethodCallBuilder
expression(MethodExpression
The MethodExpression to invoke.
me
)

Implements abstract jakarta.faces.flow.builder.MethodCallBuilder.expression.

Set the method expression of this method call node.

public MethodCallBuilder
public MethodCallBuilder
parameters(List<Parameter>
the parameters to pass to the method when it is invoked.
parameters
)

Implements abstract jakarta.faces.flow.builder.MethodCallBuilder.parameters.

Set the parameters of the method call node.

Field Detail

EMPTY_ARGSback to summary
private static final Class<?>[] EMPTY_ARGS
methodCallIdback to summary
private String methodCallId
methodCallNodeback to summary
private MethodCallNodeImpl methodCallNode
rootback to summary
private FlowBuilderImpl root

Constructor Detail

MethodCallBuilderImplback to summary
public MethodCallBuilderImpl(FlowBuilderImpl root, String id)

Method Detail

defaultOutcomeback to summary
public MethodCallBuilder defaultOutcome(String outcome)

Implements abstract jakarta.faces.flow.builder.MethodCallBuilder.defaultOutcome.

Doc from jakarta.faces.flow.builder.MethodCallBuilder.defaultOutcome.

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.

Parameters
outcome:String

A ValueExpression String representing the default outcome, only used if the method is a void method or returns null.

Returns:MethodCallBuilder

the builder instance

Annotations
@Override
defaultOutcomeback to summary
public MethodCallBuilder defaultOutcome(ValueExpression ve)

Implements abstract jakarta.faces.flow.builder.MethodCallBuilder.defaultOutcome.

Doc from jakarta.faces.flow.builder.MethodCallBuilder.defaultOutcome.

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.

Parameters
ve:ValueExpression

A ValueExpression representing the default outcome, only used if the method is a void method or returns null.

Returns:MethodCallBuilder

the builder instance

Annotations
@Override
expressionback to summary
public MethodCallBuilder expression(String methodExpression)

Implements abstract jakarta.faces.flow.builder.MethodCallBuilder.expression.

Doc from jakarta.faces.flow.builder.MethodCallBuilder.expression.

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 the parameters method.

Parameters
methodExpression:String

The MethodExpression String to invoke.

Returns:MethodCallBuilder

the builder instance

Annotations
@Override
expressionback to summary
public MethodCallBuilder expression(String methodExpression, Class<T>[] paramTypes)

Implements abstract jakarta.faces.flow.builder.MethodCallBuilder.expression.

Doc from jakarta.faces.flow.builder.MethodCallBuilder.expression.

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 the parameters method.

Parameters
methodExpression:String

The MethodExpression to invoke.

paramTypes:Class<T>[]

the types of the parameters to the method.

Returns:MethodCallBuilder

the builder instance

Annotations
@Override
expressionback to summary
public MethodCallBuilder expression(MethodExpression me)

Implements abstract jakarta.faces.flow.builder.MethodCallBuilder.expression.

Doc from jakarta.faces.flow.builder.MethodCallBuilder.expression.

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 the parameters method.

Parameters
me:MethodExpression

The MethodExpression to invoke.

Returns:MethodCallBuilder

the builder instance

Annotations
@Override
markAsStartNodeback to summary
public MethodCallBuilder markAsStartNode()

Implements abstract jakarta.faces.flow.builder.MethodCallBuilder.markAsStartNode.

Implements jakarta.faces.flow.builder.NodeBuilder.markAsStartNode.

Doc from jakarta.faces.flow.builder.NodeBuilder.markAsStartNode.

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.

Returns:MethodCallBuilder

the builder instance

Annotations
@Override
parametersback to summary
public MethodCallBuilder parameters(List<Parameter> parameters)

Implements abstract jakarta.faces.flow.builder.MethodCallBuilder.parameters.

Doc from jakarta.faces.flow.builder.MethodCallBuilder.parameters.

Set the parameters of the method call node.

Parameters
parameters:List<Parameter>

the parameters to pass to the method when it is invoked.

Returns:MethodCallBuilder

the builder instance

Annotations
@Override