| Modifier and Type | Method and Description |
|---|---|
Lambda |
addParameter(Class<?> type,
String name)
Adds a new formal parameter with the given class type and name to this
Lambda and returns this Lambda. |
Lambda |
addParameter(String name)
Adds a new formal parameter with the specified name.
|
Lambda |
addParameter(Type type,
String name)
Adds a new formal parameter with the given type and name to this
Lambda and returns this Lambda. |
Block |
newBodyBlock()
Creates a new Block as body of the
Lambda. |
Lambda |
setBody(Expression body)
Sets the body of the
Lambda (as an Expression). |
applyStyle, cast, getComment, isActive, isBlockWithAbruptCompletion, setComment, toCode, visit, vmLambda addParameter(Class<?> type, String name)
Lambda and returns this Lambda.Lambda addParameter(Type type, String name)
Lambda and returns this Lambda.LambdaLambda addParameter(String name)
name - name of the parameter.LambdaLambda setBody(Expression body)
Lambda (as an Expression).body - the body of the LambdaLambdaBlock newBodyBlock()
Lambda.Block containing the (initially empty) body of the
Lambda.Copyright © 2000–2018 jenesis4java. All rights reserved.