[Java] Class LambdaExpression
- org.codehaus.groovy.ast.expr.LambdaExpression
public class LambdaExpression
extends ClosureExpression
Represents a lambda expression such as one of these:
e -> e * 2
(x, y) -> x + y
(x, y) -> { x + y
(int x, int y) -> { x + y }
}
Constructor Summary
Methods Summary
Inherited Methods Summary
Inherited Methods
Methods inherited from class | Name |
class ClosureExpression | getCode, getParameters, getText, getVariableScope, isParameterSpecified, setCode, setVariableScope, toString, transformExpression, visit |
class Expression | getType, setType, transformExpression, transformExpressions, transformExpressions |
class AnnotatedNode | addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, getGroovydoc, getInstance, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic |
class ASTNode | copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getText, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition, visit |
Constructor Detail
public LambdaExpression(Parameter[] parameters, Statement code)
Method Detail
public boolean isSerializable()
public void setSerializable(boolean serializable)