{ statement }
or { i -> statement } or { i, x, String y -> statement }
| Modifier and Type | Field and Description |
|---|---|
| private Statement | |
| private final Parameter[] | |
| private VariableScope |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Statement | |
| public Parameter[] | Returns: an array of zero (for implicit it) or more (when explicit args given) parameters or null otherwise (representing explicit no args)
|
| public String | |
| public VariableScope | |
| public boolean | |
| public void | |
| public void | |
| public String | |
| public Expression | transformExpression(ExpressionTransformer transformer)
Implements abstract org. |
| public void |
| code | back to summary |
|---|---|
| private Statement code | |
| parameters | back to summary |
|---|---|
| private final Parameter[] parameters | |
| variableScope | back to summary |
|---|---|
| private VariableScope variableScope | |
| ClosureExpression | back to summary |
|---|---|
| public ClosureExpression(Parameter[] parameters, Statement code) | |
| getCode | back to summary |
|---|---|
| public Statement getCode() This gets the code statement of the closure. You can read this method to find out what actions the closure is going to perform.
| |
| getParameters | back to summary |
|---|---|
public Parameter[] getParameters()
| |
| getText | back to summary |
|---|---|
| public String getText() Overrides org.
| |
| getVariableScope | back to summary |
|---|---|
| public VariableScope getVariableScope() | |
| isParameterSpecified | back to summary |
|---|---|
public boolean isParameterSpecified()
| |
| setCode | back to summary |
|---|---|
| public void setCode(Statement code) This sets the code statement of the closure. You can use this method in order to add more actions during the closure execution.
| |
| setVariableScope | back to summary |
|---|---|
| public void setVariableScope(VariableScope variableScope) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| transformExpression | back to summary |
|---|---|
| public Expression transformExpression(ExpressionTransformer transformer) Implements abstract org. Doc from org. Return a copy of the expression calling the transformer on any nested expressions | |
| visit | back to summary |
|---|---|
| public void visit(GroovyCodeVisitor visitor) Overrides org. | |