public class ClosureExpression extends Expression
Constructor and Description |
---|
ClosureExpression(Parameter[] parameters,
Statement code) |
Modifier and Type | Method and Description |
---|---|
Statement |
getCode()
This gets the code statement of the closure.
|
Parameter[] |
getParameters() |
java.lang.String |
getText() |
VariableScope |
getVariableScope() |
boolean |
isParameterSpecified() |
void |
setCode(Statement code)
This sets the code statement of the closure.
|
void |
setVariableScope(VariableScope variableScope) |
java.lang.String |
toString() |
Expression |
transformExpression(ExpressionTransformer transformer)
Return a copy of the expression calling the transformer on any nested expressions
|
void |
visit(GroovyCodeVisitor visitor) |
getType, setType, transformExpressions, transformExpressions
addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition
public void visit(GroovyCodeVisitor visitor)
public Expression transformExpression(ExpressionTransformer transformer)
Expression
transformExpression
in class Expression
public java.lang.String toString()
toString
in class java.lang.Object
public Statement getCode()
public void setCode(Statement code)
code
- the new Statementpublic Parameter[] getParameters()
public boolean isParameterSpecified()
public VariableScope getVariableScope()
public void setVariableScope(VariableScope variableScope)