Package org.codehaus.groovy.ast.stmt
Class ExpressionStatement
- java.lang.Object
-
- org.codehaus.groovy.ast.ASTNode
-
- org.codehaus.groovy.ast.stmt.Statement
-
- org.codehaus.groovy.ast.stmt.ExpressionStatement
-
public class ExpressionStatement extends Statement
A simple statement such as a method call where the return value is ignored
-
-
Constructor Summary
Constructors Constructor Description ExpressionStatement(Expression expression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Expression
getExpression()
String
getText()
void
setExpression(Expression expression)
String
toString()
void
visit(GroovyCodeVisitor visitor)
-
Methods inherited from class org.codehaus.groovy.ast.stmt.Statement
addStatementLabel, getStatementLabel, getStatementLabels, isEmpty, setStatementLabel
-
Methods inherited from class org.codehaus.groovy.ast.ASTNode
copyNodeMetaData, equals, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getNodeMetaData, getNodeMetaData, hashCode, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition
-
-
-
-
Constructor Detail
-
ExpressionStatement
public ExpressionStatement(Expression expression)
-
-
Method Detail
-
visit
public void visit(GroovyCodeVisitor visitor)
-
getExpression
public Expression getExpression()
-
setExpression
public void setExpression(Expression expression)
-
-