Top Description Fields Constructors Methods
org.codehaus.groovy.ast.stmt

public Class ExpressionStatement

extends Statement
Class Inheritance
Imports
org.codehaus.groovy.ast.GroovyCodeVisitor, org.codehaus.groovy.ast.expr.Expression

A simple statement such as a method call where the return value is ignored

Field Summary

Modifier and TypeField and Description
private Expression

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Expression
public String
public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public void
Inherited from org.codehaus.groovy.ast.stmt.Statement:
addStatementLabelcopyStatementLabelsgetStatementLabelgetStatementLabelsisEmptysetStatementLabel

Field Detail

expressionback to summary
private Expression expression

Constructor Detail

ExpressionStatementback to summary
public ExpressionStatement(Expression expression)

Method Detail

getExpressionback to summary
public Expression getExpression()
getTextback to summary
public String getText()

Overrides org.codehaus.groovy.ast.ASTNode.getText.

setExpressionback to summary
public void setExpression(Expression expression)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

visitback to summary
public void visit(GroovyCodeVisitor visitor)

Overrides org.codehaus.groovy.ast.ASTNode.visit.