public interface JLambda extends JExpr
Modifier and Type | Method and Description |
---|---|
JBlock |
body()
Get the lambda body as a block.
|
JLambda |
body(JExpr expr)
Set the lambda body as an expression.
|
JLambda |
param(Class<?> type,
String name)
Add a declared-type parameter to this lambda.
|
JLambda |
param(JType type,
String name)
Add a declared-type parameter to this lambda.
|
JLambda |
param(String name)
Add an inferred-type parameter to this lambda.
|
JLambda |
param(String typeName,
String name)
Add a declared-type parameter to this lambda.
|
_instanceof, _instanceof, _instanceof, _new, _new, _new, _newAnon, _newAnon, _newAnon, $v, and, band, bor, bxor, call, cast, cast, cast, comp, cond, div, eq, field, ge, gt, idx, idx, le, length, lshr, lt, minus, mod, ne, neg, not, or, paren, plus, shl, shr, times
JLambda param(JType type, String name)
type
- the parameter typename
- the parameter nameJLambda param(String typeName, String name)
typeName
- the parameter type namename
- the parameter nameJLambda param(Class<?> type, String name)
type
- the parameter typename
- the parameter nameJLambda param(String name)
name
- the parameter nameJBlock body()
Copyright © 2019 JBoss by Red Hat. All rights reserved.