public class LambdaExpression extends ClosureExpression
e -> e * 2
(x, y) -> x + y
(x, y) -> { x + y }
(int x, int y) -> { x + y }
EMPTY_ARRAY
DOC_COMMENT
Constructor and Description |
---|
LambdaExpression(Parameter[] parameters,
Statement code) |
Modifier and Type | Method and Description |
---|---|
String |
getText() |
boolean |
isSerializable() |
void |
setSerializable(boolean serializable) |
void |
visit(GroovyCodeVisitor visitor) |
getCode, getParameters, getVariableScope, isParameterSpecified, setCode, setVariableScope, toString, transformExpression
getType, setType, transformExpressions, transformExpressions
addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, getGroovydoc, getInstance, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, hashCode, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
copyNodeMetaData, getNodeMetaData, getNodeMetaData, getNodeMetaData, putNodeMetaData, removeNodeMetaData, setNodeMetaData
public void visit(GroovyCodeVisitor visitor)
visit
in class ClosureExpression
public String getText()
getText
in class ClosureExpression
public boolean isSerializable()
public void setSerializable(boolean serializable)