Top Description Inners
org.eclipse.xtext.xbase.lib

public Interface Functions

Annotations
@GwtCompatible
Imports
com.google.common.annotations.GwtCompatible

This class serves as a container for the various function types that are used to implement the type of closures in Xbase.
Author
Sebastian Zarnekow - Initial contribution and API
See Also
FunctionExtensions, Procedures

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
Functions.Function0<
the result of the single closure method.
Result
>

A function without any parameters.

public static interface
Functions.Function1<
the only argument that is passed to the closure
Param
,
the result of the single closure method.
Result
>

A function that takes one argument.

public static interface
Functions.Function2<
the first argument that is passed to the closure
P1
,
the second argument that is passed to the closure
P2
,
the result of the single closure method.
Result
>

A function that takes two arguments.

public static interface
Functions.Function3<
the first argument that is passed to the closure
P1
,
the second argument that is passed to the closure
P2
,
the third argument that is passed to the closure
P3
,
the result of the single closure method.
Result
>

A function that takes three arguments.

public static interface
Functions.Function4<
the first argument that is passed to the closure
P1
,
the second argument that is passed to the closure
P2
,
the third argument that is passed to the closure
P3
,
the fourth argument that is passed to the closure
P4
,
the result of the single closure method.
Result
>

A function that takes four arguments.

public static interface
Functions.Function5<
the first argument that is passed to the closure
P1
,
the second argument that is passed to the closure
P2
,
the third argument that is passed to the closure
P3
,
the fourth argument that is passed to the closure
P4
,
the fifth argument that is passed to the closure
P5
,
the result of the single closure method.
Result
>

A function that takes five arguments.

public static interface
Functions.Function6<
the first argument that is passed to the closure
P1
,
the second argument that is passed to the closure
P2
,
the third argument that is passed to the closure
P3
,
the fourth argument that is passed to the closure
P4
,
the fifth argument that is passed to the closure
P5
,
the sixth argument that is passed to the closure
P6
,
the result of the single closure method .
Result
>

A function that takes six arguments.

org.eclipse.xtext.xbase.lib back to summary

public Interface Functions.Function0<Result>

Type Parameters
<Result>
the result of the single closure method.

A function without any parameters.

Method Summary

Modifier and TypeMethod and Description
public Result

Method Detail

applyback to summary
public Result apply()
org.eclipse.xtext.xbase.lib back to summary

public Interface Functions.Function1<Param, Result>

Type Parameters
<Param>
the only argument that is passed to the closure
<Result>
the result of the single closure method.

A function that takes one argument.

Method Summary

Modifier and TypeMethod and Description
public Result
apply(Param p)

Method Detail

applyback to summary
public Result apply(Param p)
org.eclipse.xtext.xbase.lib back to summary

public Interface Functions.Function2<P1, P2, Result>

Type Parameters
<P1>
the first argument that is passed to the closure
<P2>
the second argument that is passed to the closure
<Result>
the result of the single closure method.

A function that takes two arguments.

Method Summary

Modifier and TypeMethod and Description
public Result
apply(P1 p1, P2 p2)

Method Detail

applyback to summary
public Result apply(P1 p1, P2 p2)
org.eclipse.xtext.xbase.lib back to summary

public Interface Functions.Function3<P1, P2, P3, Result>

Type Parameters
<P1>
the first argument that is passed to the closure
<P2>
the second argument that is passed to the closure
<P3>
the third argument that is passed to the closure
<Result>
the result of the single closure method.

A function that takes three arguments.

Method Summary

Modifier and TypeMethod and Description
public Result
apply(P1 p1, P2 p2, P3 p3)

Method Detail

applyback to summary
public Result apply(P1 p1, P2 p2, P3 p3)
org.eclipse.xtext.xbase.lib back to summary

public Interface Functions.Function4<P1, P2, P3, P4, Result>

Type Parameters
<P1>
the first argument that is passed to the closure
<P2>
the second argument that is passed to the closure
<P3>
the third argument that is passed to the closure
<P4>
the fourth argument that is passed to the closure
<Result>
the result of the single closure method.

A function that takes four arguments.

Method Summary

Modifier and TypeMethod and Description
public Result
apply(P1 p1, P2 p2, P3 p3, P4 p4)

Method Detail

applyback to summary
public Result apply(P1 p1, P2 p2, P3 p3, P4 p4)
org.eclipse.xtext.xbase.lib back to summary

public Interface Functions.Function5<P1, P2, P3, P4, P5, Result>

Type Parameters
<P1>
the first argument that is passed to the closure
<P2>
the second argument that is passed to the closure
<P3>
the third argument that is passed to the closure
<P4>
the fourth argument that is passed to the closure
<P5>
the fifth argument that is passed to the closure
<Result>
the result of the single closure method.

A function that takes five arguments.

Method Summary

Modifier and TypeMethod and Description
public Result
apply(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5)

Method Detail

applyback to summary
public Result apply(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5)
org.eclipse.xtext.xbase.lib back to summary

public Interface Functions.Function6<P1, P2, P3, P4, P5, P6, Result>

Type Parameters
<P1>
the first argument that is passed to the closure
<P2>
the second argument that is passed to the closure
<P3>
the third argument that is passed to the closure
<P4>
the fourth argument that is passed to the closure
<P5>
the fifth argument that is passed to the closure
<P6>
the sixth argument that is passed to the closure
<Result>
the result of the single closure method .

A function that takes six arguments.

Method Summary

Modifier and TypeMethod and Description
public Result
apply(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6)

Method Detail

applyback to summary
public Result apply(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6)