|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.groovy.ast.ASTNode
org.codehaus.groovy.ast.AnnotatedNode
org.codehaus.groovy.ast.expr.Expression
org.codehaus.groovy.ast.expr.ClosureExpression
public class ClosureExpression
Represents a closure creation expression such as { statement; } or { i : statement; } or { i, x, String y: statement }
| Constructor Summary | |
|---|---|
ClosureExpression(Parameter[] parameters,
Statement code)
|
|
| Method Summary | |
|---|---|
Statement |
getCode()
|
Parameter[] |
getParameters()
|
VariableScope |
getVariableScope()
|
boolean |
isParameterSpecified()
|
void |
setVariableScope(VariableScope variableScope)
|
String |
toString()
|
Expression |
transformExpression(ExpressionTransformer transformer)
Return a copy of the expression calling the transformer on any nested expressions |
void |
visit(GroovyCodeVisitor visitor)
|
| Methods inherited from class org.codehaus.groovy.ast.expr.Expression |
|---|
getType, setType, transformExpressions, transformExpressions |
| Methods inherited from class org.codehaus.groovy.ast.AnnotatedNode |
|---|
addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic |
| Methods inherited from class org.codehaus.groovy.ast.ASTNode |
|---|
getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getText, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setSourcePosition |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClosureExpression(Parameter[] parameters,
Statement code)
| Method Detail |
|---|
public void visit(GroovyCodeVisitor visitor)
visit in class ASTNodepublic Expression transformExpression(ExpressionTransformer transformer)
Expression
transformExpression in class Expressionpublic String toString()
toString in class Objectpublic Statement getCode()
public Parameter[] getParameters()
public boolean isParameterSpecified()
public VariableScope getVariableScope()
public void setVariableScope(VariableScope variableScope)
|
Copyright © 2003-2010 The Codehaus. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||